/************ style_geral.css **************
* Estilos gerais para a aplicação PMB
* Autor: André Luiz Delfino da Silva
* Data: 2026-02-12  
*******************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
    color: #333;
}


#jsonDisplay {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
}

.titulo_page {
    font-size: 1.6rem;
    color: #d2d8e0;
    font-weight: 600;
    background-color: #1a365d;
    border-radius: 3px;
    margin: 5px 10px 5px 10px;
    padding: 5px 5px 5px 5px;
    text-align: center;
}

.subtitulo_page {
    font-size: 1rem;
    color: rgb(209, 240, 201);
    font-weight: 600;
    background-color: #426596;
    border-radius: 3px;
    margin: 5px 10px 5px 10px;
    padding: 5px 5px 5px 5px;
    text-align: left;
}

.info_page {
    font-size: 1rem;
    color: #333;
    background-color: #e0e7ff;
    border-left: 5px solid #1a365d;
    padding: 10px;
    margin-bottom: 20px;
    text-align: justify;
}

/* INICIO Conteúdo Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    font-size: 1.8rem;
    color: #1a365d;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 500;
    color: #1a365d;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a365d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logout-btn {
    color: #666;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: #c62828;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
/* FIM Conteúdo Principal */



/* INICIO Menu Lateral ********************/
.sidebar {
    width: 260px;
    /*background: linear-gradient(180deg, #1a365d 0%, #2d4a8a 100%);*/
    background: linear-gradient(135deg, #667eea 0%, #2c2aaa 100%);
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 20px 25px 25px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.nav-links {
    flex: 1;
    padding: 5px 0px 10px 0px;
    overflow-y: auto;
}

.nav-links ul {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.nav-links a i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 30px;
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 4px solid #4CAF50;
}
/* FIM Menu Lateral ********************/



/*** Container do tooltip o mesmo que hint **************/
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Texto do tooltip (oculto por padrão) */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #59848f;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    position: static;
    z-index: 1;
    bottom: 125%; /* Posição acima do elemento */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 50%;
}

/* Setinha do tooltip */
.tooltip .tooltiptext::after {
    content: "";
    /* ocultando o código abaixo da SETA
    content: "";
    position: absolute; 
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    */
}

/* Mostrar tooltip ao passar o mouse */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/*** Fim Container do tooltip o mesmo que hint **************/


/*** Estilos para mensagens de feedback ***/
.mensagem_sucesso {
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 2s;
    position: relative;
    top: 5px;
    margin: 25px;
    padding: 10px;
    background: #28a745;
    color: white;
    border-radius: 5px;
    z-index: 1000;
}

.mensagem_erro {
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 2s;
    position: relative;
    top: 5px;
    margin: 25px;
    padding: 10px;
    background: #a74128;
    color: rgb(219, 226, 158);
    border-radius: 5px;
    z-index: 1000;
}

.mensagem_aviso {
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 2s;
    position: relative;
    top: 5px;
    margin: 25px;
    padding: 10px;
    background: #f5f83a;
    color: rgb(7, 17, 158);
    border-radius: 5px;
    z-index: 1000;
}

.mensagem_info {
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 2s;
    position: relative;
    top: 5px;
    margin: 25px;
    padding: 10px;
    background: #284aa7;
    color: white;
    border-radius: 5px;
    z-index: 1000;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; display: none; }
}
/*** Fim Estilos para mensagens de feedback ***/
/*
    body {
        font-family: Arial, sans-serif;
        background: #f4f4f4;
        display: flex;
        justify-content: center;
        padding: 10px;
    }
*/

    /**formatando layout de form ************************/
    form {
        background: #dadada;
        padding: 20px;
        border-radius: 8px;
        max-width: 550px;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    form h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #007BFF;
        background-color: #dddddd;
    }

    .form-container {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Cada campo do formulário */
    .form-group {
        display: flex;
        flex-direction: column; /* Faz o label ficar acima do input */
        margin-bottom: 3px;
    }

    .form-group-nospace {
        display: flex;
        flex-direction: column; /* Faz o label ficar acima do input */
        margin-bottom: 3px;
        margin-left: -20px;
    }


    /* Estilo do título (label) */
    form label {
        font-size: 11px;
        font-weight: bold;
        margin-bottom: 1px;
    }

    /* Estilo dos campos */
    form input, form select, form textarea {
        padding: 4px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 12px;
    }

    .checkbox-group, .radio-group {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    .form-group-line {
        width: 100%;
        position: flex;
        padding: 5px 5px 5px 10px;
        border: 1px solid #d1cfcf;
        border-radius: 5px;
        outline: none;
        transition: border-color 0.3s;

        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .form-group-line input[type="email"] {
        text-transform: lowercase;
    }

    .form-group-line input[type="number"] {
        width: 50px;
    }

    .form-group-line i {
        top: 12px;
        left: 12px;
        width: 12px;
        padding: 0 15px 0 5px;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }
    
    .input-cnpj-cpf {
        width: 140px;
        text-align: center;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-number-money {
        width: 110px;
        text-align: right;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-number {
        width: 110px;
        text-align: right;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-date {
        width: 110px;
        text-align: left;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-fone {
        width: 102px;
        text-align: left;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-email {
        min-width: 40px; /*4 digitos */
        max-width: 494px; /*76 digitos */
        text-align: left;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-text {
        min-width: 40px; /*4 digitos */
        max-width: 494px; /*76 digitos */
        text-align: left;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-select {
        min-width: 40px; /*4 digitos */
        max-width: 494px; /*76 digitos */
        text-align: left;
        color: rgb(40, 104, 163);
        font-weight: 700;
    }

    .input-select option {
        border-color: #007BFF;
        font-weight: 700;
    }

    /* tiny small medium medium-plus large huge long */
    .width-tiny {
        width: 40px; /*4 digitos */
    }

    .width-tiny-plus {
        width: 80px; /*4 digitos */
    }

    .width-small {
        width: 137px; /*20 digitos */
    }

    .width-medium {
        width: 216px; /*30 digitos */
        text-align: left;
    }

    .width-medium-plus {
        width: 254px; /*36 digitos */
        text-align: left;
    }

    .width-large {
        width: 280px; /*40 digitos */
        text-align: left;
    }

    .width-huge {
        width: 372px; /*54 digitos */
        text-align: left;
    }

    .width-long {
        width: 494px; /*76 digitos */
        text-align: left;
    }

    form button {
        width: 100%;
        margin-top: 20px;
        padding: 10px;
        background: #007BFF;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
    }

    form button:hover {
        background: #0056b3;
    }
    /**fim formatando layout de form ************************/

/* Estilos para o conteúdo das páginas */
.page-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
}

.welcome-section h2 {
    color: #1a365d;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4CAF50;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a365d;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .nav-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 450px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
