.lesco-checker-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lesco-checker-form-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesco-checker-form-wrapper h2 {
    color: #003d6b;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.lesco-checker-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #003d6b;
    border-bottom-color: #003d6b;
}

.tab-btn:hover {
    color: #003d6b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-hint {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
    margin-top: -5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #003d6b;
    box-shadow: 0 0 0 3px rgba(0, 61, 107, 0.1);
}

.instruction {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.check-btn {
    width: 100%;
    padding: 14px;
    background: #003d6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.check-btn:hover {
    background: #002a4f;
}

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

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003d6b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Bill Display */
.bill-display-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.bill-header {
    background: #003d6b;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bill-header h3 {
    margin: 0;
    font-size: 20px;
}

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

.action-btn {
    background: white;
    color: #003d6b;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #f0f0f0;
}

.bill-content {
    padding: 40px;
}

/* Bill Template Styles */
.bill-template {
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
}

.bill-header-section {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #003d6b;
}

.company-logo {
    font-size: 18px;
    font-weight: bold;
    color: #003d6b;
}

.company-info {
    text-align: center;
}

.company-info h2 {
    margin: 0;
    font-size: 16px;
    color: #003d6b;
}

.bill-month {
    text-align: right;
    font-size: 32px;
    font-weight: bold;
    color: #003d6b;
}

.consumer-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    border: 1px solid #eee;
    padding: 12px;
    background: #f9f9f9;
}

.detail-label {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

.charges-section {
    margin: 30px 0;
}

.charges-section h4 {
    background: #003d6b;
    color: white;
    padding: 12px;
    margin: 0 0 15px 0;
    font-size: 13px;
}

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

.charges-table th {
    background: #f0f0f0;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}

.charges-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.charges-table tr:hover {
    background: #f9f9f9;
}

.total-row {
    font-weight: bold;
    background: #f0f0f0;
}

.amount-right {
    text-align: right;
}

.grand-total {
    background: #003d6b;
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-radius: 4px;
}

.billing-history {
    margin-top: 30px;
}

.billing-history h4 {
    background: #003d6b;
    color: white;
    padding: 12px;
    margin: 0 0 15px 0;
    font-size: 13px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.history-table th {
    background: #f0f0f0;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.history-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* Error Message */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Print Styles */
@media print {
    .bill-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #333;
    }
    
    .bill-actions {
        display: none;
    }
    
    .lesco-checker-form-wrapper,
    .loading-spinner {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bill-header-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .consumer-detail {
        grid-template-columns: 1fr;
    }
    
    .bill-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bill-content {
        padding: 20px;
    }
    
    .lesco-checker-form-wrapper {
        padding: 20px;
    }
}