﻿/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #757575;
}

    .loading-spinner p {
        margin-top: 15px;
        font-size: 14px;
    }
/* Usage Controls Responsive */
.usage-controls {
    padding: 15px;
}

.period-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.period-selector-label {
    margin-bottom: 5px;
}

.radio-group {
    width: 100%;
}

.radio-label {
    padding: 10px 15px;
    font-size: 13px;
}
/* =========================================
   FRONTLINE ENERGY - MAIN STYLESHEET
   ========================================= */

/* =========================================
   1. BASE STYLES & RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #424242;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   2. HEADER STYLES
   ========================================= */
.header-main {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #4caf50;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    flex: 0 0 auto;
}

    .logo-section img {
        height: 50px;
        width: auto;
        transition: transform 0.3s ease;
    }

        .logo-section img:hover {
            transform: scale(1.05);
        }

.user-info {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 14px;
    color: #424242;
    gap: 20px;
}

.user-info-details {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
}

.header-link {
    color: #4caf50;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .header-link:hover {
        color: #2e7d32;
        text-decoration: underline;
    }

.header-divider {
    color: #bdbdbd;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: #2e7d32;
    display: flex;
    align-items: center;
}

.user-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #4caf50;
}

.user-address {
    color: #757575;
    font-size: 13px;
}

.user-role {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

.deposit-info {
    background: #fff9c4;
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* =========================================
   3. MAIN CONTENT
   ========================================= */
.main-content {
    flex: 1;
    width: 100%;
    padding: 0;
}

.dashboard-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* =========================================
   4. FOOTER STYLES
   ========================================= */
footer {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

footer a {
    color: #a5d6a7;
    text-decoration: none;
    transition: color 0.3s ease;
}

    footer a:hover {
        color: white;
        text-decoration: underline;
    }

.version-info {
    font-size: 12px;
    color: #c8e6c9;
    margin-top: 10px;
}

.test-mode-banner {
    background: #ff5252;
    color: white;
    padding: 8px;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 4px;
    display: inline-block;
}

/* =========================================
   5. TAB STYLES
   ========================================= */
.tab-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 20px auto;
    max-width: 1400px;
    overflow: visible;
}

.tab-header {
    display: flex;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-bottom: 2px solid #4caf50;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4caf50 #e8f5e9;
}

    .tab-header::-webkit-scrollbar {
        height: 6px;
    }

    .tab-header::-webkit-scrollbar-track {
        background: #e8f5e9;
    }

    .tab-header::-webkit-scrollbar-thumb {
        background: #4caf50;
        border-radius: 3px;
    }

.tab-button {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 18px 24px;
    background: none;
    border: none;
    color: #2e7d32;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

    .tab-button:hover {
        background: rgba(76, 175, 80, 0.1);
    }

    .tab-button.active {
        color: #1b5e20;
        background: white;
        font-weight: 600;
    }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: #4caf50;
        }

.tab-content {
    padding: 30px;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-pane.active {
        display: block;
    }

/* =========================================
   6. CARD & SUMMARY STYLES
   ========================================= */
.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
    margin-bottom: 25px;
    border: 1px solid #e0f2e0;
}

    .summary-card h4 {
        color: #2e7d32;
        margin-bottom: 20px;
        font-weight: 600;
    }

.summary-card-title {
    color: #2e7d32;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.summary-card h4 svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    fill: #4caf50;
}

.summary-card p {
    color: #757575;
    margin-bottom: 20px;
}

.amount-description {
    color: #757575;
    margin-bottom: 20px;
}

.summary-card .payment-note {
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 20px;
    line-height: 1.5;
}

.summary-card .terms-link {
    text-align: center;
    margin-top: 15px;
}

    .summary-card .terms-link a {
        color: #4caf50;
        text-decoration: none;
        font-size: 14px;
    }

        .summary-card .terms-link a:hover {
            text-decoration: underline;
        }

.direct-debit-notice {
    background: #fff9c4;
    border-left: 4px solid #fbc02d;
    padding: 12px;
    margin-top: 20px;
    border-radius: 4px;
}

    .direct-debit-notice strong {
        color: #f57c00;
    }

.direct-debit-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.direct-debit-notice svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    fill: #4caf50;
}

.amount-display {
    font-size: 32px;
    font-weight: 700;
    color: #2e7d32;
    margin: 15px 0;
}

    .amount-display.credit {
        color: #00897b;
    }

.credit-text {
    color: #00897b;
    font-weight: 500;
}

/* =========================================
   7. BUTTON STYLES
   ========================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        color: white;
        text-decoration: none;
    }

.btn-secondary-custom {
    background: white;
    color: #4caf50;
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid #4caf50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-secondary-custom:hover {
        background: #4caf50;
        color: white;
        text-decoration: none;
    }

.pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

    .pdf-button:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }

    .pdf-button svg {
        width: 20px;
        height: 20px;
    }

/* =========================================
   8. ADDRESS LIST STYLES
   ========================================= */
.address-list {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.address-list-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    border-bottom: 2px solid #a5d6a7;
}

.address-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #424242;
}

    .address-item:hover {
        background: #f1f8e9;
        padding-left: 25px;
        color: #2e7d32;
        text-decoration: none;
    }

