/* Section Loading Styles */
.section-loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.section-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Super Admin Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Edit button styling - amenities */
#editAmenitiesBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: #f1f3f6;
    border: 1px solid #d0d4d9;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, box-shadow 0.15s;
}

#editAmenitiesBtn:hover {
    background: #e4e8ec;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.12);
}

#editAmenitiesIcon {
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #editAmenitiesBtn {
        width: 28px;
        height: 28px;
    }
    #editAmenitiesIcon { font-size: 0.95rem; }
    #amenitiesDescription { font-size: 0.85em !important; }
}

@media (max-width: 480px) {
    #editAmenitiesBtn { width: 28px; height: 28px; }
    #editAmenitiesIcon { font-size: 0.95rem; }
}

.login-box button:hover {
    transform: translateY(-2px);
}

.demo-credentials {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

/* Admin App Layout */
.admin-app {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main";
    grid-template-rows: 70px 1fr;
    grid-template-columns: 250px 1fr;
    height: 100vh;
    background: #f5f6fa;
}

/* Header */
.admin-header {
    grid-area: header;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.header-left h1 {
    color: #333;
    font-size: 1.5rem;
}

.header-left i {
    color: #f39c12;
    margin-right: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-name {
    color: #666;
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

/* Sidebar */
.admin-sidebar {
    grid-area: sidebar;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar.mobile-hidden {
    transform: translateX(-100%);
}

/* Mobile overlay */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.admin-nav ul {
    list-style: none;
    padding: 20px 0;
}

.admin-nav .nav-item {
    display: block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-nav .nav-item:hover,
.admin-nav .nav-item.active {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.admin-nav .nav-item i {
    margin-right: 12px;
    width: 20px;
}

/* Main Content */
.admin-main {
    grid-area: main;
    padding: 30px;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #333;
    font-size: 2rem;
}

.add-btn {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #218838;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.metric-card:nth-child(1) .metric-icon { background: #667eea; }
.metric-card:nth-child(2) .metric-icon { background: #28a745; }
.metric-card:nth-child(3) .metric-icon { background: #ffc107; }
.metric-card:nth-child(4) .metric-icon { background: #17a2b8; }

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.metric-label {
    color: #666;
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* PG Status List */
.pg-status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pg-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.pg-status-item.warning {
    border-left-color: #ffc107;
}

.pg-status-item.danger {
    border-left-color: #dc3545;
}

.pg-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.pg-info p {
    color: #666;
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    background: #667eea;
}

.activity-content {
    flex: 1;
}

.activity-content h5 {
    color: #333;
    margin-bottom: 3px;
    font-size: 14px;
}

.activity-content p {
    color: #666;
    font-size: 12px;
}

/* PGs Grid */
.pgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pg-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.pg-card:hover {
    transform: translateY(-4px);
}

.pg-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pg-card-header h3 {
    margin-bottom: 5px;
}

.pg-card-header p {
    opacity: 0.9;
    font-size: 14px;
}

.pg-card-body {
    padding: 20px;
}

.pg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.pg-stat {
    text-align: center;
}

.pg-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.pg-stat-label {
    color: #666;
    font-size: 12px;
}

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

.btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

/* Analytics Styles */
.analytics-filters {
    margin-bottom: 30px;
}

.analytics-filters select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.analytics-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.analytics-card:last-child {
    grid-column: 1 / -1;
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Subscriptions Styles */
.subscription-alerts {
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.subscriptions-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subscriptions-table table {
    width: 100%;
    border-collapse: collapse;
}

.subscriptions-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.subscriptions-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* PGs Table Styles */
.pgs-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.pgs-table table {
    width: 100%;
    border-collapse: collapse;
}

.pgs-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.pgs-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.pgs-table .pg-name strong {
    color: #2c3e50;
    font-weight: 600;
}

.pgs-table .subscription-amount {
    font-weight: 600;
    color: #27ae60;
}

.pgs-table .username-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.pgs-table .action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.pgs-table .action-buttons .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* Search Box Styles */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4285f4;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Large Modal */
.large-modal {
    max-width: 800px;
    width: 90%;
}

.payment-history-table {
    max-height: 400px;
    overflow-y: auto;
}

.payment-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history-table th,
.payment-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.payment-history-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.settings-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.backup-btn,
.export-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.backup-btn {
    background: #17a2b8;
    color: white;
}

.export-btn {
    background: #6c757d;
    color: white;
}

.backup-btn:hover,
.export-btn:hover {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-form {
    padding: 25px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions button[type="submit"] {
    background: #28a745;
    color: white;
}

.form-actions button[type="button"] {
    background: #6c757d;
    color: white;
}

/* Alert Modal */
.alert-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.alert-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-body {
    padding: 25px;
}

.alert-actions {
    padding: 0 25px 25px;
    display: flex;
    justify-content: center;
}

.alert-actions button {
    padding: 10px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-app {
        grid-template-areas: 
            "header"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 70px 1fr;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100vh - 70px);
        width: 280px;
        z-index: 999;
        transform: translateX(-100%);
    }
    
    .admin-sidebar.mobile-visible {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .admin-sidebar.mobile-visible ~ .mobile-sidebar-overlay {
        display: block;
    }
    
    .admin-main {
        padding: 15px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .header-right .admin-name {
        display: none;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .pgs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile table responsiveness */
    .pgs-table {
        overflow-x: auto;
    }
    
    .pgs-table table {
        min-width: 800px;
    }
    
    .subscriptions-table {
        overflow-x: auto;
    }
    
    .subscriptions-table table {
        min-width: 600px;
    }
    
    /* Modal responsiveness */
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .modal-form .form-group {
        margin-bottom: 15px;
    }
}

/* Performance Table */
.performance-table {
    overflow-x: auto;
}

.performance-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.performance-table th,
.performance-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.performance-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Loading spinner animation for charts */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Amenities View Mode Styles */
.amenities-view .amenity-view-group {
    transition: transform 0.2s, box-shadow 0.2s;
}

.amenities-view .amenity-view-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amenities-view h4 {
    font-size: 1.1em;
    font-weight: 600;
}

.amenities-view a {
    transition: color 0.2s;
}

.amenities-view a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Edit button styling */
#editAmenitiesBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s ease;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    min-width: auto;
    height: 28px;
    line-height: 1;
    padding: 4px 10px !important;
}

#editAmenitiesBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
}

#editAmenitiesBtn:active {
    transform: translateY(0);
}

#editAmenitiesIcon {
    font-size: 0.85em;
    line-height: 1;
}

#editAmenitiesText {
    font-size: 0.8em;
    line-height: 1;
    font-weight: 500;
}

/* Mobile responsive amenities */
@media (max-width: 768px) {
    #editAmenitiesBtn {
        padding: 5px 12px !important;
        font-size: 0.8em !important;
        height: 30px;
        gap: 3px;
        border-radius: 7px;
    }
    
    #editAmenitiesIcon {
        font-size: 0.9em;
    }
    
    #editAmenitiesText {
        font-size: 0.85em;
    }
    
    #amenitiesDescription {
        font-size: 0.85em !important;
    }
}

@media (max-width: 480px) {
    #editAmenitiesBtn {
        padding: 6px !important;
        font-size: 0.75em !important;
        height: 32px;
        width: 32px;
        border-radius: 50%;
    }
    
    #editAmenitiesText {
        display: none;
    }
    
    #editAmenitiesIcon {
        font-size: 1.2em;
    }
}

/* Smooth transitions for mode switching */
#amenitiesViewMode, #amenitiesEditMode {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Distribution Styles */
.revenue-section {
    margin-bottom: 40px;
}

.revenue-section h3, .expenses-overview-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.payment-distribution {
    margin: 30px 0;
}

.payment-distribution h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}

.distribution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.method-card {
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.upi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cash-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.others-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.method-card h3 {
    font-size: 0.75rem;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-card span {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-card small {
    opacity: 0.85;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Payment Details Table */
.payment-details-section {
    margin-top: 30px;
}

.payment-details-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #555;
}

.payment-details-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-details-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.payment-details-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.payment-details-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.payment-details-table tbody tr:hover {
    background: #f8f9fa;
}

.payment-details-table tbody tr:last-child td {
    border-bottom: none;
}

/* Payment Method Badges */
.payment-method-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.payment-method-badge.upi {
    background: #e3f2fd;
    color: #1976d2;
}

.payment-method-badge.cash {
    background: #fce4ec;
    color: #c2185b;
}

.payment-method-badge.others {
    background: #e0f2f1;
    color: #00796b;
}

/* Payment Pagination */
.payment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #5568d3;
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

/* Expenses Overview Section */
.expenses-overview-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

/* Responsive styles */
@media (max-width: 768px) {
    .distribution-cards {
        gap: 10px;
    }
    
    .method-card {
        padding: 12px 15px;
    }
    
    .method-card h3 {
        font-size: 0.7rem;
    }
    
    .method-card span {
        font-size: 1.3rem;
    }
    
    .method-card small {
        font-size: 0.7rem;
    }
    
    .payment-details-table {
        font-size: 0.9rem;
    }
    
    .payment-details-table th,
    .payment-details-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .distribution-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .method-card {
        padding: 15px;
    }
}

