/* ===== ELECTRICITY COST CALCULATOR - CalcTechLab ===== */

.elec-app {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== CARDS ===== */
.elec-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}
[data-bs-theme="dark"] .elec-card {
    background: #1e293b;
    border-color: #334155;
}

.elec-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
[data-bs-theme="dark"] .elec-card-title {
    color: #f1f5f9;
}

.elec-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.elec-sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

/* ===== TABS ===== */
.elec-tabs-card {
    padding: 0.75rem;
}

.elec-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.elec-tabs::-webkit-scrollbar { display: none; }

.elec-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.elec-tab:hover {
    background: #f1f5f9;
    color: #3b82f6;
}
[data-bs-theme="dark"] .elec-tab:hover {
    background: #334155;
}
.elec-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}
.elec-tab i {
    font-size: 0.85rem;
}

.elec-tab-content {
    display: none;
}
.elec-tab-content.active {
    display: block;
}

/* ===== FORM FIELDS ===== */
.elec-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.elec-field {
    min-width: 0;
}

.elec-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.elec-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}
[data-bs-theme="dark"] .elec-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.elec-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: white;
}
[data-bs-theme="dark"] .elec-input:focus {
    background: #1e293b;
}

.elec-input-rate {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.elec-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .elec-select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.elec-select-sm {
    width: 70px;
    flex-shrink: 0;
}

/* ===== RATE INPUT ===== */
.elec-rate-layout {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.elec-rate-layout .elec-field {
    flex: 1;
    min-width: 150px;
}

.elec-rate-input-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.elec-rate-unit {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

/* ===== TOGGLE ===== */
.elec-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.elec-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.elec-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.elec-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

.elec-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.elec-toggle input:checked + .elec-toggle-slider {
    background: #3b82f6;
}

.elec-toggle input:checked + .elec-toggle-slider::before {
    transform: translateX(20px);
}

.elec-toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* ===== TOU SECTION ===== */
.elec-tou-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .elec-tou-section {
    border-color: #334155;
}

.elec-tou-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ===== CALCULATE BUTTON ===== */
.elec-calc-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}
.elec-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.elec-calc-btn-sm {
    padding: 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* ===== RESULTS ===== */
.elec-result-area {
    margin-top: 0.5rem;
}

.elec-primary-result {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.elec-primary-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.elec-primary-data {
    display: flex;
    flex-direction: column;
}

.elec-primary-number {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    line-height: 1.1;
}

.elec-primary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== BREAKDOWN GRID ===== */
.elec-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.elec-breakdown-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .elec-breakdown-item {
    background: #0f172a;
    border-color: #334155;
}

.elec-breakdown-item i {
    font-size: 1rem;
    color: #f59e0b;
    display: block;
    margin-bottom: 0.35rem;
}

.elec-breakdown-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    margin-bottom: 0.15rem;
}
[data-bs-theme="dark"] .elec-breakdown-value {
    color: #f1f5f9;
}

.elec-breakdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ===== STATS GRID ===== */
.elec-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.elec-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: #fffbeb;
    border-radius: 10px;
    border: 1px solid #fde68a;
}
[data-bs-theme="dark"] .elec-stat-item {
    background: #451a03;
    border-color: #92400e;
}

.elec-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
[data-bs-theme="dark"] .elec-stat-label {
    color: #fbbf24;
}

.elec-stat-value {
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #92400e;
}
[data-bs-theme="dark"] .elec-stat-value {
    color: #fde68a;
}

/* ===== CHART ===== */
.elec-chart-wrap {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .elec-chart-wrap {
    background: #0f172a;
    border-color: #334155;
}

/* ===== ACTIONS ===== */
.elec-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.elec-action-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .elec-action-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.elec-action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ===== MULTI-APPLIANCE TABLE ===== */
.elec-multi-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.elec-multi-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.elec-multi-table th {
    padding: 0.6rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}
[data-bs-theme="dark"] .elec-multi-table th {
    border-color: #334155;
}

.elec-multi-table td {
    padding: 0.4rem 0.35rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
[data-bs-theme="dark"] .elec-multi-table td {
    border-color: #1e293b;
}

.elec-multi-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    transition: all 0.2s;
    box-sizing: border-box;
}
[data-bs-theme="dark"] .elec-multi-input {
    color: #f1f5f9;
}
.elec-multi-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}
[data-bs-theme="dark"] .elec-multi-input:focus {
    background: #0f172a;
}

.elec-multi-input-num {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    width: 70px;
}

.elec-multi-cost {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: #f59e0b;
    white-space: nowrap;
}

.elec-multi-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}
.elec-multi-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.elec-multi-add-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.elec-select-add {
    flex: 1;
}

.elec-add-btn {
    padding: 0.6rem 1.25rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
[data-bs-theme="dark"] .elec-add-btn {
    border-color: #475569;
    color: #94a3b8;
}
.elec-add-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ===== MULTI TOTALS ===== */
.elec-multi-totals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.elec-multi-total-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .elec-multi-total-item {
    background: #0f172a;
    border-color: #334155;
}

.elec-multi-total-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
}

.elec-multi-total-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
    margin-bottom: 0.15rem;
}
[data-bs-theme="dark"] .elec-multi-total-value {
    color: #f1f5f9;
}

.elec-multi-total-primary .elec-multi-total-value {
    color: white;
    font-size: 1.35rem;
}