/* =========================================
   9. INVOICE TABLE STYLES
   ========================================= */
.invoice-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

    .invoice-table-wrapper.desktop-only,
    .usage-table-wrapper.desktop-only {
        display: block;
    }

.invoice-cards.mobile-only,
.usage-cards.mobile-only {
    display: none;
}

.invoice-table,
.usage-table {
    width: 100%;
    min-width: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .invoice-table thead,
    .usage-table thead {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    }

    .invoice-table th,
    .usage-table th {
        padding: 18px 15px;
        text-align: left;
        font-weight: 600;
        color: #2e7d32;
        font-size: 14px;
        white-space: nowrap;
        border-bottom: 2px solid #a5d6a7;
    }

    .invoice-table td,
    .usage-table td {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        vertical-align: middle;
    }

    .invoice-table tr:hover,
    .usage-table tr:hover {
        background: #fafafa;
    }

    .invoice-table tr.paid {
        background: #f5f5f5;
        opacity: 0.8;
    }

/* Mobile Invoice Cards */
.invoice-card,
.usage-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .invoice-card.even,
    .usage-card.even {
        background: white;
    }

    .invoice-card.odd,
    .usage-card.odd {
        background: #f8f8f8;
    }

    .invoice-card.paid {
        opacity: 0.85;
    }

.invoice-card-header,
.usage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-bottom: 2px solid #e0f2e0;
}

.invoice-card-body,
.usage-card-body {
    padding: 15px;
}

.invoice-detail,
.usage-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .invoice-detail:last-child,
    .usage-detail:last-child {
        border-bottom: none;
    }

    .invoice-detail.total,
    .usage-detail.highlight {
        margin-top: 10px;
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
        border-bottom: none;
        font-weight: 700;
    }

    .invoice-detail .label,
    .usage-detail .label {
        color: #757575;
        font-size: 14px;
        font-weight: 500;
    }

    .invoice-detail .value,
    .usage-detail .value {
        color: #424242;
        font-size: 14px;
        text-align: right;
    }

        .invoice-detail .value.credit {
            color: #00897b;
            font-weight: 600;
        }

        .usage-detail .value.increase {
            color: #f57c00;
            font-weight: 600;
        }

        .usage-detail .value.decrease {
            color: #00897b;
            font-weight: 600;
        }

.pdf-button-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

    .pdf-button-mobile:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }

    .pdf-button-mobile svg {
        width: 22px;
        height: 22px;
        fill: white;
    }

/* Usage specific styles */
.usage-period {
    font-size: 16px;
    font-weight: 600;
    color: #2e7d32;
}

.usage-year-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #1b5e20;
}

.usage-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

