/**
 * EV Charging Cost Calculator Styles (English - US)
 * Electric Vehicle Charging Cost Calculator (2-Column Layout)
 *
 * @package Zipper
 */

/* ===== 2-Column Layout (Desktop) ===== */
.evc-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.evc-input-col {
    position: sticky;
    top: 20px;
}

.evc-result-col {
    min-width: 0;
}

/* Input Section */
.evc-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    margin-bottom: 12px;
}

.evc-input-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-input-title i {
    color: #d4af37;
}

.evc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evc-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.evc-input-group input,
.evc-input-group select {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.evc-input-group input:focus,
.evc-input-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.evc-input-group input::placeholder {
    color: #a09a94;
}

.evc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Input Unit Display */
.evc-input-with-unit {
    position: relative;
}

.evc-input-with-unit input {
    padding-right: 50px;
}

.evc-input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #a09a94;
    pointer-events: none;
}

/* Calculation Mode Tabs */
.evc-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.evc-mode-tab {
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.evc-mode-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-mode-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.evc-mode-tab i {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

/* Mode-specific Input Areas */
.evc-mode-content {
    display: none;
}

.evc-mode-content.active {
    display: block;
}

/* Charging Network Selection */
.evc-network-select {
    margin-bottom: 8px;
}

.evc-network-info {
    font-size: 11px;
    color: #5f5a56;
    background: rgba(212, 175, 55, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

/* TOU Toggle */
.evc-tou-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 6px;
    margin-bottom: 8px;
}

.evc-tou-toggle label {
    font-size: 12px;
    color: #5f5a56;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-tou-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d4af37;
}

.evc-tou-info {
    font-size: 10px;
    color: #3498db;
    margin-left: auto;
}

/* Rate Guide */
.evc-rate-guide {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-rate-guide-title {
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.evc-rate-guide-title i {
    color: #d4af37;
}

.evc-rate-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed #e8e4dc;
}

.evc-rate-item:last-child {
    border-bottom: none;
}

.evc-rate-item .label {
    color: #5f5a56;
}

.evc-rate-item .value {
    font-weight: 600;
    color: #2d2a26;
}

/* Waiting State */
.evc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
    background: #faf9f7;
    border: 1px dashed #e8e4dc;
    border-radius: 10px;
}

.evc-waiting i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.evc-waiting p {
    font-size: 14px;
}

/* ===== Result Area ===== */

/* Main Result Card */
.evc-main-result {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.evc-main-value {
    font-size: 44px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 6px;
}

.evc-main-value .unit {
    font-size: 20px;
    font-weight: 500;
    color: #b8860b;
}

.evc-main-label {
    font-size: 14px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.evc-main-sub {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.evc-main-sub-item {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.evc-main-sub-item .label {
    color: #5f5a56;
}

.evc-main-sub-item .value {
    font-weight: 600;
    color: #2d2a26;
    margin-left: 4px;
}

/* Result Card Grid */
.evc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.evc-result-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.evc-result-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.12);
}

.evc-result-card i {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 6px;
    display: block;
}

.evc-result-card .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-result-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-result-card .value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
}

/* Monthly/Yearly Prediction Section */
.evc-prediction-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.03) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.evc-prediction-title {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-prediction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.evc-prediction-item {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
}

.evc-prediction-item .label {
    font-size: 11px;
    color: #5f5a56;
    margin-bottom: 4px;
}

.evc-prediction-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #3498db;
}

.evc-prediction-item .value .unit {
    font-size: 11px;
    font-weight: 500;
}

/* Level Comparison Section */
.evc-comparison-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.evc-comparison-title {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evc-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.evc-comparison-item {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.evc-comparison-item .level-label {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
}

.evc-comparison-item .time-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.evc-comparison-item .cost-value {
    font-size: 12px;
    color: #5f5a56;
    margin-top: 2px;
}

/* History Section */
.evc-history-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.evc-history-title {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evc-history-title i {
    color: #d4af37;
    margin-right: 4px;
}

.evc-history-clear {
    font-size: 11px;
    color: #a09a94;
    cursor: pointer;
    transition: color 0.2s;
}

.evc-history-clear:hover {
    color: #e74c3c;
}

.evc-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.evc-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #faf9f7;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.evc-history-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.evc-history-item .info {
    color: #5f5a56;
}

.evc-history-item .cost {
    font-weight: 600;
    color: #d4af37;
}

.evc-history-empty {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #a09a94;
}

/* Action Buttons */
.evc-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.evc-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.evc-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.evc-btn i {
    font-size: 14px;
}

.evc-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.evc-btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
}

/* Disclaimer */
.evc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 12px;
}

.evc-disclaimer i {
    color: #6c757d;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.evc-disclaimer-text {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.evc-disclaimer-text strong {
    color: #2d2a26;
}

/* Hidden */
.evc-hidden {
    display: none !important;
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 900px) {
    .evc-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    .evc-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .evc-input-col {
        position: static;
    }

    .evc-input-section {
        padding: 14px;
    }

    .evc-mode-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .evc-main-result {
        padding: 14px 16px;
    }

    .evc-main-value {
        font-size: 38px;
    }

    .evc-result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .evc-prediction-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .evc-actions {
        flex-wrap: wrap;
    }

    .evc-btn {
        min-width: calc(50% - 4px);
    }
}

/* ===== Responsive - Small Mobile ===== */
@media (max-width: 480px) {
    .evc-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .evc-mode-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .evc-mode-tab {
        font-size: 9px;
        padding: 6px 4px;
    }

    .evc-main-value {
        font-size: 32px;
    }

    .evc-main-value .unit {
        font-size: 16px;
    }

    .evc-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .evc-result-card {
        padding: 10px;
    }

    .evc-result-card .value {
        font-size: 16px;
    }

    .evc-prediction-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .evc-prediction-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .evc-comparison-grid {
        grid-template-columns: 1fr;
    }

    .evc-main-sub {
        flex-direction: column;
        gap: 6px;
    }

    .evc-main-sub-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}
