/* ========================================
   AADHAAR REPORTING PORTAL STYLES
   ======================================== */

/* ========================================
   CSS VARIABLES - Government Theme
   ======================================== */
:root {
    --indiapost-red: #C8102E;
    --indiapost-dark-red: #A00D24;
    --indiapost-maroon: #800020;
    --indiapost-gold: #FFB81C;
    --indiapost-light-gold: #FFD700;
    --govt-blue: #003366;
    --bg-primary: #FDF8F4;
    --bg-secondary: #FFF5EB;
    --text-primary: #2C1810;
    --text-secondary: #5D4037;
    --text-muted: #8D6E63;
    --white: #FFFFFF;
    --border-color: #E8D5C4;
    --shadow-color: rgba(200, 16, 46, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --transition-normal: 0.3s ease;


    /* Government Theme Colors */
    --govt-blue: #003366;
    --govt-dark-blue: #002244;
    --header-gradient-start: #1a0a0e;
    --header-gradient-end: #3d1a22;

}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   GOVERNMENT HEADER - Top Banner
   ======================================== */
.govt-top-banner {
    background: linear-gradient(90deg, #000428 0%, #004e92 50%, #000428 100%);
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.govt-top-banner a {
    color: var(--indiapost-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.govt-top-banner a:hover {
    color: var(--white);
    text-decoration: underline;
}

.govt-links {
    display: flex;
    gap: 20px;
}

/* ========================================
   HEADER STYLES
   ======================================== */
/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 50%, var(--indiapost-dark-red) 100%);
    padding: 24px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid var(--indiapost-gold);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.emblem-container {
    position: relative;
}

.emblem {
    width: 90px;
    height: 90px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text {
    color: var(--white);
}

.govt-name {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dept-name {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.portal-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.division-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--indiapost-gold);
    margin-top: 6px;
    letter-spacing: 1px;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
.main-nav {
    background: var(--white);
    border-bottom: 2px solid var(--indiapost-red);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--indiapost-red);
}

.nav-brand i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--indiapost-red);
}

.nav-link.active,
.nav-link:active {
    background: var(--bg-secondary);
    color: var(--indiapost-red);
    border-bottom-color: var(--indiapost-red);
}

.nav-link.logout {
    color: #dc3545;
}

.nav-link.logout:hover {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    width: 100%;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Ensure table container inside card works well */
.card-enhanced .table-container {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.welcome-section h2 {
    color: var(--indiapost-red);
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
    color: var(--white);
}

.stat-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.stat-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.stat-content {
    padding: 20px;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-label {
    font-weight: 500;
    color: var(--text-primary);
}

.stat-value {
    font-weight: 600;
    color: var(--indiapost-red);
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========================================
   DATA SECTION STYLES
   ======================================== */
.data-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    color: var(--indiapost-red);
    font-size: 24px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   DATA CONTAINER STYLES
   ======================================== */
.data-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--indiapost-red);
    font-size: 28px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ========================================
   FILTER SECTION STYLES
   ======================================== */
.filter-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 25px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--indiapost-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   DATA TABLE STYLES
   ======================================== */
.data-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: var(--indiapost-red);
    color: var(--white);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--indiapost-dark-red);
    white-space: nowrap;
    /* Prevent wrapping */
}

.data-table tbody td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 13px;
}

/* Sticky First Column Styles */
.data-table thead tr:first-child th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    /* Highest priority (Header + Sticky Col) */
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    background-color: var(--indiapost-red);
    /* Match header color */
}

.data-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    /* Higher than normal cells */
    background-color: var(--white);
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.data-table tbody tr:hover td:first-child {
    background-color: var(--bg-secondary);
    /* Match hover color */
}

.data-table tfoot td:first-child {
    position: sticky;
    left: 0;
    bottom: 0;
    /* Keep sticky bottom behavior */
    z-index: 15;
    /* Higher than normal footer (10) and body cells (5) */
    background-color: #f8f9fa;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
}

.data-table tfoot {
    position: sticky;
    bottom: 0;
    background-color: #f8f9fa;
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   IMPORT FORM STYLES
   ======================================== */
.import-form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 30px;
    margin-bottom: 30px;
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
}

.import-form .form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
}

.import-form .form-group.file-selected input[type="file"] {
    border-color: var(--indiapost-red);
    background: rgba(200, 16, 46, 0.05);
}

.file-info {
    margin-top: 8px;
}

.file-info small {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   IMPORT INSTRUCTIONS
   ======================================== */
.import-instructions {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

.import-instructions h3 {
    color: var(--indiapost-red);
    margin-bottom: 20px;
    font-size: 20px;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-section h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.instruction-section ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.instruction-section li {
    margin-bottom: 5px;
}

/* ========================================
   IMPORT MESSAGE
   ======================================== */
.import-message {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 20px;
    margin-bottom: 30px;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.message-content i {
    color: var(--indiapost-red);
    font-size: 20px;
}

/* ========================================
   LOGIN STYLES
   ======================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.15);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(200, 16, 46, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--indiapost-red), var(--indiapost-gold), var(--indiapost-red));
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.emblem-container {
    margin-bottom: 20px;
}

.emblem {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.2);
    margin: 0 auto;
    border: 2px solid rgba(200, 16, 46, 0.1);
}

.emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h2 {
    color: var(--indiapost-red);
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 600;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-group input {
    width: 100%;
}

/* Background Pattern for Login */
.login-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

.login-bg-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(200, 16, 46, 0.01) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: patternMove 15s linear infinite reverse;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--indiapost-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--indiapost-dark-red);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--indiapost-red);
    border: 1px solid var(--indiapost-red);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--indiapost-red);
    color: var(--white);
}

/* Admin Table Styles */
.admin-table-header {
    background-color: var(--indiapost-dark-red) !important;
    color: var(--white) !important;
}

.admin-table-header th {
    background-color: var(--indiapost-maroon) !important;
    color: var(--white) !important;
    font-weight: 500;
    vertical-align: middle;
    border: none;
}

.table thead th {
    background-color: var(--indiapost-maroon);
    color: var(--white);
}

.card-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--indiapost-gold);
}

