/* Layout base */
body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
}

header {
    background: #0c4a6e;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(10, 10, 10, 0.2);
}

.container {
    width: 80%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}

/* Links e botões */
a {
    text-decoration: none;
    color: #0c4a6e;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 4px;
    background: #0c4a6e;
    color: white;
    border-radius: 5px;
}

.btn:hover {
    background: #075985;
}


.top_logo {
    text-decoration: none;
    background: none;
    color: inherit;
    padding: 0;
    display: inline-block;
    pointer-events: none; /* desativa clique */
}

.top_logo:hover {
    background: none;
    text-decoration: none;
    color: inherit;
    /* cursor: default; ou pointer se quiser manter o cursor de link */
}

.top_logo img {
    display: block;
    margin: 0 auto;
    filter: none;
    transition: none;
}

.sidebar a.top_logo:hover {
    background: none;
    text-decoration: none;
    color: inherit;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background: #e2e8f0;
}

/* Inputs */
.input, .textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Ícones */
a i {
    font-size: 18px;
    margin: 0 8px;
    color: #0c4a6e;
    transition: color 0.2s ease;
}

a i:hover {
    color: #e11d48;
}

/* Foto de perfil */
.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c522aa;
    transition: transform 0.2s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

/* Cards de acesso rápido */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: 220px;
    text-align: center;
    text-decoration: none;
    color: #0c4a6e;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #f0f4f8;
}

.card h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* Roadmap progress */
.module-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-label {
    font-weight: bold;
    color: #333;
    min-width: 40px;
}

.status-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .card {
        width: 100%;
    }

    .progress-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*------------------- NOVO ESTILO para LAYOUT ---------------------
/* Layout com sidebar lateral */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: #0c4a6e;
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.sidebar .logo {
    width: 220px;
    margin-bottom: 0px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 12px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.sidebar a:hover {
    border-left: 4px solid #22c55e; /* verde vibrante */
    background-color: #0c4a6e;
    padding: 0;
    display: block;
}

.sidebar a.active {
    background-color: #9fbece;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
}

.main-content {
    margin-left: 220px; /* mesma largura da sidebar */
    padding: 70px;
    flex: 1;
    background-color: #f9fafb;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Responsivo */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* Container principal */
.card_user {
    background-color: #fff;
    padding: 24px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    max-width: 1200px;
}

/* Título */
.card_user h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Tabela de usuários */
.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.user-table th {
    background-color: #f5f5f5;
    text-align: left;
    padding: 12px;
    color: #555;
}
.user-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.user-table tr:hover {
    background-color: #fafafa;
}

/* Botão de edição */
.btn-edit {
    background-color: #ffc107;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-edit:hover {
    background-color: #e0a800;
}

/* Layout de edição de usuário */
.edit-user-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Formulário */
.edit-user-form label {
    display: block;
    margin-top: 12px;
    font-weight: 500;
    color: #444;
}
.edit-user-form input,
.edit-user-form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.edit-user-form input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

/* Botões */
.edit-user-form .btn {
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.edit-user-form .btn:hover {
    background-color: #218838;
}
.edit-user-form .btn-cancel {
    margin-left: 10px;
    background-color: #6c757d;
}
.edit-user-form .btn-cancel:hover {
    background-color: #5a6268;
}

/* Informações sobre perfis */
.profile-info-box {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}
.profile-info-box h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #222;
}
.profile-info-box ul {
    list-style: none;
    padding-left: 0;
}
.profile-info-box li {
    margin-bottom: 6px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}
.btn-danger:hover {
    background-color: #c82333;
}

.center-cell {
    text-align: center;
}

.user-table tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* cinza claro */
}

.user-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* branco */
}

.edit-user-form input[type="text"],
.edit-user-form input[type="email"],
.edit-user-form input[type="date"],
.edit-user-form input[type="file"],
.edit-user-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.edit-user-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.edit-user-form label.required::after {
    content: " *";
    color: red;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    margin-bottom: 10px;
}
