/* Admin Portal - Responsive CSS Theme (Blue & White) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #1f2937;
}

body {
    display: flex;
    min-height: 100vh;
}

/* Prevent scrolling when sidebar is open on mobile */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #4169E1 0%, #1e40af 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    padding: 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.mobile-open {
    z-index: 1001;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile hamburger menu */
.hamburger-menu {
    display: none;
    background: rgba(30, 64, 175, 0.08);
    color: #1e40af;
    border: 2px solid #3b82f6;
    padding: 10px;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger-menu:hover {
    background: rgba(30, 64, 175, 0.15);
    color: #1e3a8a;
    transform: scale(1.05);
    border-color: #1e3a8a;
}

.hamburger-menu:active {
    transform: scale(0.95);
    background: rgba(30, 64, 175, 0.2);
}

.hamburger-menu i {
    display: block;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-logo {
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo i {
    font-size: 28px;
    opacity: 0.95;
}

.sidebar-logo h2 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.3;
}

.sidebar-logo p {
    font-size: 11px;
    opacity: 0.85;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu a i {
    width: 24px;
    font-size: 18px;
    margin-right: 15px;
    text-align: center;
    opacity: 0.95;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    opacity: 1;
}

/* ==================== TOPBAR ==================== */
.topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 998;
    transition: left 0.3s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
}

.topbar-title p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.topbar-admin {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.admin-info p {
    margin: 0;
    font-size: 13px;
}

.admin-info .admin-name {
    color: #1f2937;
    font-weight: 600;
}

.admin-info .admin-role {
    color: #6b7280;
}

.btn-logout {
    padding: 10px 18px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    flex: 1;
    width: calc(100% - 280px);
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background-color: #0284c7;
    color: white;
}

.btn-secondary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background-color: #1e40af;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    color: #1e40af;
    font-size: 20px;
}

.card-body {
    color: #1f2937;
}

.card-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==================== SUMMARY CARDS ==================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.summary-card.occupied {
    border-left-color: #10b981;
}

.summary-card.vacant {
    border-left-color: #f59e0b;
}

.summary-card.tenants {
    border-left-color: #0284c7;
}

.summary-card-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e40af;
}

.summary-card.occupied .summary-card-value {
    color: #10b981;
}

.summary-card.vacant .summary-card-value {
    color: #f59e0b;
}

.summary-card.tenants .summary-card-value {
    color: #0284c7;
}

/* ==================== TABLES ==================== */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

/* Custom scrollbar styling for table-responsive */
.table-responsive::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Firefox scrollbar styling */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #1e40af #f1f5f9;
}

/* Blue scrollbar for all scrollable containers */
.card-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.card-body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.card-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.card-body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Firefox scrollbar for all containers */
.card-body,
.modal-content,
.table-container {
    scrollbar-width: thin;
    scrollbar-color: #1e40af #f1f5f9;
}

/* Ensure tables are scrollable on mobile even without wrapper */
@media (max-width: 1024px) {
    .card-body > table,
    .table-container > table {
        min-width: 600px;
    }
    
    .card-body,
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    vertical-align: middle;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #f8fafc;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 8px 10px;
    border: none;
    background-color: #1e40af;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.btn-icon.btn-danger {
    background-color: #ef4444;
}

.btn-icon.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Responsive table scrolling - removed grid/card layout */

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.badge-success {
    background-color: #d1fae5;
    color: #10b981;
    border: 1px solid #86efac;
}

.badge-warning {
    background-color: #fef3c7;
    color: #f59e0b;
    border: 1px solid #fde047;
}

