*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fb;
}

.container{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

.sidebar{
    width:260px;
    background:#1e3a8a;
    color:#fff;
    display:flex;
    flex-direction:column;
    padding:20px;
    box-shadow:4px 0 12px rgba(0,0,0,.15);
}

.logo{
    text-align:center;
    padding:20px 0;
    margin-bottom:30px;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.logo h2{
    font-size:24px;
    font-weight:bold;
}

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

.sidebar li{
    margin-bottom:10px;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;

    color:#fff;
    text-decoration:none;

    padding:14px 18px;

    border-radius:10px;

    transition:.3s;
}

.sidebar a:hover{

    background:#2563eb;

    transform:translateX(5px);

}

.sidebar a.active{

    background:white;

    color:#1e3a8a;

    font-weight:bold;

}

/* Conteúdo */

.content{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* Header */

.header{
    height:70px;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    box-shadow:0 2px 5px rgba(0,0,0,.1);
}

/* Main */

main{
    padding:30px;
}

/* Cards */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:40px;

}

.card{

    background:white;

    padding:25px;

    border-radius:12px;

    box-shadow:0 4px 10px rgba(0,0,0,.08);

}

.card h3{

    margin-bottom:15px;

    color:#555;

}

.card span{

    font-size:28px;

    font-weight:bold;

    color:#2563eb;

}

/* Tabela */

.table-section{
    background:#fff;
    border-radius:12px;
    padding:25px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.table-responsive{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

thead tr{
    background:#2563eb;
}

th{
    color:#fff;
    padding:14px;
    text-align:center;
    font-weight:600;
}

td{
    padding:12px;
    text-align:center;
    border-bottom:1px solid #e5e7eb;
}

tbody tr:nth-child(even){
    background:#f8fafc;
}

tbody tr:hover{
    background:#dbeafe;
}

.table-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.table-header h2{

    color:#1e3a8a;

    font-size:24px;

}

table td a img{

    width:22px;

    transition:.2s;

}

table td a img:hover{

    transform:scale(1.15);

}

/* Formulário */

.form-card{

    max-width:800px;

    margin:auto;

    background:#fff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.form-card h2{

    margin-bottom:30px;

    color:#1e3a8a;

}

.form-group{

    display:flex;

    flex-direction:column;

    margin-bottom:20px;

}

.form-group label{

    margin-bottom:8px;

    font-weight:600;

    color:#444;

}

.form-group input{

    padding:12px 15px;

    border:1px solid #d1d5db;

    border-radius:8px;

    font-size:15px;

    transition:.2s;

}

.form-group input:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

}

.row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

}

.buttons{

    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:30px;

}

.btn-primary{

    display:inline-flex;

    align-items:center;

    gap:8px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    padding:12px 18px;

    border-radius:8px;

    font-weight:600;

    transition:.2s;

}

.btn-primary:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.btn-secondary{

    background:#e5e7eb;

    color:#333;

    padding:12px 30px;

    border-radius:8px;

    text-decoration:none;

}

.btn-secondary:hover{

    background:#d1d5db;

}

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

.user-name {
    font-weight: 500;
    color: #374151;
}

.user form {
    margin: 0;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    background: #dc2626;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: .2s;
}

.btn-logout:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.form-group input[readonly]{
    background:#f1f5f9;
    cursor:not-allowed;
}

.error{

    color:#dc2626;

    margin-top:5px;

    font-size:13px;

}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:12px 15px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:15px;
    transition:.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* Ícones */

.icon-button{

    background:none;

    border:none;

    cursor:pointer;

    padding:0;

}

.icon-button img{

    width:22px;

    transition:.2s;

}

.icon-button img:hover{

    transform:scale(1.15);

}

/* Currículo */

.resume-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px;

    margin-bottom:18px;

    background:#f8fafc;

    border:1px solid #dbeafe;

    border-radius:10px;

}

.resume-info{

    display:flex;

    align-items:center;

    gap:15px;

}

.resume-icon{

    width:42px;

    height:42px;

}

.resume-info strong{

    color:#1e3a8a;

}

.resume-info p{

    margin-top:4px;

    color:#666;

    font-size:14px;

}

.btn-download{

    padding:10px 18px;

    background:#2563eb;

    color:#fff;

    text-decoration:none;

    border-radius:8px;

    transition:.2s;

}

.btn-download:hover{

    background:#1d4ed8;

}

.file-info{

    display:block;

    margin-top:8px;

    color:#6b7280;

    font-size:13px;

}

/* Detalhes */

.details-card{

    background:#fff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

}

.details-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.subtitle{

    color:#6b7280;

    font-size:14px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-bottom:30px;

}

.info-item{

    background:#f8fafc;

    border-left:4px solid #2563eb;

    padding:18px;

    border-radius:8px;

}

.label{

    display:block;

    color:#6b7280;

    font-size:13px;

    margin-bottom:6px;

}

.value{

    font-size:18px;

    font-weight:600;

    color:#1f2937;

}

.resume-box{

    margin-top:30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#f8fafc;

    padding:20px;

    border-radius:10px;

}

.btn-download{

    background:#2563eb;

    color:#fff;

    padding:10px 18px;

    border-radius:8px;

    text-decoration:none;

    transition:.2s;

}

.btn-download:hover{

    background:#1d4ed8;

}

/* Section */

.section-title{
    margin:25px 0 15px;
    color:#1e3a8a;
    font-size:20px;
    font-weight:600;
}

.divider{
    margin:30px 0;
    border:none;
    border-top:1px solid #e5e7eb;
}

/* CEP */

.input-group{
    display:flex;
    width:100%;
}

.input-group input{
    flex:1;
    border-radius:8px 0 0 8px;
}

.btn-search{
    height:auto;
    padding:0 25px;
    border-radius:0 8px 8px 0;
    border:none;
    background:#2563eb;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-search:hover{
    background:#1d4ed8;
}

/* Mensagem */

.alert{
    padding:15px 20px;
    margin-bottom:20px;
    border-radius:8px;
    font-weight:600;
    border-left:5px solid;
}

.alert-success{
    background:#ecfdf5;
    color:#166534;
    border-color:#22c55e;
}

.alert-error{
    background:#fef2f2;
    color:#991b1b;
    border-color:#ef4444;
}

/* Pesquisa */

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.search-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.search-form .btn-search {
    padding: 12px 20px;
    border-radius: 8px;
}

/* Tela de Login */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f7f9;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    margin: 0 0 8px;

    font-size: 32px;
    font-weight: 700;

    color: #2563eb;

    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-header p {
    margin: 0;

    font-size: 15px;
    font-weight: 400;

    color: #6b7280;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4b5563;
}

.remember-me input {
    width: auto;
}

.login-options a {
    color: #2563eb;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

.login-session-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.password-help {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.password-rules {
    margin: 8px 0 0 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

/* Botões desabilitados */

.icon-button-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    opacity: 0.35;
}

.icon-button-disabled img {
    width: 22px;
    filter: grayscale(100%);
}

/* Página de erro */

.error-layout {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #f5f7fb;
}

.error-page {
    width: 100%;
    display: flex;
    justify-content: center;
}

.error-card {
    width: 100%;
    max-width: 550px;

    padding: 50px 40px;

    text-align: center;

    background: #fff;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.error-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.error-card h1 {
    margin: 0;

    font-size: 72px;
    font-weight: 700;

    color: #1e3a8a;
}

.error-card h2 {
    margin: 10px 0 15px;

    font-size: 24px;

    color: #374151;
}

.error-card p {
    margin-bottom: 30px;

    color: #6b7280;

    line-height: 1.6;
}

.error-card .buttons {
    justify-content: center;
}

/* Inativo */

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-muted {
    background-color: #f1f1f1;
    color: #6b7280;
    border: 1px solid #e0e0e0;
}

/* Logo */

.logo {
    display: flex;
    justify-content: center;
    padding: 20px 16px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    max-width: 160px;
    height: auto;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.login-logo {
    max-width: 160px;
    height: auto;
}

/* Logs */

.details-panel {
    margin-top: 8px;
    padding: 8px;
    background-color: var(--card-bg, #f9f9f9);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
}

.details-panel.hidden {
    display: none;
}

.details-table {
    width: 100%;
    font-size: 0.85rem;
}

.details-table th,
.details-table td {
    padding: 4px 8px;
    text-align: left;
}

.btn-toggle-details {
    font-size: 0.8rem;
    padding: 4px 10px;
}

/* Paginação */

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-link,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
}

.pagination-link {
    color: var(--text-color, #1a1a1a);
    border: 1px solid var(--border-color, #e0e0e0);
    transition: background-color 0.15s ease;
}

.pagination-link:hover {
    background-color: var(--badge-muted-bg, #f1f1f1);
}

.pagination-current {
    background-color: #2563eb;
    color: #fff;
    font-weight: 600;
    border: 1px solid #2563eb;
}

.pagination-dots {
    padding: 0 4px;
    color: var(--subtitle-color, #6b7280);
}

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {

    .login-card {
        padding: 30px 22px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