.card-title {
    color: var(--indiapost-maroon);
    font-weight: bold;
}

.admin-table-header .sort-icon {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 5px;
}

.admin-table-header .sort-icon:hover {
    color: var(--white);
}

.table-hover tbody tr:hover {
    background-color: rgba(200, 16, 46, 0.05);
}



.btn-secondary {
    background: var(--text-muted);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--indiapost-red);
    border: 2px solid var(--indiapost-red);
}

.btn-outline:hover {
    background: var(--indiapost-red);
    color: var(--white);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ========================================
   OFFICE DETAIL STYLES
   ======================================== */
.office-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 30px;
}

.office-info-header {
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
    color: var(--white);
    padding: 20px;
}

.office-info-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.office-id {
    font-size: 14px;
    opacity: 0.9;
}

.office-info-details {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   EMPLOYEE LIST STYLES
   ======================================== */
.employee-list-section h3 {
    color: var(--indiapost-red);
    margin-bottom: 20px;
    font-size: 20px;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1055 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    color: var(--indiapost-red);
    font-size: 20px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--indiapost-red);
    margin-bottom: 15px;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 16px;
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-working {
    background: #d1ecf1;
    color: #0c5460;
}

.status-leave {
    background: #fff3cd;
    color: #856404;
}


/* ========================================
   REPORTS PAGE STYLES
   ======================================== */

/* Reports Container */
.reports-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Page Header */
.reports-container .page-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
    border-left: 5px solid var(--indiapost-red);
    animation: fadeInDown 0.5s ease;
}

