/* 
 * SHIV GAUSHALA ADMIN PANEL - DASHBOARD STYLES
 * Mobile-First Design System
 */

/* =========================================
   1. VARIABLES & THEME CONFIGURATION
   ========================================= */
   :root {
    /* Color Palette - Dark Mode (Default) */
    --primary: #FF7A00;          /* Saffron Orange */
    --primary-light: rgba(255, 122, 0, 0.15);
    --primary-glow: rgba(255, 122, 0, 0.4);
    
    --bg-body: #111827;          /* Dark Navy */
    --bg-card: #1F2937;          /* Lighter Navy */
    --bg-input: #374151;
    
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-light: #D1D5DB;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 122, 0, 0.5);
    
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(255, 122, 0, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Override */
[data-theme="light"] {
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-input: #F9FAFB;
    
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-light: #4B5563;
    
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(255, 122, 0, 0.4);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 5px 15px rgba(255, 122, 0, 0.1);
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow: hidden; /* Prevent body scroll, use .main */
    height: 100vh;
    width: 100vw;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* =========================================
   3. LAYOUT STRUCTURE
   ========================================= */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.admin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-bottom: 70px; /* Space for bottom nav */
}

.main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 20px 100px 20px; /* Bottom padding for scroll space */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.page-content {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
    animation: slideUp 0.4s ease-out;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
/* Top Header */
.top-header {
    background: var(--bg-card);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 50;
    position: relative;
    height: 65px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gaushala-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 10px;
    color: var(--text-muted);
}

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

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.theme-toggle-btn:active {
    transform: scale(0.9);
}

/* Notification & Profile Styles */
.notification-wrapper,
.profile-section {
    position: relative;
    cursor: pointer;
}

.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.notif-icon-box:hover {
    background: var(--bg-input);
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-img {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.avatar-img i {
    font-size: 24px;
    color: var(--text-muted);
}

.avatar-text {
    display: none; /* Hidden on mobile */
    flex-direction: column;
    text-align: right;
}

.avatar-text strong {
    font-size: 13px;
    color: var(--text-main);
    display: block;
}

.avatar-text small {
    font-size: 10px;
    color: var(--text-muted);
}

/* Dropdowns */
.notif-dropdown,
.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    overflow: hidden;
}

.notif-dropdown.show,
.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.dropdown-header .new-count {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-content p {
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 2px;
    line-height: 1.4;
}

.notif-content small {
    font-size: 10px;
    color: var(--text-muted);
}

.no-notif {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.dropdown-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.02);
}

.dropdown-footer a {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* Profile Dropdown Specifics */
.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-user-info span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.dropdown-menu {
    padding: 5px 0;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary);
}

.dropdown-menu li a i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-menu li a:hover i {
    color: var(--primary);
}

.dropdown-menu .divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 5px 0;
}

.logout-btn {
    color: var(--danger) !important;
}

.logout-btn i {
    color: var(--danger) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Table Controls & Search Wrapper */
.table-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.search-input.form-control {
    width: 100%;
    padding: 10px 15px 10px 40px !important; /* Space for icon */
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    height: 42px;
    transition: var(--transition);
}

.search-input.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

@media (max-width: 768px) {
    .table-controls {
        margin-bottom: 10px;
    }
    
    .search-wrapper {
        max-width: 100%; /* Full width on mobile */
    }
}



.user-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.user-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    height: 70px;
    background: var(--bg-card); /* Fallback */
    /* Create the Notch effect using radial-gradient mask */
    background: radial-gradient(circle at 50% -5px, transparent 35px, var(--bg-card) 35.5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    /* Use drop-shadow instead of box-shadow to respect the transparent notch */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    box-shadow: none;
    z-index: 1000;
    border-radius: 20px;
    border: none; /* Border interferes with notch, use drop-shadow */
}

.nav-links-group {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: space-around;
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    gap: 4px;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    background: transparent;
}

.nav-item-bottom i {
    font-size: 20px;
    transition: var(--transition);
}

.nav-item-bottom.active {
    color: #FF7A00; /* Orange Active Color */
    font-weight: 600;
    background: transparent;
}

.nav-item-bottom.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(255, 122, 0, 0.3));
}

/* FAB Button */
.nav-fab-container {
    position: relative;
    top: -35px; /* Pull up into the notch */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1002; /* Above nav content */
}

.nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF7A00, #FF5500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 15px rgba(255, 122, 0, 0.4);
    border: 4px solid var(--bg-card); /* Matches nav background for seamless look */
    transition: transform 0.2s ease;
}

.nav-fab:active {
    transform: scale(0.95);
}

/* Adjust layout for smaller screens */
@media (max-width: 380px) {
    .bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 65px;
        border-radius: 15px;
    }
    .nav-item-bottom {
        width: 40px;
        font-size: 9px;
    }
    .nav-fab-container {
        top: -30px;
    }
    .nav-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* =========================================
   5. DASHBOARD COMPONENTS
   ========================================= */
/* Section Header */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #FF5500);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.header-text-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.header-text-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.header-stats-pill {
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-stats-pill .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-stats-pill .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.stat-card:hover, .stat-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
}