.elec-multi-total-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.elec-multi-total-primary .elec-multi-total-label {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== ROOM APPLIANCES ===== */
.elec-room-appliances {
    margin-bottom: 1rem;
}

.elec-room-appliance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .elec-room-appliance-item {
    border-color: #334155;
}

.elec-room-appliance-check {
    width: 20px;
    height: 20px;
    accent-color: #f59e0b;
    cursor: pointer;
    flex-shrink: 0;
}

.elec-room-appliance-icon {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.elec-room-appliance-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
}
[data-bs-theme="dark"] .elec-room-appliance-name {
    color: #f1f5f9;
}

.elec-room-appliance-watts {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
    flex-shrink: 0;
}

.elec-room-appliance-hours {
    width: 55px;
    padding: 0.3rem 0.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
    background: #f8fafc;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .elec-room-appliance-hours {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

/* ===== BILL BREAKDOWN ===== */
.elec-bill-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.elec-bill-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
[data-bs-theme="dark"] .elec-bill-category {
    background: #0f172a;
    border-color: #334155;
}

.elec-bill-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.elec-bill-cat-info {
    flex: 1;
    min-width: 0;
}

.elec-bill-cat-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}
[data-bs-theme="dark"] .elec-bill-cat-name {
    color: #f1f5f9;
}

.elec-bill-cat-kwh {
    font-size: 0.6rem;
    color: #94a3b8;
}

.elec-bill-cat-cost {
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #f59e0b;
    flex-shrink: 0;
}

/* ===== QUICK STATS ===== */
.elec-quick-stats-card {
    border-top: 4px solid #f59e0b;
}

.elec-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.elec-quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}
[data-bs-theme="dark"] .elec-quick-stat {
    border-color: #1e293b;
}

.elec-quick-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.elec-quick-stat-value {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #1e293b;
}
[data-bs-theme="dark"] .elec-quick-stat-value {
    color: #f1f5f9;
}

/* ===== APPLIANCE LIST ===== */
.elec-appliance-search-wrap {
    margin-bottom: 0.75rem;
}

.elec-appliance-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.elec-appliance-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.8rem;
}
.elec-appliance-list-item:hover {
    background: #fffbeb;
}
[data-bs-theme="dark"] .elec-appliance-list-item:hover {
    background: #451a03;
}

.elec-appliance-list-name {
    font-weight: 600;
    color: #1e293b;
}
[data-bs-theme="dark"] .elec-appliance-list-name {
    color: #f1f5f9;
}

.elec-appliance-list-watts {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #f59e0b;
}

/* ===== SOLAR ===== */
.elec-solar-results {
    margin-top: 0.75rem;
}

.elec-solar-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}
[data-bs-theme="dark"] .elec-solar-result-item {
    border-color: #1e293b;
}

.elec-solar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.elec-solar-value {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #22c55e;
}

/* ===== HISTORY ===== */
.elec-history-empty {
    text-align: center;
    padding: 1.25rem;
    color: #94a3b8;
}
.elec-history-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}
.elec-history-empty p {
    margin: 0;
    font-size: 0.8rem;
}

.elec-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.elec-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
[data-bs-theme="dark"] .elec-history-item {
    background: #0f172a;
}
.elec-history-item:hover {
    background: #fffbeb;
}

.elec-history-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}
[data-bs-theme="dark"] .elec-history-item-name {
    color: #f1f5f9;
}

.elec-history-item-cost {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #f59e0b;
}

.elec-clear-history-btn {
    width: 100%;
    padding: 0.4rem;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 8px;
}
.elec-clear-history-btn:hover {
    background: #fef2f2;
}

/* ===== TIPS ===== */
.elec-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.elec-tip-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .elec-tip-item {
    background: #0f172a;
    border-color: #334155;
}

.elec-tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tip-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.elec-tip-content {
    flex: 1;
    min-width: 0;
}

.elec-tip-content strong {
    display: block;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
}
[data-bs-theme="dark"] .elec-tip-content strong {
    color: #f1f5f9;
}

.elec-tip-content span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

.elec-tip-saving {
    font-weight: 700 !important;
    color: #22c55e !important;
    margin-top: 0.25rem;
    font-size: 0.7rem !important;
}

/* ===== SHARE ===== */
.elec-share-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.elec-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.elec-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== FAQ ===== */
.elec-faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.elec-faq-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
[data-bs-theme="dark"] .elec-faq-item {
    background: #0f172a;
    border-color: #334155;
}

.elec-faq-item h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.35rem;
}
[data-bs-theme="dark"] .elec-faq-item h3 {
    color: #f1f5f9;
}

.elec-faq-item p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .elec-card {
        padding: 1.25rem;
    }
    .elec-fields-grid {
        grid-template-columns: 1fr;
    }
    .elec-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .elec-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .elec-multi-totals {
        grid-template-columns: repeat(2, 1fr);
    }
    .elec-tou-grid {
        grid-template-columns: 1fr;
    }
    .elec-bill-breakdown {
        grid-template-columns: 1fr;
    }
    .elec-tips-grid {
        grid-template-columns: 1fr;
    }
    .elec-faq-list {
        grid-template-columns: 1fr;
    }
    .elec-rate-layout {
        flex-direction: column;
    }
    .elec-primary-number {
        font-size: 1.5rem;
    }
    .elec-multi-add-row {
        flex-direction: column;
    }
}

/* ===== CHART FIX ===== */
.elec-chart-wrap {
    position: relative;
    min-height: 250px;
}

.elec-chart-wrap canvas {
    width: 100% !important;
    max-width: 100%;
}
/* ===== FIXED HEIGHT CHART CONTAINERS ===== */
.elec-chart-fixed {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ===== PDF EXPORT BUTTON ===== */
.elec-action-btn-pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
}
.elec-action-btn-pdf:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
