:root {
    /* Blue Theme for UGEL Canchis - Institutional Colors */
    --primary-color: #0d47a1;
    /* Strong Blue */
    --primary-dark: #002171;
    /* Dark Navy Blue */
    --primary-light: #5472d3;
    /* Lighter Blue */

    --secondary-color: #6c757d;
    --success-color: #2e7d32;
    /* Keep green for success/process actions */
    --danger-color: #c62828;
    /* Red for final/delete */

    --light-bg: #e3f2fd;
    /* Very light blue tint for background */
    --dark-text: #1a237e;
    /* Dark blue text for headings */
    --text-body: #37474f;
    /* Standard slate gray for body text */

    --card-shadow: 0 8px 24px rgba(13, 71, 161, 0.12);
    /* Blue-ish shadow */
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-body);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 20px rgba(0, 33, 113, 0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #90caf9 !important;
    /* Light blue on hover */
    transform: translateY(-1px);
}

/* Hero Section Styles */
.hero-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #ffffff 0%, #e3f2fd 100%);
}

.hero-title {
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #455a64;
    max-width: 700px;
    margin: 0 auto;
}

/* Card & Table Container */
.main-card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    background: white;
    overflow: hidden;
    border: 1px solid rgba(13, 71, 161, 0.05);
}

/* DataTables Styling */
.dataTables_wrapper {
    padding: 1.5rem;
}

.dataTables_filter input {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    border: 2px solid #bbdefb;
    /* Light blue border */
    outline: none;
    transition: all 0.3s;
    background-color: #f5faff;
}

.dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
    background-color: white;
}

.dataTables_length select {
    border-radius: 8px;
    border: 2px solid #bbdefb;
    padding: 0.3rem 2rem 0.3rem 0.5rem;
}

table.dataTable {
    border-collapse: separate;
    border-spacing: 0 0.8rem;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: #e3f2fd;
    /* Very light blue header */
    color: var(--primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    padding: 0.9rem 0.8rem;
    letter-spacing: 0.5px;
}

table.dataTable thead th:first-child {
    border-radius: 10px 0 0 10px;
}

table.dataTable thead th:last-child {
    border-radius: 0 10px 10px 0;
}

table.dataTable tbody tr {
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

table.dataTable tbody tr:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.1);
    z-index: 5;
    position: relative;
    background-color: #fdfdfd !important;
}

table.dataTable tbody td {
    padding: 0.75rem 0.8rem;
    vertical-align: middle;
    border: none;
}

table.dataTable tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.dataTable tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Typography improvements in table */
.table-date {
    font-weight: 600;
    color: var(--primary-dark);
}

.table-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Status Badges */
.status-badge {
    padding: 0.6em 1em;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-width: 130px;
    justify-content: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-proceso {
    background-color: #e8f5e9;
    /* Light green bg */
    color: #2e7d32;
    /* Dark green text */
    border: 1px solid #a5d6a7;
}

.status-finalizado {
    background-color: #ffebee;
    /* Light red bg */
    color: #c62828;
    /* Dark red text */
    border: 1px solid #ef9a9a;
}

.status-correccion {
    background-color: #fff3e0;
    /* Orange/Warning for correction maybe? Or keep Red? Requested visual impact. Let's stick to reddish for stopped */
    color: #bf360c;
    border: 1px solid #ffcc80;
}

/* Icons Animation */
.icon-animate-tick {
    animation: tick-tock 1.5s infinite ease-in-out;
}

@keyframes tick-tock {
    0% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(-15deg);
    }
}

/* Download Button */
.btn-download {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    transform: translateY(-2px);
}

/* Pagination Buttons */
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-dark);
}

/* Footer UI */
footer {
    background: linear-gradient(to right, #0d47a1, #1565c0);
    color: white;
    font-size: 0.9rem;
    border-top: 4px solid #42a5f5;
}

footer h5 {
    color: #e3f2fd;
    font-weight: 700;
    margin-bottom: 1.2rem;
}