/* ========================================
   MODERN UI DESIGN SYSTEM
   Egységes desktop stílusok - PlugZone
   Forrás: clean_charger_details.php UI
   ======================================== */

/* === CSS VÁLTOZÓK === */
:root {
    --primary: #004d40;
    --primary-light: #00796b;
    --primary-dark: #00352b;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #2196f3;
    --gray: #6c757d;
    --light-bg: #f8f9fa;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --card-radius: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === ALAPOK === */
body.modern-ui {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    background-attachment: fixed;
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    color: #333;
}

/* === NAVIGÁCIÓ - Modern Glass Effect === */
.modern-header-nav {
    background: linear-gradient(135deg, #183136 0%, #0d1f22 100%);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modern-nav-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

.modern-nav-links,
.modern-nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.modern-nav-links a,
.modern-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.modern-nav-links a:hover,
.modern-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.modern-nav-links a.active,
.modern-nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* === KONTÉNER === */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 100px);
}

.modern-container.wide {
    max-width: 1400px;
}

/* === OLDAL FEJLÉC === */
.modern-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.modern-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-page-title i {
    opacity: 0.8;
}

/* === VISSZA GOMB === */
.modern-back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.modern-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.4);
    color: white;
    text-decoration: none;
}

.modern-back-button i {
    transition: transform var(--transition-normal);
}

.modern-back-button:hover i {
    transform: translateX(-4px);
}

/* === BREADCRUMB === */
.modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.modern-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.modern-breadcrumb a:hover {
    text-decoration: underline;
}

.modern-breadcrumb i {
    font-size: 10px;
    color: #999;
}

/* === HERO SECTION === */
.modern-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--card-radius);
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.modern-hero-content {
    position: relative;
    z-index: 1;
}

.modern-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.modern-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

/* === STAT ITEMS === */
.modern-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.modern-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.modern-stat-label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === KÁRTYÁK === */
.modern-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.modern-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modern-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.modern-card-icon.power {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.modern-card-icon.status {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.modern-card-icon.price {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.modern-card-icon.type {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.modern-card-icon.user {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.modern-card-icon.balance {
    background: linear-gradient(135deg, #8bc34a, #689f38);
}

.modern-card-icon.history {
    background: linear-gradient(135deg, #607d8b, #455a64);
}

.modern-card-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.modern-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modern-card-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* === GRID LAYOUT === */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modern-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.modern-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .modern-grid.cols-2,
    .modern-grid.cols-3,
    .modern-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* === STÁTUSZ JELVÉNYEK === */
.modern-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.modern-status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.modern-status-badge.charging {
    background: #fff3e0;
    color: #e65100;
}

.modern-status-badge.occupied {
    background: #ffebee;
    color: #c62828;
}

.modern-status-badge.offline {
    background: #eceff1;
    color: #546e7a;
}

.modern-status-badge.preparing {
    background: #e3f2fd;
    color: #1565c0;
}

.modern-status-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.modern-status-badge.warning {
    background: #fff3e0;
    color: #e65100;
}

.modern-status-badge.danger {
    background: #ffebee;
    color: #c62828;
}

.modern-status-badge.info {
    background: #e3f2fd;
    color: #1565c0;
}

.modern-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.modern-status-dot.available {
    background: #2e7d32;
}

.modern-status-dot.charging {
    background: #e65100;
}

.modern-status-dot.occupied {
    background: #c62828;
}

.modern-status-dot.offline {
    background: #546e7a;
}

.modern-status-dot.preparing {
    background: #1565c0;
}

@keyframes pulse-status {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* === SECTION === */
.modern-section {
    background: white;
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.modern-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modern-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modern-section-title i {
    opacity: 0.7;
}

/* === GOMBOK === */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: var(--font-family);
}

.modern-btn:hover {
    transform: translateY(-2px);
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
}

.modern-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.4);
    color: white;
}

.modern-btn-success {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.modern-btn-success:hover {
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    color: white;
}

.modern-btn-danger {
    background: linear-gradient(135deg, #c62828, #e53935);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.modern-btn-danger:hover {
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
    color: white;
}

.modern-btn-info {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.modern-btn-info:hover {
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
    color: white;
}

.modern-btn-secondary {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    color: white;
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.3);
}

.modern-btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(117, 117, 117, 0.4);
    color: white;
}

.modern-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.modern-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

/* === TÁBLÁZATOK === */
.modern-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modern-table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.modern-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.modern-table tbody tr {
    transition: background var(--transition-fast);
}

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

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table .total-row {
    font-weight: 700;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
}

.modern-table .total-row td {
    border-top: 2px solid var(--primary);
}

/* === FORM ELEMEK === */
.modern-form-group {
    margin-bottom: 20px;
}

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

.modern-form-input,
.modern-form-select,
.modern-form-textarea,
.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-family);
    background: white;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.modern-form-input:focus,
.modern-form-select:focus,
.modern-form-textarea:focus,
.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.1);
}

.modern-form-input::placeholder,
.modern-input::placeholder,
.modern-textarea::placeholder {
    color: #999;
}

.modern-form-textarea,
.modern-textarea {
    min-height: 120px;
    resize: vertical;
}

/* === ÜZENETEK === */
.modern-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.modern-alert i {
    font-size: 20px;
}

.modern-alert-success,
.modern-alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.modern-alert-danger,
.modern-alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.modern-alert-warning,
.modern-alert.warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.modern-alert-info,
.modern-alert.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* === BETÖLTÉS ANIMÁCIÓ === */
.modern-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary);
}

.modern-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e3f2fd;
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.modern-loading-text {
    font-size: 18px;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === ÜRES ÁLLAPOT === */
.modern-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.modern-empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.modern-empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.modern-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* === BALANCE SECTION === */
.modern-balance-display {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.modern-balance-display.positive {
    color: #2e7d32;
}

.modern-balance-display.negative {
    color: #c62828;
}

/* === PROFIL SZEKCIÓK === */
.modern-profile-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.modern-profile-section h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-profile-info-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.modern-profile-info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-profile-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* === STICKY FOOTER === */
html.desktop-view,
html.desktop-view body {
    height: 100%;
    margin: 0;
}

html.desktop-view body.modern-ui {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html.desktop-view .modern-container {
    flex: 1 0 auto;
}

/* === FOOTER === */
.modern-footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, #183136 0%, #0d1f22 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.modern-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.modern-footer a:hover {
    color: white;
}

/* === RESZPONZÍV === */
@media (max-width: 768px) {
    .modern-container {
        padding: 16px;
    }

    .modern-hero {
        padding: 24px;
    }

    .modern-hero h1 {
        font-size: 26px;
    }

    .modern-stats {
        gap: 20px;
    }

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

    .modern-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .modern-table-container {
        overflow-x: auto;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .modern-header-nav {
        padding: 12px 16px;
    }

    .modern-nav-menu {
        gap: 8px;
    }

    .modern-nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* === TABS === */
.modern-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
    overflow-x: auto;
}

.modern-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-normal);
    white-space: nowrap;
    font-family: var(--font-family);
}

.modern-tab:hover {
    color: var(--primary);
}

.modern-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.modern-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 3px 3px 0 0;
}

/* === MODALS === */
.modern-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modern-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modern-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.modern-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all var(--transition-fast);
}

.modern-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* === QUICK ACTIONS === */
.modern-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.modern-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    min-width: 120px;
}

.modern-quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.modern-quick-action i {
    font-size: 28px;
    color: var(--primary);
}

.modern-quick-action span {
    font-weight: 600;
    font-size: 14px;
}