.badge-danger {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.badge-info {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    font-weight: 600;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* ==================== SEARCH & FILTERS ==================== */
.filters-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.filters-form {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto auto;
    gap: 15px;
    align-items: end;
}

.filter-group {
    position: relative;
}

.filter-group .form-control,
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.filter-group .form-control:focus,
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

.filter-group .form-control:hover,
.filter-group input:hover,
.filter-group select:hover {
    border-color: #cbd5e1;
}

.search-filter-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.search-input {
    position: relative;
}

.search-input input,
.search-filter-grid input,
.search-filter-grid select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s ease;
}

.search-filter-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.search-input input::placeholder,
.search-filter-grid input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input input:focus,
.search-filter-grid input:focus,
.search-filter-grid select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

.search-input input:hover,
.search-filter-grid input:hover,
.search-filter-grid select:hover {
    border-color: #cbd5e1;
}

.search-filter-grid select:disabled,
.filter-group select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.search-filter-grid select:disabled:hover,
.filter-group select:disabled:hover {
    border-color: #e5e7eb;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-actions button,
.filter-actions a {
    padding: 12px 24px;
    white-space: nowrap;
    font-weight: 600;
    border-radius: 8px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.stat-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1f2937;
}

.stat-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Tablet Responsive - Filters & Stats */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .filters-form {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .search-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Responsive - Filters & Stats */
@media (max-width: 768px) {
    .filters-section,
    .search-filter-section {
        padding: 16px;
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
    }

    .filters-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #1f2937;
        font-size: 13px;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px;
    }

    .filter-actions button,
    .filter-actions a {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        gap: 12px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-content h3 {
        font-size: 24px;
    }

    .stat-content p {
        font-size: 12px;
    }

    .search-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Small Mobile - Filters & Stats */
@media (max-width: 480px) {
    .filters-section,
    .search-filter-section {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .stat-content h3 {
        font-size: 20px;
    }

    .stat-content p {
        font-size: 11px;
    }
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

.modal-content::-webkit-scrollbar-thumb {
    /* background: rgba(0, 0, 0, 0.1); */
    border-radius: 20px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(12, 113, 246, 0.2);
}

/* For Firefox */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.modal-header {
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #1e40af;
    flex: 1;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1e40af;
}

.modal-body {
    margin: 20px 0;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #10b981;
    border-color: #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #f59e0b;
    border-color: #f59e0b;
}

.alert-info {
    background-color: #cffafe;
    color: #0284c7;
    border-color: #0284c7;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .topbar {
        left: 220px;
    }

    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 20px;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-filter-grid {
        grid-template-columns: 1fr;
    }

    table th,
    table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Ensure tables are scrollable on tablets */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex !important;
        order: -1;
    }

    .topbar {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        height: auto;
        min-height: 64px;
        padding: 10px 15px;
        flex-wrap: nowrap;
        gap: 12px;
        z-index: 998;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .topbar-title {
        width: auto;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .topbar-title h1 {
        font-size: 18px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-title p {
        font-size: 11px;
        display: none;
    }

    .topbar-actions {
        flex-direction: row;
        gap: 10px;
        width: auto;
        flex-shrink: 0;
        align-items: center;
    }

    .topbar-admin {
        gap: 8px;
    }

    .admin-info {
        display: none;
    }

    .admin-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .btn-logout {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
    }

    .btn-logout span {
        display: inline;
    }

    .btn-logout i {
        font-size: 13px;
    }

    /* Sidebar on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-logo {
        padding: 20px 20px;
    }

    .sidebar-logo h2 {
        font-size: 17px;
    }

    .sidebar-logo p {
        font-size: 10px;
    }

    .sidebar-menu {
        padding: 10px 0;
    }

    .sidebar-menu li {
        margin: 0;
    }

    .sidebar-menu a {
        padding: 15px 25px;
        font-size: 14px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 64px;
        width: 100%;
        min-height: calc(100vh - 64px);
        padding: 15px;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Responsive tables - horizontal scrolling only */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
        width: calc(100% + 30px);
    }

    .table-responsive table {
        font-size: 12px;
        min-width: 700px;
        width: 100%;
        display: table;
    }

    .table-responsive table th,
    .table-responsive table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    .table-responsive table th:first-child,
    .table-responsive table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .table-responsive table thead th:first-child {
        z-index: 2;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    }

    .table-responsive table tbody tr:hover td:first-child {
        background-color: #f8fafc;
    }

    .modal-content {
        width: 95%;
        max-width: 500px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .card-header h2 {
        font-size: 16px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Quick actions grid */
    .card-body > div[style*="grid"],
    .quick-actions-grid,
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Financial summary */
    .card-body > div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 8px 10px;
        min-height: 56px;
    }

    .topbar-title h1 {
        font-size: 15px;
    }

    .hamburger-menu {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .admin-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .btn-logout span {
        display: none;
    }

    .main-content {
        margin-top: 56px;
        min-height: calc(100vh - 56px);
        padding: 12px;
    }

    .btn-logout span {
        display: inline;
    }

    .sidebar {
        width: 85%;
        max-width: 280px;
    }

    .sidebar-logo {
        padding: 18px 15px;
    }

    .sidebar-logo h2 {
        font-size: 16px;
    }

    .sidebar-menu a {
        padding: 14px 20px;
        font-size: 14px;
    }

    .sidebar-menu a i {
        width: 22px;
        font-size: 16px;
        margin-right: 12px;
    }

    .topbar {
        padding: 12px 12px 12px 55px;
    }

    .main-content {
        padding: 12px;
    }

    .topbar {
        padding: 12px 55px 12px 12px;
    }

    .topbar-title h1 {
        font-size: 18px;
    }

    .topbar-title p {
        font-size: 10px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .admin-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .btn-logout {
        padding: 6px 10px;
        font-size: 11px;
    }

    .main-content {
        padding: 12px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-card-value {
        font-size: 24px;
    }

    .summary-card-label {
        font-size: 11px;
    }

    .card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .card-header {
        padding-bottom: 10px;
        margin-bottom: 12px;
    }

    .card-header h2 {
        font-size: 15px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Responsive tables - horizontal scrolling */
    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
    }

    .table-responsive table {
        font-size: 11px;
        min-width: 650px;
        display: table;
    }

    .table-responsive table th,
    .table-responsive table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .modal-content {
        width: 98%;
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .form-group label {
        font-size: 13px;
    }
}

/* Extra small screens - optimize for very small devices */
@media (max-width: 360px) {
    .btn-logout span {
        display: none;
    }

    .btn-logout {
        padding: 7px 10px;
        gap: 0;
    }

    .btn-logout i {
        font-size: 14px;
    }

    .topbar {
        padding: 8px 10px;
        min-height: 52px;
    }

    .topbar-title h1 {
        font-size: 14px;
    }

    .admin-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .hamburger-menu {
        font-size: 22px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.text-muted {
    color: #6b7280;
}

.text-danger {
    color: #ef4444;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rounded {
    border-radius: 6px;
}

.overflow-hidden {
    overflow: hidden;
}

/* Touch device improvements */
.touch-device .btn,
.touch-device button,
.touch-device a {
    min-height: 44px;
    min-width: 44px;
}

.touch-device table td,
.touch-device table th {
    padding: 14px 12px;
}

.touch-device .modal-close {
    padding: 10px;
    font-size: 24px;
}

/* Scrollbar styling for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* ==================== EXPENSES & MAINTENANCE PAGES ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.bg-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.stat-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 5px 0 0 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 10px 0;
}

.detail-item strong {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.detail-item span,
.detail-item p {
    color: #1f2937;
    font-size: 14px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.modal-large {
    max-width: 900px;
}

/* Badge variations */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.amount {
    font-weight: 600;
    color: #1e40af;
}

/* ==================== FORM PAGE STYLES ==================== */
.form-page-container {
    padding: 20px;
    margin: 0 auto;
}

.form-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.form-page-header h2 {
    color: #1f2937;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-page-header h2 i {
    color: #1e40af;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.current-file {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    color: #6b7280;
}

.current-file a {
    color: #1e40af;
    text-decoration: none;
    margin-left: 5px;
}

.current-file a:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .form-page-container {
        padding: 15px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .form-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-page-header h2 {
        font-size: 22px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .form-page-header h2 {
        font-size: 20px;
    }
    
    .form-card {
        padding: 15px;
    }
}

/* ==================== ADDITIONAL RESPONSIVE ENHANCEMENTS ==================== */

/* Content header responsive */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Modal responsive improvements */
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 20px;
        border-radius: 12px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer button,
    .modal-footer a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        max-height: 95vh;
    }

    .modal-header {
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-close,
    .close {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }

    .modal-footer {
        padding-top: 12px;
    }
}

/* Close button for modals */
.close {
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #1e40af;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Spacing utilities for responsive */
@media (max-width: 480px) {
    .mb-20 {
        margin-bottom: 15px !important;
    }

    .mb-30 {
        margin-bottom: 20px !important;
    }

    .p-20 {
        padding: 15px !important;
    }

    .p-30 {
        padding: 20px !important;
    }
}

/* ==================== TABLE PAGINATION ==================== */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.page-size-selector label {
    margin: 0;
    font-weight: 500;
}

.page-size-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-size-select:hover {
    border-color: #1e40af;
}

.page-size-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 40px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1e40af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.pagination-btn.active:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6b7280;
    font-weight: 500;
}

/* Sortable table headers */
table thead th.sortable {
    position: relative;
    padding-right: 30px;
}

table thead th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

table thead th.sort-asc .sort-icon,
table thead th.sort-desc .sort-icon {
    color: white;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .table-pagination {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .pagination-info {
        text-align: center;
        margin-bottom: 10px;
    }

    .pagination-controls {
        justify-content: center;
        width: 100%;
    }

    .pagination-buttons {
        justify-content: center;
        width: 100%;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .table-pagination {
        padding: 12px;
    }

    .pagination-info {
        font-size: 12px;
    }

    .page-size-selector {
        font-size: 12px;
    }

    .page-size-select {
        padding: 5px 8px;
        font-size: 12px;
    }

    .pagination-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 30px;
    }

    .pagination-btn i {
        font-size: 10px;
    }
}