.reports-container .page-header h1 {
    color: var(--indiapost-red);
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.reports-container .page-header h1 i {
    font-size: 36px;
    color: var(--indiapost-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reports-container .page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Report Card */
.report-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    border-color: var(--border-color);
    position: relative;
    opacity: 0;
    animation: cardAppear 0.6s ease forwards;
    width: auto;
}

.report-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.15);
    border-color: var(--indiapost-red);
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--indiapost-red), var(--indiapost-gold), var(--indiapost-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card:hover::before {
    opacity: 1;
}

/* Staggered animation for cards */
.report-card:nth-child(1) {
    animation-delay: 0.1s;
}

.report-card:nth-child(2) {
    animation-delay: 0.2s;
}

.report-card:nth-child(3) {
    animation-delay: 0.3s;
}

.report-card:nth-child(4) {
    animation-delay: 0.4s;
}

.report-card:nth-child(5) {
    animation-delay: 0.5s;
}

.report-card:nth-child(6) {
    animation-delay: 0.6s;
}

.report-card:nth-child(7) {
    animation-delay: 0.7s;
}

.report-card:nth-child(8) {
    animation-delay: 0.8s;
}

.report-card:nth-child(9) {
    animation-delay: 0.9s;
}

.report-card:nth-child(10) {
    animation-delay: 1s;
}

.report-card:nth-child(11) {
    animation-delay: 1.1s;
}

.report-card:nth-child(12) {
    animation-delay: 1.2s;
}

.report-card:nth-child(13) {
    animation-delay: 1.3s;
}

.report-card:nth-child(14) {
    animation-delay: 1.4s;
}

/* Report Card Header */
.report-card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--indiapost-red) 0%, var(--indiapost-dark-red) 100%);
    color: var(--indiapost-dark-red);
    position: relative;
    overflow: hidden;
}

.report-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.report-card:hover .report-card-header::after {
    transform: rotate(30deg) translateX(100%);
}

.report-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-card-header h3::before {
    content: '📊';
    font-size: 16px;
    opacity: 0.9;
}

.report-card-header p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Report Card Body */
.report-card-body {
    padding: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow: auto;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.report-card-body canvas {
    max-width: 100%;
    max-height: 160px;
    transition: transform 0.3s ease;
}

.report-card:hover .report-card-body canvas {
    transform: scale(1.05);
}

/* Report Card Footer */
.report-card-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: var(--text-secondary);
}

.report-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 100px;
}

.report-button {
    background: var(--indiapost-red);
    color: var(--white);
    flex: 1;
}

.report-button:hover {
    background: var(--indiapost-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.download-button {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.download-button:hover {
    background: var(--bg-secondary);
    border-color: var(--indiapost-red);
    color: var(--indiapost-red);
    transform: translateY(-2px);
}

.download-button i {
    font-size: 14px;
}

/* Report Preview Pane */
.report-preview {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 600px;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.report-preview.active {
    transform: translateX(0);
}

/* Preview Header */
.preview-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--indiapost-red) 0%, var(--indiapost-dark-red) 100%);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--indiapost-gold);
}

.preview-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.close-button {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Preview Content */
.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.preview-table-container {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.preview-table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--indiapost-red);
    position: sticky;
    top: 0;
}

.preview-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.preview-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Preview Actions */
.preview-actions {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--indiapost-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.action-button:hover {
    background: var(--indiapost-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.3);
}

.action-button i {
    font-size: 16px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Loading State for Charts */
.report-card.loading .report-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.report-card.loading .report-card-body::after {
    content: 'Loading chart...';
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.report-card.loading .report-card-body canvas {
    opacity: 0.5;
}

/* Empty State */
.report-card.empty .report-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
}

.report-card.empty .report-card-body i {
    font-size: 32px;
    opacity: 0.5;
}

.report-card.empty .report-card-body::after {
    content: 'No data available';
    font-size: 14px;
    font-style: italic;
}

/* Responsive Design for Reports */
@media (max-width: 1200px) {
    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .reports-container .page-header h1 {
        font-size: 26px;
        flex-direction: column;
        gap: 10px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-preview {
        width: 100%;
        transform: translateX(100%);
    }

    .report-preview.active {
        transform: translateX(0);
    }

    .preview-actions {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .report-card-footer {
        flex-direction: column;
    }

    .report-button,
    .download-button {
        width: 100%;
    }

    .reports-container .page-header {
        padding: 20px 15px;
    }

    .reports-container .page-header h1 {
        font-size: 22px;
    }
}

/* Status Indicators */
.chart-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--indiapost-dark-red);
    /* Fixed: High contrast color */
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--indiapost-gold);
}

.chart-status.updated {
    background: #d4edda;
    color: #155724;
}

.chart-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Chart Tooltip Styles */
.chart-tooltip {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-tooltip.active {
    opacity: 1;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.main-footer {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: var(--white);
    padding: 32px 40px;
    border-top: 4px solid var(--indiapost-gold);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-emblem {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.footer-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-text p {
    font-size: 12px;
    opacity: 0.8;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--indiapost-gold);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {

    .header-content,
    .nav-container,
    .main-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-menu {
        display: none;
        /* Mobile menu would need JS implementation */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .office-info-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .welcome-section h2 {
        font-size: 24px;
    }

    .page-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {

    .main-header,
    .main-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 6px;
    }
}

/* Enhanced Dashboard Responsive Styles */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 10px;
        gap: 20px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust Card Header for Mobile */
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .card-header>div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Adjust Action Buttons in Header */
    .card-header .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Table adjustments */
    .data-table th,
    .data-table td {
        white-space: nowrap;
        /* Prevent wrapping in cells to force scrolling */
        font-size: 13px;
        padding: 10px;
    }

    /* reduce font size of stats */
    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 14px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* ========================================
   AADHAAR REPORTING SPECIFIC STYLES
   ======================================== */

/* Container Styles */
.admin-container,
.data-entry-container,
.edit-report-container,
.dashboard-container,
.login-container,
.reports-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 25px;
    transition: var(--transition-normal);
    background: var(--white);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--indiapost-red) 0%, var(--indiapost-dark-red) 100%);
    color: var(--white);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 20px;
}

.card-header-actions .btn {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.card-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.card-body {
    padding: 25px;
}

/* Stats Cards */
.stats-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-left: 4px solid var(--indiapost-red);
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.2);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stats-card .card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--indiapost-red);
}

.stats-card .card-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--indiapost-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
    outline: none;
}

