/* ========================================
   DESKTOP NÉZET FEJLESZTÉSEK
   Mobil funkciókat adaptáló CSS
   ======================================== */

/* ========== MODERN VEZÉRLŐ GOMBOK ========== */
.charging-control-btn {
    min-width: 200px;
    height: 56px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.charging-control-btn .btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.charging-control-btn .btn-label {
    white-space: nowrap;
}

.charging-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.charging-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.charging-control-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.charging-control-btn.start-btn {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.charging-control-btn.stop-btn {
    background: linear-gradient(135deg, #c62828, #e53935);
}

.charging-control-btn.message-btn {
    background: linear-gradient(135deg, #1976d2, #2196f3);
}

.charging-control-btn.btn-sent {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
    cursor: default;
}

.charging-control-btn.btn-preparing {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
}

.charging-control-btn.btn-preparing .btn-icon {
    animation: pulse 1s ease-in-out infinite;
}

.charging-control-btn.disabled-btn {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    cursor: not-allowed;
}

.charging-control-btn.ready-btn {
    background: linear-gradient(135deg, #00c853, #69f0ae);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.charging-control-btn.charging-btn {
    background: linear-gradient(135deg, #ff5722, #ff8a65);
}

.charging-control-btn.charging-btn .btn-icon {
    animation: flash 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* ========== VALÓS IDEJŰ STATISZTIKÁK ========== */
.charging-stats {
    display: flex;
    gap: 12px;
    justify-content: space-around;
    align-items: center;
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border: 2px solid #c8e6c9;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-align: center;
    padding: 10px;
}

.stat .label {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat .value {
    font-size: 18px;
    font-weight: 700;
    color: #1b5e20;
    font-family: 'Courier New', monospace;
}

/* ========== CONNECTOROK MODERN LAYOUT ========== */
.connector-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(24, 49, 54, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 20px;
}

.connector-item:hover {
    box-shadow: 0 8px 24px rgba(24, 49, 54, 0.12);
    transform: translateY(-2px);
}

.connector-item .connector-status {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.connector-item .connector-details {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.connector-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.connector-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

/* ========== AKTÍV TÖLTÉS BUBORÉK (DESKTOP) ========== */
.active-charging-bubble.desktop-bubble,
.message-notification-bubble.desktop-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    max-width: 350px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.active-charging-bubble.desktop-bubble:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.message-notification-bubble.desktop-bubble {
    bottom: 400px;
}

.bubble-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bubble-icon {
    font-size: 28px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-text {
    flex: 1;
    min-width: 0;
}

.bubble-title {
    font-weight: 600;
    color: #004d40;
    margin-bottom: 4px;
    font-size: 15px;
}

.bubble-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.bubble-time {
    font-size: 11px;
    color: #999;
}

.bubble-metrics {
    font-size: 12px;
    color: #333;
    margin-top: 6px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 6px;
    line-height: 1.4;
}

.bubble-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bubble-close:hover {
    color: #666;
}

/* ========== RESZPONZÍV MOBILE REJTES ========== */
@media (max-width: 768px) {

    .active-charging-bubble.desktop-bubble,
    .message-notification-bubble.desktop-bubble {
        display: none !important;
    }

    .charging-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat {
        min-width: 70px;
        padding: 6px;
    }

    .charging-control-btn {
        min-width: 150px;
        height: 48px;
        font-size: 14px;
    }

    .charging-control-btn .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* ========== STATUS SZÍN STÍLUSOK ========== */
.status-available {
    background: #d4edda !important;
    color: #155724 !important;
}

.status-occupied {
    background: #f8d7da !important;
    color: #721c24 !important;
}

.status-offline {
    background: #e2e3e5 !important;
    color: #383d41 !important;
}

.status-preparing {
    background: #fff3cd !important;
    color: #856404 !important;
}

.status-unavailable {
    background: #f0f0f0 !important;
    color: #666 !important;
}

/* Modern status szín variánsok */
.connector-item .status-available {
    background: #e8f5e8 !important;
    color: #28a745 !important;
}

.connector-item .status-occupied {
    background: #ffebee !important;
    color: #dc3545 !important;
}

.connector-item .status-offline {
    background: #f4f4f4 !important;
    color: #6c757d !important;
}

.connector-item .status-preparing {
    background: #fff8e1 !important;
    color: #ff9800 !important;
}

/* ========== CONNECTOR TARTÁLY ========== */
#connectorsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
}

/* ========== DESKTOP SPECIFIKUS FEJLESZTÉSEK ========== */

/* Connector kártya grid elrendezés nagyobb kijelzőn */
@media (min-width: 1200px) {
    #connectorsContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .connector-global-alert {
        grid-column: 1 / -1;
    }
}

/* Kábel állapot kijelzés */
.cable-status {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #e9ecef;
}

/* Töltési statisztikák desktop verzió */
@media (min-width: 768px) {
    .charging-stats {
        padding: 24px 32px;
    }

    .stat {
        min-width: 100px;
        padding: 12px 16px;
    }

    .stat .value {
        font-size: 22px;
    }

    .stat .label {
        font-size: 13px;
    }
}

/* Status preparing stílus kiegészítés */
.connector-item .status-preparing {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    border: 1px solid #bbdefb;
}

/* Connector vezérlő gombok flexbox desktop */
@media (min-width: 768px) {
    .connector-controls {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .charging-control-btn {
        min-width: 220px;
    }
}

/* Global alert stílusok finomítása */
.connector-global-alert {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.connector-alert-offline {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffd54f;
    color: #8a6d3b;
}

.connector-alert-partial {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    color: #0b5394;
}

/* Charger kártya modernizálás */
.charger-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(24, 49, 54, 0.1);
}

/* Térkép és csatlakozó szekció */
.map-and-connectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .map-and-connectors {
        grid-template-columns: 1fr;
    }
}

.connectors-section {
    max-height: none;
    overflow-y: visible;
}

.connectors-section h3 {
    color: #004d40;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0f2f1;
}

/* Charger specs finomítás */
.charger-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .charger-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.spec:hover {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.spec .label {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.spec .value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}