.stat-info h3 {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-label-success {
    font-size: 10px;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-label-warning {
    font-size: 10px;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 50px;
    opacity: 0.05;
    color: var(--text-main);
    transform: rotate(-15deg);
}

/* Quick Actions */
.quick-actions-section {
    margin-bottom: 25px;
}

.quick-actions-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 5px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 5px;
}

.icon-box.orange { background: rgba(255, 122, 0, 0.1); color: var(--primary); }
.icon-box.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.icon-box.blue { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.icon-box.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.icon-box.purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }

.action-btn span {
    font-size: 11px;
    color: var(--text-main);
    text-align: center;
}

/* Recent Reports */
.recent-reports-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 5px;
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

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

.report-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.report-details h4 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.report-details p {
    font-size: 11px;
    color: var(--text-muted);
}

.report-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* =========================================
   6. TABLES & DATA
   ========================================= */
.compact-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.compact-table thead {
    display: table-header-group;
    background: var(--bg-card);
}

.compact-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-table tr {
    display: table-row;
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: background 0.2s;
}

.compact-table tr:hover {
    background: rgba(0,0,0,0.01);
}

.compact-table td {
    display: table-cell;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.compact-table td:last-child {
    border-bottom: 1px solid var(--border-subtle);
}

.compact-table td:before {
    display: none;
}

/* Compact Table Inner Elements Styling */
.user-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-name-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.user-sub-text {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-info-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-info-compact span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Circle shape as in screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-call { 
    background: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-whatsapp { 
    background: #25d366; 
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.contact-phone {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

.location-info-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-info-compact small {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
}

/* =========================================
   7. FORMS & INPUTS
   ========================================= */
.form-floating {
    position: relative;
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-floating label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 11px;
    color: var(--primary);
    background: var(--bg-card);
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #FF7A00, #FF5500);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
    transition: var(--transition);
    width: 100%;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* =========================================
   8. UTILITIES & ANIMATIONS
   ========================================= */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.no-print {
    display: block;
}

/* Print Utilities */
.print-only, .only-print {
    display: none !important;
}

/* Screen styles for report header (mirrors print styles but visible on screen) */
.gaushala-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gaushala-info img {
    height: 60px;
    width: auto;
    display: block;
}

.gaushala-info h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: var(--text-main);
}

.gaushala-info p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        overflow: visible;
        -webkit-print-color-adjust: exact;
    }
    
    .no-print, 
    .admin-wrapper > header, 
    .admin-sidebar,
    .top-header,
    .section-header,
    .report-filters,
    .sidebar,
    .bottom-nav,
    .nav-links-group,
    .report-controls,
    .checkbox-col,
    .action-cell-mini,
    th:last-child,
    td:last-child {
        display: none !important;
    }

    .admin-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .main {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .page-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .report-print-container {
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        display: block !important;
    }

    .only-print, .print-only {
        display: block !important;
    }

    /* .report-header was here, removed to avoid hiding print header */

    /* Professional Print Table Styles */
    .full-report-table-hidden {
        display: table !important;
        width: 100%;
        border-collapse: collapse;
        font-family: 'Times New Roman', Times, serif; /* Professional Serif font for print */
        font-size: 11px;
        margin-top: 20px;
    }

    .full-report-table-hidden th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        font-weight: bold;
        text-transform: uppercase;
        border: 1px solid #000;
        padding: 8px 5px;
        text-align: center;
    }

    .full-report-table-hidden td {
        border: 1px solid #ccc;
        padding: 6px 5px;
        color: #000;
        vertical-align: middle;
    }

    .full-report-table-hidden tr:nth-child(even) {
        background-color: #f9f9f9 !important;
    }

    /* Print Header Styles */
    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-bottom: 2px solid #000;
        padding-bottom: 15px;
        margin-bottom: 20px;
        gap: 20px;
    }

    .print-logo img {
        height: 80px;
        width: auto;
    }

    .print-details {
        text-align: center;
    }

    .print-details h2 {
        font-size: 24px;
        margin: 0 0 5px 0;
        color: #000;
        text-transform: uppercase;
    }

    .print-details p {
        margin: 2px 0;
        font-size: 12px;
        color: #333;
    }

    /* Hide Screen Elements */
    .screen-only, 
    .report-summary-grid,
    .report-controls,
    .action-cell-mini,
    .mini-action-btn,
    .header-actions,
    .summary-mini-card {
        display: none !important;
    }

    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

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

    .gaushala-info img {
        height: 60px;
        width: auto;
    }

    .gaushala-info h2 {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
        color: #000;
    }

    .gaushala-info p {
        margin: 0;
        font-size: 14px;
        font-style: italic;
        color: #333;
    }

    .report-meta {
        text-align: right;
    }

    .report-meta h3 {
        font-size: 20px;
        margin: 0 0 5px 0;
        text-transform: uppercase;
        color: #000;
    }

    .report-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .report-table th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000;
        padding: 8px;
        font-weight: bold;
        text-align: left;
        font-size: 12px;
    }

    .report-table td {
        border: 1px solid #000;
        padding: 8px;
        color: #000;
        font-size: 12px;
    }
    
    .badge {
        border: 1px solid #000;
        padding: 2px 5px;
        border-radius: 4px;
        color: #000;
    }

    .report-summary-footer {
        display: block !important;
        color: #000;
    }

    .report-footer {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        font-size: 12px;
        color: #000;
    }
    
    .signature {
        border-top: 1px solid #000;
        padding-top: 5px;
        width: 200px;
        text-align: center;
    }
    
    /* Hide specific elements that shouldn't appear in print if they leak through */
    .admin-wrapper {
        height: auto !important;
        overflow: visible !important;
    }
}

/* =========================================
   9. PROFILE PAGE STYLES
   ========================================= */
.profile-header-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-body);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    border: 2px solid var(--border-subtle);
}

