/* Energy Provider Modal - Dedicated CSS */
/* This file contains all styles specific to the energy provider modal */

/* Modal Width Override */
.modal-wide {
    max-width: 950px;
}

/* Current Provider Card */
.current-provider-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #dee2e6;
}

/* Provider Selection Options */
.provider-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.provider-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.provider-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.provider-option img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

/* Rate Information Card */
.rate-info-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.rate-label {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.rate-value {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
}

.rate-value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.rate-input {
    background: transparent !important;
    border: 1px solid #dee2e6 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #007bff !important;
    padding: 0.375rem 0.5rem !important;
}

/* Contract Power Selection */
.contract-power-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.contract-power-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.contract-power-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.contract-power-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.contract-power-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: normal;
    white-space: nowrap;
    line-height: 1;
    margin-top: 0.1rem;
}

/* Hours Information Card */
.hours-info-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.hours-label {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.hours-value {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
}

/* Schedule Selection Card */
.schedule-selection-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
}

.schedule-selection-card .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    display: flex;
}

.schedule-selection-card .btn-group .btn {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-selection-card .btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.schedule-selection-card .btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.schedule-selection-card .btn-check:checked + .btn {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.schedule-selection-card .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    font-weight: 500;
}

.schedule-selection-card .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Responsive Schedule Buttons */
@media (max-width: 1200px) {
    .schedule-selection-card .btn-group .btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }
}

@media (max-width: 992px) {
    .schedule-selection-card .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
}

@media (max-width: 768px) {
    .schedule-selection-card .btn-group .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.2rem;
    }
}

@media (max-width: 600px) {
    .schedule-selection-card .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.15rem;
        min-width: 50px;
    }
}

/* Energy Provider Modal Specific Styles */
.energy-provider-modal .form-control.changed {
    border-color: #ffc107;
    background-color: #fff8e1;
}

.energy-provider-modal .form-control.changed:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.energy-provider-modal .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.energy-provider-modal .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Plan Picker Modal */
.epp-providers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 992px) {
    .epp-providers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .epp-providers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.epp-provider-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
}
.epp-provider-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 10px rgba(13,110,253,0.18);
    transform: translateY(-1px);
}
.epp-provider-card.selected {
    border-color: #0d6efd;
    background: rgba(13,110,253,0.08);
}
.epp-provider-card img {
    max-width: 68px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.epp-plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 6px;
}
.epp-plan-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 12px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.epp-plan-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.epp-plan-title {
    font-weight: 700;
}
.epp-plan-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

.energy-provider-modal .form-label {
    font-weight: 500;
    color: #495057;
}

.energy-provider-modal .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.energy-provider-modal .form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.energy-provider-modal .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.energy-provider-modal .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.energy-provider-modal .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.energy-provider-modal .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Rate Change Highlighting */
.rate-changed-highlight {
    background-color: #fff3cd !important;
    transition: background 0.2s;
}

.rate-changed-field {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    transition: all 0.3s ease;
}

.rate-changed-field:focus {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

.contract-power-modified {
    color: #856404 !important;
    font-weight: 600 !important;
}

/* Hover Effects for Interactive Elements */
.stat-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}