.form-control:read-only {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
}

/* Button Enhancements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--indiapost-dark-red), #800020);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--indiapost-red);
    border-color: var(--indiapost-red);
}

.btn-outline-primary:hover {
    background: var(--indiapost-red);
    color: var(--white);
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-lg i {
    font-size: 24px;
    margin-bottom: 8px;
}

.btn-lg span {
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Table Enhancements */
.table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-hover tbody tr:hover {
    background-color: rgba(200, 16, 46, 0.05);
}

.table-dark {
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
    color: var(--white);
}

.table-dark th {
    border-bottom: 2px solid var(--indiapost-gold);
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* ========================================
   QUICK ACTION BUTTON STYLES
   ======================================== */

.quick-actions {
    padding: 20px 0;
}

.quick-actions .btn-lg {
    height: 140px;
    flex-direction: column;
    padding: 25px 15px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.quick-actions .btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--indiapost-red), var(--indiapost-gold), var(--indiapost-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-actions .btn-lg:hover::before {
    opacity: 1;
}

.quick-actions .btn-lg:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.quick-actions .btn-lg i {
    font-size: 36px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.quick-actions .btn-lg:hover i {
    transform: scale(1.2) rotate(5deg);
}

.quick-actions .btn-lg span {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.quick-actions .btn-lg small {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

/* Specific button color enhancements */
.quick-actions .btn-primary {
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
}

.quick-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--indiapost-dark-red), #800020);
}

.quick-actions .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.quick-actions .btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.quick-actions .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.quick-actions .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

.quick-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.quick-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
}

/* Animation for buttons */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
    }

    100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
}

.quick-actions .btn-primary {
    animation: buttonPulse 3s infinite;
}

/* Stats card circle animation */
.stats-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive styles for quick actions */
@media (max-width: 768px) {
    .quick-actions .btn-lg {
        height: 120px;
        padding: 20px 10px;
    }

    .quick-actions .btn-lg i {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .quick-actions .btn-lg span {
        font-size: 14px;
    }

    .quick-actions .btn-lg small {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .quick-actions .btn-lg {
        height: 100px;
        padding: 15px 8px;
    }

    .quick-actions .btn-lg i {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .quick-actions .btn-lg span {
        font-size: 12px;
    }

    .quick-actions .btn-lg small {
        font-size: 10px;
        display: none;
        /* Hide description on very small screens */
    }
}

/* Grid layout improvements for quick actions */
.quick-actions .col-md-3,
.quick-actions .col-sm-6 {
    margin-bottom: 20px;
}

/* Add subtle shine effect on hover */
.quick-actions .btn-lg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quick-actions .btn-lg:hover::after {
    left: 100%;
}

/* Icon badges for quick actions */
.quick-actions .btn-lg {
    position: relative;
}

.quick-actions .btn-lg .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--indiapost-red), var(--indiapost-dark-red));
    color: var(--white);
    border-bottom: none;
    padding: 20px 25px;
}

.modal-header h5 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
}