.profile-info h2 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (min-width: 768px) {
    /* Tablet & Desktop */
    .admin-wrapper {
        flex-direction: column; /* Keep column layout, sidebar is fixed */
    }
    
    /* Convert Bottom Nav to Sidebar */
    .bottom-nav {
        display: flex; /* Show navigation */
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 65px; /* Below header */
        bottom: 0;
        width: 80px; /* Sidebar width */
        height: calc(100vh - 65px);
        background: var(--bg-card);
        border-top: none;
        border-right: 1px solid var(--border-subtle);
        border-radius: 0;
        justify-content: flex-start;
        padding-top: 20px;
        z-index: 900;
        align-items: center;
        gap: 10px;
        box-shadow: var(--shadow-sm);
        filter: none; /* Remove mobile drop-shadow */
    }

    .nav-links-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .nav-fab-container {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 10px;
        top: 0;
        order: -1;
    }

    .nav-fab {
        width: 45px;
        height: 45px;
        font-size: 20px;
        border: none;
        box-shadow: var(--shadow-sm);
    }

    .nav-item-bottom {
        width: 100%;
        height: auto;
        padding: 12px 0;
        border-radius: 0;
        margin-bottom: 5px;
    }

    .nav-item-bottom i {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .nav-item-bottom span {
        font-size: 10px;
        display: block; /* Show text */
    }

    .nav-item-bottom.active {
        background: transparent;
        color: var(--primary);
        border-right: 3px solid var(--primary);
    }
    
    .main {
        padding-top: 70px;
        padding-bottom: 20px;
        padding-left: 100px; /* 80px sidebar + 20px gap */
        padding-right: 20px;
    }
    
    /* Grid Adjustments */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .report-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Table Desktop View */
    .compact-table {
        border-spacing: 0;
        border-collapse: collapse;
    }
    
    .compact-table thead {
        display: table-header-group;
    }
    
    .compact-table thead th {
        padding: 15px;
        text-align: left;
        background: var(--bg-card);
        color: var(--text-muted);
        font-weight: 600;
        border-bottom: 2px solid var(--border-subtle);
    }
    
    .compact-table tr {
        display: table-row;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
    
    .compact-table tr:hover {
        background: rgba(255, 255, 255, 0.02);
    }
    
    .compact-table td {
        display: table-cell;
        padding: 15px;
        border-bottom: 1px solid var(--border-subtle);
        width: auto;
    }
    
    .compact-table td:before {
        display: none;
    }
}

@media (min-width: 1440px) {
    /* Projector / Wide Screen */
    body {
        font-size: 16px; /* Increase base font size */
    }
    
    .page-content {
        max-width: 1600px;
    }
    
    .stats-grid {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .compact-table td {
        padding: 20px;
        font-size: 15px;
    }
}

/* =========================================
   13. LOGIN PAGE STYLES (LEGACY - REPLACED)
   ========================================= */
/* Kept for reference but overridden by new styles below if needed, 
   though new login page uses specific classes. */

/* =========================================
   14. ADVANCED REPORT STYLES
   ========================================= */
.report-result-header {
    margin-bottom: 20px;
}

.s-label {
    font-size: 11px;
    color: var(--text-muted);
}

.report-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.report-search {
    position: relative;
    width: 100%;
}

.report-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.report-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.report-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.broadcast-mini-btn {
    background: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
}

.broadcast-mini-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.report-table thead {
    display: none; /* Mobile first */
}

.report-table tr {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    gap: 12px;
    border-left: 5px solid transparent; /* Placeholder for colors */
    position: relative;
}

/* Colored Borders for Cards */
.report-table tr:nth-child(4n+1) { border-left-color: #3b82f6; } /* Blue */
.report-table tr:nth-child(4n+2) { border-left-color: #10b981; } /* Green */
.report-table tr:nth-child(4n+3) { border-left-color: #f59e0b; } /* Orange */
.report-table tr:nth-child(4n+4) { border-left-color: #8b5cf6; } /* Purple */

.report-table td {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: none;
    font-size: 13px;
    color: var(--text-main);
}

/* S.No Column */
.report-table td:nth-of-type(2) {
    width: auto;
    font-weight: 700;
    color: var(--text-muted);
    justify-content: center;
    min-width: 20px;
}

/* User Info Column */
.report-table td:nth-of-type(3) {
    flex: 1;
    overflow: hidden;
    justify-content: flex-start;
}

/* Contact Column - Hide on Mobile */
.report-table td:nth-of-type(4) {
    display: none;
}

/* Actions Column */
.report-table td:last-child {
    width: auto;
    justify-content: flex-end;
    border-bottom: none;
}

.report-table td:before {
    display: none; /* Remove data labels */
}

/* Enhanced Action Buttons */
.action-cell-mini {
    display: flex;
    gap: 8px;
}

.mini-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.2s;
}

.mini-action-btn:active {
    transform: scale(0.95);
}

.mini-action-btn.wa { 
    background: #25D366; 
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.mini-action-btn.call { 
    background: #3b82f6; 
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

/* User Info Styling Updates */
.user-cell {
    gap: 12px;
}

.user-avatar-mini {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-name {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
    display: block;
}

.user-id {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .report-controls {
        flex-direction: row;
        align-items: center;
    }

    .report-search {
        flex: 1;
    }

    .report-table {
        border-spacing: 0;
        border-collapse: collapse;
    }
    
    .report-table thead {
        display: table-header-group;
    }
    
    .report-table tr {
        display: table-row;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
    }

    .report-table th {
        text-align: left;
        padding: 15px;
        background: var(--bg-card);
        color: var(--text-muted);
        font-weight: 600;
        border-bottom: 2px solid var(--border-subtle);
    }

    .report-table td {
        display: table-cell;
        padding: 15px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .report-table td:nth-of-type(4) {
        display: table-cell;
    }

    .report-table td:before {
        display: none;
    }
}

/* =========================================
   15. FLOATING ICON UTILITIES
   ========================================= */
.floating-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.floating-icon-wrapper:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.1);
}

/* =========================================
   16. LOGIN PAGE REDESIGN
   ========================================= */
.login-page-redesign {
    background: #FFF5E6; /* Light peach background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    width: 100vw;
    overflow-x: hidden;
    position: relative; /* For theme toggle positioning */
}

/* Theme Toggle on Login Page */
.login-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    color: #FF7A00;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.login-theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: #FFF5E6;
}

[data-theme="dark"] .login-theme-toggle {
    background: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

[data-theme="dark"] .login-theme-toggle:hover {
    background: #374151;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card-redesign {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: relative;
    text-align: center;
}

/* Logo Section */
.logo-circle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -60px; /* Pull logo up */
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header */
.login-header-redesign {
    margin-bottom: 30px;
}

.hindi-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}

/* Form Styles */
.input-group-redesign {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-group-redesign.orange-border {
    border: 2px solid #FF7A00;
    background: white;
}

.input-group-redesign.grey-bg {
    background: #F3F4F6;
    border: 1px solid transparent;
}

.input-wrapper {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
}

.input-icon {
    color: #9CA3AF;
    font-size: 16px;
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.orange-border .input-icon {
    color: #FF7A00;
}

.input-field {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #374151;
    height: 100%;
    width: 100%;
}

.floating-label-custom {
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 5px;
    font-size: 12px;
    color: #FF7A00;
    font-weight: 600;
}

.toggle-password {
    color: #9CA3AF;
    cursor: pointer;
    margin-left: 10px;
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    cursor: pointer;
}

.custom-checkbox {
    accent-color: #FF7A00;
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: #FF7A00;
    font-weight: 600;
    text-decoration: none;
}

/* Button */
.login-btn-redesign {
    width: 100%;
    background: linear-gradient(to right, #FF7A00, #FF5500);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.login-btn-redesign:active {
    transform: scale(0.98);
}

/* Divider */
.divider-redesign {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.divider-redesign:before,
.divider-redesign:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #E5E7EB;
}

.divider-redesign:before { left: 0; }
.divider-redesign:after { right: 0; }

.divider-redesign span {
    background: white;
    padding: 0 10px;
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

/* Dark Mode Overrides for Login Page */
[data-theme="light"] .login-page-redesign {
    background: #FFF5E6;
}
/* Ensure dark mode doesn't break it if user prefers dark mode but this design is specifically light */
/* But if we want dark mode support: */
[data-theme="dark"] .login-page-redesign {
    background: #111827;
}

[data-theme="dark"] .login-card-redesign {
    background: #1F2937;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

[data-theme="dark"] .logo-circle {
    background: #1F2937;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hindi-title {
    color: #F9FAFB;
}

[data-theme="dark"] .input-group-redesign.orange-border {
    background: #1F2937;
    border-color: #FF7A00;
}

[data-theme="dark"] .input-group-redesign.grey-bg {
    background: #374151;
}

[data-theme="dark"] .input-field {
    color: #F9FAFB;
}

[data-theme="dark"] .floating-label-custom {
    background: #1F2937;
}

[data-theme="dark"] .social-btn {
    background: #374151;
    border-color: #4B5563;
    color: #F9FAFB;
}

[data-theme="dark"] .social-btn:hover {
    background: #4B5563;
}

[data-theme="dark"] .divider-redesign span {
    background: #1F2937;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .top-header {
        flex-wrap: nowrap !important;
        gap: 5px;
        padding: 0 10px;
    }
    
    .avatar-text {
        display: none !important;
    }
    
    .header-actions {
        gap: 8px;
    }
}

/* =========================================
   17. MODAL & TOAST COMPONENT STYLES
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 0;
    border: 1px solid var(--border-subtle);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0,0,0,0.02);
}

.close {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
    font-size: 20px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-muted);
}

.toast-close {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.toast-close:hover {
    color: var(--text-main);
}

/* Mobile Adjustments for Login */
@media (max-width: 480px) {
    .login-card-redesign {
        padding: 30px 20px;
    }
    
    .hindi-title {
        font-size: 20px;
    }
}

/* =========================================
   17. MOBILE LAYOUT FIXES (REPORT CARDS)
   ========================================= */
@media (max-width: 480px) {
    .report-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .report-card {
        padding: 12px 10px !important;
        min-height: 110px !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative;
        justify-content: space-between !important;
    }
    
    .stat-info {
        width: 100%;
        z-index: 2;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .stat-info h3 {
        font-size: 10px !important;
        margin-bottom: 5px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stat-number {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        font-weight: 700 !important;
    }
    
    .stat-label-success,
    .stat-label-warning {
        font-size: 9px !important;
        padding: 4px 8px !important;
        display: inline-block;
        border-radius: 4px;
    }
    
    /* Fix floating icon positioning */
    .floating-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 14px;
        color: var(--text-muted);
        opacity: 0.7;
    }
    
    .stat-icon {
        font-size: 40px !important;
        bottom: -5px !important;
        right: -5px !important;
        opacity: 0.1 !important;
    }
}

/* =========================================
   18. REPORT CONFIGURATION STYLES
   ========================================= */
.details-section {
    margin-top: 20px;
    animation: slideUp 0.3s ease-out;
}

.section-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--danger);
    color: white;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.option-item {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.option-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.option-icon.all-data {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.option-icon.date {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.option-content {
    flex: 1;
}

.option-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.option-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.arrow {
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
}

.option-item:hover .arrow {
    color: var(--primary);
    transform: translateX(5px);
    opacity: 1;
}

/* Date Picker Specifics */
.date-picker-item {
    cursor: default;
}

.date-picker-item:hover {
    transform: none;
    border-color: var(--border-subtle);
}

.date-filter-form {
    margin-top: 15px;
}

.date-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    min-width: 120px;
}

.input-field label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.input-field input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.input-field input:focus {
    border-color: var(--primary);
}

.date-separator {
    padding-bottom: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.filter-submit-btn-large {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    height: 38px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-subtle);
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-color: rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-color: rgba(220, 53, 69, 0.2);
}

/* =========================================
   25. GALLERY MANAGER STYLES
   ========================================= */
.gallery-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-selection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.gallery-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-glow);
}

.gallery-selection-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.gallery-selection-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.gallery-selection-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card-body {
    padding: 20px;
}

.gallery-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-glow);
}

.gallery-item-card img, 
.gallery-item-card video,
.video-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.video-preview {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.item-details {
    padding: 12px;
}

.item-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.item-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.item-actions button {
    flex: 1;
    padding: 6px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.item-actions .btn-edit {
    background: var(--warning);
    color: #212529;
}

.item-actions .btn-delete {
    background: var(--danger);
    color: white;
}

.item-actions button:hover {
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .gallery-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .gallery-selection-card {
        padding: 10px 5px;
        min-height: auto;
    }
    
    .gallery-selection-card i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .gallery-selection-card h3 {
        font-size: 11px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .gallery-selection-card p {
        font-size: 10px;
        margin: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item-card img,
    .gallery-item-card video,
    .video-preview {
        height: 120px;
    }
    
    .item-details {
        padding: 8px;
    }

    .item-details h4 {
        font-size: 12px;
    }

    .item-details p {
        font-size: 10px;
        height: 30px;
        margin-bottom: 5px;
    }

    .item-actions {
        margin-top: 5px;
    }
    
    .item-actions button {
        padding: 4px;
        font-size: 11px;
    }
}

.filter-submit-btn-large:hover {
    background: #e66e00;
}

/* Mobile Adjustments for Options */
@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .date-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .date-separator {
        display: none;
    }
    
    .filter-submit-btn-large {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* =========================================
   26. GALLERY HEADER STYLES
   ========================================= */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.header-left h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
}

.btn-add {
    padding: 6px 15px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
}

/* Mobile Header Adjustments */
@media (max-width: 480px) {
    .gallery-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .header-left h3 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Compact Buttons for Mobile */
    .btn-back span,
    .btn-add span {
        display: none;
    }
    
    .btn-back, 
    .btn-add {
        padding: 0 10px;
        width: 32px;
        justify-content: center;
    }
    
    .btn-back i, 
    .btn-add i {
        margin: 0;
        font-size: 14px;
    }
}
.pagination-controls-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.pagination-btn-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-btn-modern:hover:not(:disabled) {
    background: var(--bg-input);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination-btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-body);
    color: var(--text-muted);
}

.pagination-info-modern {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 480px) {
    .pagination-controls-modern {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        padding: 10px;
        flex-wrap: nowrap;
    }
    
    .pagination-btn-modern {
        width: auto;
        padding: 6px 10px;
        font-size: 12px;
        flex: 0 0 auto;
    }
    
    .pagination-info-modern {
        order: 0;
        font-size: 11px;
        white-space: nowrap;
        text-align: center;
    }
}

/* =========================================
   19. REPORT RESULTS & SUMMARY STYLES
   ========================================= */
.report-result-header {
    margin-bottom: 25px;
    animation: fadeIn 0.4s ease-out;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-main h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.print-mini-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.print-mini-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    cursor: default;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.summary-mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.summary-mini-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.summary-mini-card:hover:before {
    opacity: 1;
}

.s-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.summary-mini-card:hover .s-icon {
    background: var(--primary);
    color: white;
}

.s-data {
    display: flex;
    flex-direction: column;
}

.s-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 2px;
}

.s-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Variations */
.summary-mini-card.active .s-icon {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.summary-mini-card.active:hover {
    border-color: var(--success);
}

.summary-mini-card.active:hover .s-icon {
    background: var(--success);
    color: white;
}

.summary-mini-card.active:before {
    background: var(--success);
}

.summary-mini-card.location .s-icon {
    color: var(--info);
    background: rgba(59, 130, 246, 0.1);
}

.summary-mini-card.location:hover {
    border-color: var(--info);
}

.summary-mini-card.location:hover .s-icon {
    background: var(--info);
    color: white;
}

.summary-mini-card.location:before {
    background: var(--info);
}

.summary-mini-card.recent .s-icon {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.summary-mini-card.recent:hover {
    border-color: var(--warning);
}

.summary-mini-card.recent:hover .s-icon {
    background: var(--warning);
    color: white;
}

.summary-mini-card.recent:before {
    background: var(--warning);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .summary-mini-card {
        padding: 12px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 70px;
    }
    
    .s-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .s-data {
        min-width: 0;
    }
    
    .s-value {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .s-label {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .header-main h4 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-bottom: 0;
    }
    
    .header-actions {
        width: auto;
    }
}

/* =========================================
   21. BROADCAST MODAL STYLES
   ========================================= */
.broadcast-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.broadcast-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.broadcast-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.broadcast-modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.broadcast-modal-header h4 i {
    color: #25D366;
    font-size: 22px;
}

.broadcast-modal-body {
    padding: 20px;
}

.broadcast-modal-body textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 15px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: var(--transition);
}

.broadcast-modal-body textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.broadcast-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* =========================================
   22. UTILITY CLASSES (GRID & FORM)
   ========================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

.btn-secondary {
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--border-subtle);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: 1px solid var(--danger);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-danger:hover {
    background-color: #dc2626; /* Darker red */
}

@media (max-width: 768px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.modal-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn.cancel {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.modal-btn.cancel:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.modal-btn.send {
    background: #25D366;
    color: white;
    border: none;
}

.modal-btn.send:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.date-badge {
    background: var(--bg-input);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
    width: fit-content;
}

.report-table .checkbox-col {
    display: none;
    width: 40px;
    text-align: center;
}

/* Show checkbox when selection mode is active */
.show-selection .report-table .checkbox-col {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1; /* Show first in mobile view */
}

/* Desktop overrides */
@media (min-width: 768px) {
    .show-selection .report-table .checkbox-col {
        display: table-cell;
        order: initial;
    }
}

.checkbox-col input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}



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

.user-avatar-mini {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure text truncation works */
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
}

.user-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.contact-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-cell span {
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-cell small {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-cell i {
    width: 14px;
    text-align: center;
    color: var(--primary);
    opacity: 0.8;
}

.action-cell-mini {
    display: flex;
    gap: 10px;
}

.mini-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    font-size: 16px;
}

.mini-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mini-action-btn.wa {
    background: #25D366; /* WhatsApp Green */
}

.mini-action-btn.call {
    background: #3B82F6; /* Blue */
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.no-data {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-body);
}

/* Mobile Adjustments for Table */
@media (max-width: 768px) {
    .user-cell {
        margin-bottom: 5px;
    }
    
    .contact-cell {
        margin-top: 5px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .action-cell-mini {
        justify-content: flex-end;
        margin-top: 10px;
        border-top: 1px solid var(--border-subtle);
        padding-top: 10px;
        width: 100%;
    }
}

/* Mobile Section Header Adjustments - Ensure Single Line */
@media (max-width: 480px) {
    .section-header-modern {
        flex-wrap: nowrap !important;
        gap: 8px;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-title-group {
        gap: 8px;
        flex: 1;
        min-width: 0; /* Allow flex shrinking */
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .header-icon-box {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .header-text-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }

    .header-text-content h3 {
        font-size: 14px;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0;
        line-height: 1.2;
        width: 100%;
    }

    .header-text-content p {
        font-size: 10px;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 0;
        line-height: 1.2;
        width: 100%;
    }

    .header-stats-pill {
        padding: 4px 8px;
        flex-shrink: 0;
        min-width: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .header-stats-pill .stat-label {
        font-size: 9px;
    }

    .header-stats-pill .stat-value {
        font-size: 14px;
    }
}

/* Mobile Top Header Optimization */
@media (max-width: 480px) {
    .top-header {
        height: 55px;
        padding: 10px 15px;
        gap: 10px;
        justify-content: space-between;
        flex-wrap: nowrap !important;
    }

    .page-title {
        gap: 8px;
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }

    .logo-container {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .gaushala-logo {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        flex: 1;
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        width: 100%;
    }

    .logo-text p {
        display: none; /* Hide subtitle on mobile to ensure single line look */
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .theme-toggle-btn, 
    .notif-icon-box {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .notif-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        right: -4px;
        top: -4px;
    }
    
    .profile-section {
        margin-left: 0;
    }
    
    .avatar-img i {
        font-size: 20px;
    }
    
    /* Ensure no text shows for profile on mobile */
    .avatar-text {
        display: none !important;
    }
}

/* =========================================
   23. CHART CARD & ACTIVITY LIST STYLES
   ========================================= */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.chart-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-header span {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
    opacity: 0;
}

.activity-item:hover {
    background: var(--bg-input);
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.activity-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 4px 8px;
    border-radius: 4px;
}

.no-activity {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}

.no-activity i {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* =========================================
   24. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
