:root {
    --primary-color: #003366;
    /* Official Blue */
    --secondary-color: #D4AF37;
    /* Gold */
    --text-color: #2c3e50;
    --bg-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.text-gold {
    color: var(--secondary-color);
}

/* Clean Cards */
.clean-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.clean-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header Logo */
.header-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Priority Modal Styles */
.priority-list {
    counter-reset: priority-counter;
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.priority-item {
    counter-increment: priority-counter;
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border-left: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.priority-item::before {
    content: counter(priority-counter);
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #e8e8e8;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.priority-item strong {
    color: #333;
    font-weight: 600;
}

.priority-item em {
    color: #888;
    font-size: 0.85rem;
}

/* Table Styles - Clean & Responsive */
.table thead th {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Reduced base size */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: #555;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .table thead th {
        font-size: 0.65rem;
        /* Smaller on mobile */
        padding: 0.5rem 0.25rem;
        letter-spacing: 0;
    }

    .table td {
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.65em;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Adjust card layout if needed */
    .clean-card {
        padding: 1rem !important;
    }

    /* Hide Solicitações and Convocados columns on mobile */
    .table th:nth-child(2),
    .table td:nth-child(2),
    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none;
    }

    /* Declaration Mobile Styles */
    #declarationContent {
        width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem !important;
        margin: 1rem auto !important;
    }

    #declarationContent h1.h4 {
        /* Main Title */
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }

    #declarationContent h2.h3 {
        /* Fila Zerada */
        font-size: 1.2rem !important;
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
    }

    #declarationContent p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    #declarationContent .legal-footer {
        font-size: 0.65rem !important;
        margin-top: 2rem !important;
    }

    #declarationContent img {
        height: 50px !important;
        margin-bottom: 0.5rem !important;
    }

    #declarationContent .mt-5.pt-5 {
        /* Signature area spacing */
        margin-top: 2rem !important;
        padding-top: 1rem !important;
    }

    #declarationContent .d-inline-block.px-5 {
        /* Signature line width */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Badges */
.badge-clean-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-clean-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Form Controls */
.form-select-clean {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-select-clean:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

/* Modal & Declaration */
.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.declaration-paper {
    background: #fff;
    padding: 2rem;
}

/* Footer in Modal */
.legal-footer {
    font-size: 0.75rem;
    color: #6c757d;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* Utilities */
.bg-primary-subtle-custom {
    background-color: rgba(0, 51, 102, 0.05);
}