/* Usage Period Selector */
.usage-controls {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.period-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.period-selector-label {
    font-weight: 600;
    color: #2e7d32;
    margin-right: 10px;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
    display: inline-block;
}

    .radio-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.radio-label {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.radio-option input[type="radio"]:hover + .radio-label {
    border-color: #81c784;
    background: #f1f8e9;
}

.radio-option input[type="radio"]:checked:hover + .radio-label {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

    .status-badge.paid {
        background: #e0e0e0;
        color: #616161;
    }

    .status-badge.unpaid {
        background: #fff3e0;
        color: #e65100;
    }

/* =========================================
   10. LOGIN PAGE STYLES
   ========================================= */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    .login-container::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        top: -200px;
        right: -200px;
    }

    .login-container::after {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(139, 195, 74, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -300px;
        left: -300px;
    }

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

    .logo-container img {
        max-height: 60px;
        width: auto;
        transition: transform 0.3s ease;
    }

        .logo-container img:hover {
            transform: scale(1.05);
        }

.login-title {
    text-align: center;
    color: #2e7d32;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

    .login-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #4caf50, #8bc34a);
        border-radius: 2px;
    }

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #616161;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

    .form-input:focus {
        outline: none;
        border-color: #4caf50;
        background: white;
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    }

    .form-input::placeholder {
        color: #bdbdbd;
    }

    .form-input.with-icon {
        padding-right: 45px;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.forgot-password {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

    .forgot-password a {
        color: #4caf50;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #2e7d32;
            text-decoration: underline;
        }

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #9e9e9e;
    pointer-events: none;
}

.support-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #757575;
}

    .support-link a {
        color: #4caf50;
        text-decoration: none;
    }

        .support-link a:hover {
            text-decoration: underline;
        }

/* =========================================
   11. EMPTY STATE STYLES
   ========================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9e9e9e;
}

    .empty-state svg {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
        opacity: 0.3;
    }

    .empty-state h3 {
        color: #757575;
        margin-bottom: 10px;
    }

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #757575;
}

    .loading-spinner p {
        margin-top: 15px;
        font-size: 14px;
    }

/* =========================================
   12. UTILITY CLASSES
   ========================================= */
.text-success {
    color: #4caf50;
}

.text-danger {
    color: #f44336;
}

.text-warning {
    color: #ff9800;
}

.text-info {
    color: #2196f3;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-danger {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: shake 0.5s ease;
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* =========================================
   14. RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    .header-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        margin-bottom: 15px;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .user-info-details {
        margin-bottom: 10px;
    }

    .header-actions {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 10px;
        margin-top: 10px;
    }

    .header-container {
        padding: 10px;
    }

    /* Tabs - Vertical stack on mobile */
    .tab-header {
        flex-direction: column;
        overflow-x: visible;
        background: white;
        border-bottom: none;
    }

    .tab-button {
        flex: 1 1 auto;
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        font-size: 15px;
        border-bottom: 1px solid #e0f2e0;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

        .tab-button:last-child {
            border-bottom: none;
        }

        .tab-button:hover {
            background: #f1f8e9;
            border-left-color: #81c784;
        }

        .tab-button.active {
            background: linear-gradient(90deg, #f1f8e9 0%, #ffffff 100%);
            border-left-color: #4caf50;
            font-weight: 600;
            color: #1b5e20;
        }

            .tab-button.active::after {
                display: none;
            }

    .tab-content {
        padding: 20px 15px;
        border-top: 2px solid #4caf50;
    }

    /* Invoice Table - Switch to card view */
    .invoice-table-wrapper.desktop-only,
    .usage-table-wrapper.desktop-only {
        display: none;
    }

    .invoice-cards.mobile-only,
    .usage-cards.mobile-only {
        display: block;
    }

    /* Cards & Display */
    .amount-display {
        font-size: 24px;
    }

    .summary-card {
        padding: 20px;
    }

    .btn-primary-custom {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Usage Controls Responsive */
    .usage-controls {
        padding: 15px;
    }

    .period-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .period-selector-label {
        margin-bottom: 5px;
    }

    .radio-group {
        width: 100%;
    }

    .radio-label {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Header */
    .logo-section img {
        height: 40px;
    }

    .user-info {
        font-size: 12px;
    }

    /* Footer */
    footer {
        font-size: 12px;
        padding: 15px 10px;
    }

    /* Tabs */
    .tab-container {
        border-radius: 0;
        margin: 0;
    }

    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }

    .tab-content {
        padding: 15px;
    }

    /* Login */
    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-login {
        font-size: 15px;
        padding: 12px;
    }
}

/* =========================================
   15. PRINT STYLES
   ========================================= */
@media print {
    .header-main,
    footer,
    .tab-header,
    .btn-primary-custom,
    .btn-secondary-custom,
    .pdf-button {
        display: none !important;
    }

    .tab-pane {
        display: block !important;
        page-break-after: always;
    }

    body {
        background: white;
    }

    .tab-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* =========================================
   USAGE CHART STYLES
   ========================================= */
.usage-chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.15);
    margin-bottom: 25px;
    border: 1px solid #e0f2e0;
}

.usage-chart-header {
    color: #2e7d32;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

    .usage-chart-header svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        fill: #4caf50;
    }

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: #9e9e9e;
    font-size: 14px;
    text-align: center;
}

.chart-period-label {
    font-size: 12px;
    color: #757575;
    text-align: center;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .usage-chart-card {
        margin-bottom: 20px;
        padding: 20px;
    }

    .chart-container {
        height: 200px;
    }
}

/* =========================================
   PASSWORD MANAGEMENT SCREENS
   ========================================= */

/* Password Card Container */
.password-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

    .password-card.wider {
        max-width: 480px;
    }

/* Password Card Title */
.password-title {
    text-align: center;
    color: #2e7d32;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

    .password-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #4caf50, #8bc34a);
        border-radius: 2px;
    }

/* Password Instructions */
.password-instructions {
    text-align: center;
    color: #757575;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

    .password-instructions.warning {
        color: #f57c00;
        background: #fff9c4;
        padding: 12px;
        border-radius: 8px;
        border-left: 3px solid #fbc02d;
        text-align: left;
        font-size: 13px;
    }

    .password-instructions.success {
        color: #2e7d32;
        background: #e8f5e9;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

/* Form Table Styles */
.password-form-table {
    width: 100%;
    margin-bottom: 20px;
}

    .password-form-table td {
        padding: 8px 0;
        vertical-align: middle;
    }

        .password-form-table td:first-child {
            text-align: left;
            color: #616161;
            font-size: 14px;
            font-weight: 500;
            width: 35%;
            padding-right: 15px;
        }

/* Password Form Inputs */
.password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

    .password-input:focus {
        outline: none;
        border-color: #4caf50;
        background: white;
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    }

    .password-input::placeholder {
        color: #bdbdbd;
    }

/* Form Group for single input forms */
.password-form-group {
    margin-bottom: 20px;
}

    .password-form-group input {
        width: 100%;
    }

/* Button Container */
.password-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

    .password-button-container.center {
        justify-content: center;
    }

/* Password Buttons */
.btn-password-primary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

    .btn-password-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        color: white;
        text-decoration: none;
    }

    .btn-password-primary:active {
        transform: translateY(0);
    }

.btn-password-secondary {
    flex: 1;
    padding: 14px 20px;
    background: white;
    color: #4caf50;
    border: 2px solid #4caf50;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

    .btn-password-secondary:hover {
        background: #f1f8e9;
        color: #2e7d32;
        text-decoration: none;
    }

/* Support Link */
.password-support-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #757575;
}

    .password-support-link a {
        color: #4caf50;
        text-decoration: none;
    }

        .password-support-link a:hover {
            text-decoration: underline;
        }

/* Validation Messages */
.password-validation {
    margin-bottom: 15px;
}

    .password-validation .text-danger {
        color: #f44336;
        font-size: 13px;
        display: block;
        margin-top: 5px;
        animation: shake 0.5s ease;
    }

/* Responsive Design */
@media (max-width: 480px) {
    .password-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

        .password-card.wider {
            max-width: 100%;
        }

    .password-title {
        font-size: 20px;
    }

    .password-form-table td:first-child {
        display: block;
        width: 100%;
        padding-bottom: 5px;
    }

    .password-form-table td {
        display: block;
        width: 100%;
    }

    .password-button-container {
        flex-direction: column;
    }

    .btn-password-primary,
    .btn-password-secondary {
        width: 100%;
    }
}

/* Transaction/Payment Table Styles */
.transaction-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.transaction-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .transaction-table thead {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    }

    .transaction-table th {
        padding: 18px 15px;
        text-align: left;
        font-weight: 600;
        color: #2e7d32;
        font-size: 14px;
        white-space: nowrap;
        border-bottom: 2px solid #a5d6a7;
    }

    .transaction-table td {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        vertical-align: middle;
    }

    .transaction-table tr:hover {
        background: #fafafa;
    }

/* Payment Summary Card */
.payment-summary-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    height: 100%;
    min-height: 120px;
}

.payment-summary-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 10px;
}

.payment-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: #2e7d32;
}

.payment-summary-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1b5e20;
}

/* Transaction Cards for Mobile */
.transaction-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .transaction-card.even {
        background: white;
    }

    .transaction-card.odd {
        background: #f8f8f8;
    }

.transaction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-bottom: 2px solid #e0f2e0;
}

.transaction-date {
    font-weight: 600;
    color: #2e7d32;
}

.transaction-type-badge {
    background: #81c784;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.transaction-card-body {
    padding: 15px;
}

.transaction-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

    .transaction-detail .label {
        color: #757575;
        font-size: 14px;
    }

    .transaction-detail .value {
        font-size: 14px;
        font-weight: 500;
    }

        .transaction-detail .value.credit {
            color: #2e7d32;
            font-weight: 600;
        }

    .transaction-detail.highlight {
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }

/* Responsive */
@media (max-width: 768px) {
    .transaction-table-wrapper.desktop-only {
        display: none;
    }

    .transaction-cards.mobile-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .transaction-cards.mobile-only {
        display: none;
    }
}