/* Form Control Plaintext */
.form-control-plaintext {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Page Header Enhancements */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(255, 184, 28, 0.05));
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--indiapost-red);
    animation: fadeInDown 0.5s ease;
}

.page-header h1 {
    color: var(--indiapost-red);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    font-size: 36px;
    color: var(--indiapost-gold);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .admin-container,
    .data-entry-container,
    .edit-report-container,
    .dashboard-container,
    .login-container,
    .reports-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-header-actions {
        align-self: flex-end;
    }

    .page-header h1 {
        font-size: 26px;
        flex-direction: column;
        gap: 10px;
    }

    .page-header {
        padding: 20px 15px;
    }

    .quick-actions .btn-lg {
        height: auto;
        padding: 15px;
    }

    .stats-card .card-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 20px;
    }

    .table-responsive {
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
        gap: 5px;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* ==========================================================================
   ENHANCED DASHBOARD STYLES (Merged)
   ========================================================================== */

/* Enhanced Variables */
:root {
    /* Extended Palette */
    --gradient-primary: linear-gradient(135deg, #C8102E 0%, #A00D24 100%);
    --gradient-gold: linear-gradient(135deg, #FFB81C 0%, #F57C00 100%);
    --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #000000 100%);

    /* Backgrounds */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Spacing & Radius */
    --radius-xl: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(200, 16, 46, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(200, 16, 46, 0.4);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   ENHANCED COMPONENTS
   ======================================== */

/* Dashboard Container Animation */
.dashboard-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

/* Page Header (Enhanced) */
.page-header-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(200, 16, 46, 0.05);
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.page-header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

/* Section Title & Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 56px 0 32px;
    position: relative;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--indiapost-dark-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.95) 100%);
    padding: 12px 32px;
    border-radius: 50px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 16, 46, 0.1);
}

.section-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--indiapost-gold) 15%, var(--indiapost-red) 50%, var(--indiapost-gold) 85%, transparent 100%);
    z-index: 0;
    opacity: 0.5;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

/* Enhanced Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(200, 16, 46, 0.1);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.04;
}

.stat-icon-wrapper {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.12) 0%, rgba(200, 16, 46, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--indiapost-red);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon-wrapper {
    transform: rotate(15deg) scale(1.15);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 12px 24px rgba(200, 16, 46, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

/* Enhanced Charts/Tables Card */
.card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card-enhanced:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(200, 16, 46, 0.08);
    transform: translateY(-4px);
}

.card-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 248, 244, 0.9) 100%);
    border-bottom: 2px solid rgba(200, 16, 46, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.card-enhanced:hover .card-header::after {
    width: 100%;
}

/* Enhanced Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
    color: var(--indiapost-dark-red);
    /* Fixed: Ensuring visible dark text */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 18px 28px;
    border-bottom: 2px solid rgba(200, 16, 46, 0.1);
    white-space: nowrap;
    position: relative;
}

.data-table thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.data-table thead th:hover::after {
    width: 100%;
}

.data-table td {
    padding: 18px 28px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 14px;
    font-weight: 600;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 248, 240, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    transform: scale(1.01);
}

.data-table tbody tr:hover::before {
    opacity: 1;
}

.data-table tbody tr:hover::before {
    opacity: 1;
}

/* Status Badges */
.status-badge {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid;
}

.status-success {
    background: linear-gradient(135deg, #e6f7ed 0%, #d4f1e0 100%);
    color: #00c853;
    border-color: rgba(0, 200, 83, 0.2);
}

.status-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe4c4 100%);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.2);
}

/* Quick Actions (Enhanced) */
.btn-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 16, 46, 0.08);
}

.btn-action-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(200, 16, 46, 0.15);
    border-color: rgba(200, 16, 46, 0.2);
}

.btn-action-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 12px rgba(255, 184, 28, 0.3));
}

.btn-action-card:hover .btn-action-icon {
    transform: scale(1.2) rotate(8deg);
    animation: float 2s ease-in-out infinite;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border-top: 2px solid rgba(200, 16, 46, 0.08);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

.page-btn:hover:not(:disabled) {
    background: var(--gradient-gold);
    color: white;
    border-color: var(--indiapost-gold);
    box-shadow: 0 6px 16px rgba(255, 184, 28, 0.4);
    transform: translateY(-3px);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--indiapost-red);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}