/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide Blazor error UI for better user experience */
#blazor-error-ui {
    display: none !important;
}

/* Header */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ambit-logo {
    height: 60px;
    width: auto;
}

.consultant-logo {
    height: 70px;
    width: auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #05080D;
        text-shadow: none;
 }

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #333;
    margin-bottom: 5px;
}





/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #F17920;
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #F17920 0%, #D96A18 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calculate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 121, 32, 0.4);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.results-section h2 {
    color: #333;
    margin-bottom: 10px;
}

.usage-info {
    color: #666;
    margin-bottom: 20px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table thead {
    background: linear-gradient(135deg, #F17920 0%, #D96A18 100%);
    color: white;
}

.table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr {
    transition: background-color 0.2s;
}

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

.best-plan-row {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745;
}

.best-plan-row:hover {
    background-color: #c3e6cb !important;
}

.total-column {
    font-size: 1.1rem;
    color: #333;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.savings-info {
    margin-top: 20px;
}

/* Admin Styles */
.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #D96A18;
}

.btn-outline-primary {
    background-color: white;
    color: #F17920;
    border: 2px solid #F17920;
}

.btn-outline-primary:hover {
    background-color: #F17920;
    color: white;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th, .table td {
        padding: 8px 5px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .admin-nav {
        flex-direction: column;
    }


    /* Mobile Responsive Styles */
    @media (max-width: 768px) {
        body {
            padding: 10px;
        }

        .container {
            padding: 0;
        }

        .header {
            padding: 15px 10px;
        }

            .header h1 {
                font-size: 1.5rem;
            }

        .logo-container {
            gap: 15px;
        }

        .ambit-logo {
            height: 40px;
        }

        .consultant-logo {
            height: 50px;
        }

        .disclaimer {
            font-size: 0.75rem;
        }

        .calculator-card {
            padding: 15px;
        }

        .input-section {
            margin-bottom: 20px;
        }

        /* Mobile-friendly table */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table {
            font-size: 0.75rem;
            min-width: 100%;
        }

            .table thead {
                display: none; /* Hide headers on mobile */
            }

            .table tbody tr {
                display: block;
                margin-bottom: 15px;
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                padding: 10px;
                background: white;
            }

                .table tbody tr.best-plan-row {
                    border: 2px solid #28a745;
                    background-color: #d4edda;
                }

            .table td {
                display: block;
                text-align: left;
                border: none;
                padding: 5px 0;
            }

                .table td:before {
                    content: attr(data-label);
                    font-weight: 600;
                    display: inline-block;
                    width: 120px;
                    color: #666;
                }

        .total-column {
            font-size: 1.1rem;
            color: #F17920;
            font-weight: bold;
            padding-top: 8px !important;
            border-top: 1px solid #e0e0e0;
            margin-top: 5px;
        }

        .badge {
            display: inline-block;
            margin-left: 5px;
        }

        .savings-info .alert {
            font-size: 0.85rem;
            padding: 10px;
        }
    }
}
