/* ===== SZÜV ASE — DESKTOP REDESIGN ===== */
/* UTF-8 | Magyar ABC támogatás */

:root {
    /* ===== SZÍNSÉMA — SZÜV ASE EARTH TONES ===== */
    --bg:          #F5F1E6;
    --card:        #EFE8D8;
    --card-inner:  #FAF8F2;
    --sidebar-bg:  #2F3F4D;
    --sidebar2:    #243240;
    --text:        #4F453C;
    --soft:        #8A7D72;
    --border:      #DDD6C4;
    --accent:      #2F3F4D;
    --green:       #6A9E75;
    --red:         #C47A7A;
    --accent-warm: #7A6A5A;

    /* Státusz színek */
    --success:     #6A9E75;
    --danger:      #C47A7A;
    --warning:     #C4A04A;
    --info:        #5A8A9A;

    /* ===== LAYOUT ===== */
    --sidebar-w: 220px;

    /* Betűméretek */
    --font-xs: 11px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 16px;

    /* Térközök */
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 12px;
    --gap-lg: 20px;

    /* Border radius */
    --radius-sm: 7px;
    --radius-md: 12px;
}

/* ===== RESET & BASE ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex !important;
    min-height: 100vh;
    font-size: var(--font-sm);
    line-height: 1.5;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Ranglista scroll nélkül */
.ranglista-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ===== SIDEBAR — 220px FIX ===== */

.sidebar {
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
    max-width: var(--sidebar-w) !important;
    background: var(--sidebar-bg) !important;
    color: white;
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-warm);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
}

.sidebar-title span {
    color: var(--accent-warm);
}

/* Sidebar user info */
.sidebar-user {
    padding: 12px 18px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: white;
}

.sidebar-user-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-user-role {
    opacity: 0.55;
    font-size: 11px;
    margin-top: 1px;
}

/* Sidebar section labels */
.sidebar-section {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.3);
    padding: 16px 18px 6px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
}

.sidebar-item {
    padding: 9px 18px;
    text-decoration: none;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .12s, color .12s;
    font-size: .82rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.85);
}

.sidebar-item.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: var(--accent-warm);
}

.sidebar-icon {
    font-size: .95rem;
    width: 18px;
    text-align: center;
    opacity: .8;
}

.sidebar-label {
    flex: 1;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--accent-warm);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
}

.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 6px 18px;
}

/* Sidebar footer (season info) */
.sidebar-season {
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .72rem;
    color: rgba(255,255,255,.35);
}

.sidebar-season .season-name {
    font-weight: 600;
    color: rgba(255,255,255,.55);
    margin-bottom: 2px;
}

/* ===== MAIN WRAPPER — 220px OFFSET ===== */

.main-wrapper {
    margin-left: var(--sidebar-w) !important;
    flex: 1;
    width: calc(100% - var(--sidebar-w));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}

/* ===== TOPBAR / HEADER ===== */

.app-header {
    background: var(--card);
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content h2,
.header-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin: 0;
}

/* User chip in topbar */
.user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.user-chip .user-av {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    font-weight: 800;
    color: #fff;
}

/* Topbar buttons */
.tb-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    font-size: .76rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background .12s;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
}

.tb-btn:hover {
    background: var(--bg);
}

.tb-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tb-btn.primary:hover {
    background: #3A4D5C;
}

/* Search box in topbar */
.tb-search {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: .76rem;
    color: var(--soft);
}

/* ===== MAIN CONTENT ===== */

.main-content {
    padding: 24px;
    flex: 1;
    width: 100%;
    max-width: none !important;
}

/* ===== INFO-BOX (FEJADATOK) ===== */

.info-box {
    background: var(--card);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-warm);
    display: flex;
    gap: 25px;
    font-size: var(--font-sm);
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.info-box strong {
    font-weight: 600;
    color: var(--text);
}

/* ===== FORM RENDSZER ===== */

.form-row-flexible {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: flex-end !important;
    width: 100% !important;
    margin-bottom: 15px;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    margin-bottom: 0;
}

.form-group label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: var(--font-xs);
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 3px;
    display: block;
}

/* ===== FIX SZÉLESSÉGEK ===== */

.w-xs { width: 70px !important; }
.w-sm { width: 140px !important; }
.w-md { width: 220px !important; }
.w-lg { width: 320px !important; }
.w-full { width: 100% !important; }

/* ===== FORM ELEMEK ===== */

.form-input,
.form-select,
select.form-input,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    height: 34px;
    width: 100%;
    font-family: 'Barlow', sans-serif;
    background: var(--card-inner);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
select:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(47,63,77,0.1);
}

.form-textarea,
textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-family: 'Barlow', sans-serif;
    background: var(--card-inner);
    color: var(--text);
    resize: vertical;
}

.form-textarea:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(47,63,77,0.1);
}

/* ===== PHOTO UPLOAD ===== */
#photoUpload {
    width: 100%;
    min-height: 160px;
}

.photo-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--card-inner);
    min-height: 140px;
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    cursor: default;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.photo-upload-zone.dragover {
    background: #EAF0E8;
    border-color: var(--green);
}

.photo-upload-icon {
    font-size: 28px;
}

.photo-upload-text {
    font-weight: 600;
    color: var(--text);
}

.photo-upload-hint {
    font-size: var(--font-xs);
    color: var(--soft);
}

.photo-preview {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.photo-preview img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    object-fit: contain;
    display: block;
    border: 1px solid var(--border);
    background: var(--card-inner);
    cursor: default;
    pointer-events: none;
}

.photo-preview img:not([src]),
.photo-preview img[src=""] {
    display: none;
}

.photo-preview-actions {
    display: flex;
    gap: 8px;
}

/* ===== GOMBOK ===== */

.btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .76rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
}

.btn:hover {
    background: var(--bg);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #3A4D5C;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--soft);
    color: white;
    border-color: var(--soft);
}

.btn-secondary:hover {
    background: #6A5D52;
}

.btn-success {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-success:hover {
    background: #5A8E65;
}

.btn-danger {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.btn-danger:hover {
    background: #B46A6A;
}

.btn-info {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

.btn-outline {
    background: var(--card-inner);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* ===== IKON GOMBOK ===== */

.icon-btn {
    display: inline-block !important;
    padding: 4px 6px !important;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    vertical-align: middle;
    line-height: 1;
}

.icon-btn:hover {
    background: var(--border);
}

.icon-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
    vertical-align: middle;
}

/* ===== TÁBLÁZATOK ===== */

.table-container {
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    width: 100%;
    max-width: none !important;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-sm);
}

.data-table thead {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.data-table th {
    padding: 10px 12px;
    text-align: left;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--soft);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

/* ZEBRACSÍKOS TÁBLÁZAT */
.data-table tbody tr:nth-child(odd) {
    background-color: var(--card);
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--card-inner);
}

.data-table tbody tr:hover {
    background: #E8E2D2 !important;
}

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

/* Force consistent column widths */
.data-table.aligned-columns { table-layout: fixed; }
.data-table.aligned-columns th:nth-child(1),
.data-table.aligned-columns td:nth-child(1) { width: 220px; text-align: left; }
.data-table.aligned-columns th:nth-child(2),
.data-table.aligned-columns td:nth-child(2) { width: 220px; text-align: left; }
.data-table.aligned-columns th:nth-child(3),
.data-table.aligned-columns td:nth-child(3) { width: 140px; text-align: left; }
.data-table.aligned-columns th:nth-child(4),
.data-table.aligned-columns td:nth-child(4) { width: 80px; text-align: center; }
.data-table.aligned-columns th:nth-child(5),
.data-table.aligned-columns td:nth-child(5) { width: 80px; text-align: center; }
.data-table.aligned-columns th:nth-child(6),
.data-table.aligned-columns td:nth-child(6) { width: 80px; text-align: center; }
.data-table.aligned-columns th:nth-child(7),
.data-table.aligned-columns td:nth-child(7) { width: 60px; text-align: center; }

/* ===== KÁRTYÁK ===== */

.card {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--soft);
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.card-body {
    padding: 16px 18px;
    color: var(--text);
}

.card-action {
    font-family: 'Barlow', sans-serif;
    font-size: .72rem;
    color: var(--soft);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.card-action:hover {
    color: var(--text);
}

/* Pasztell kártya variánsok — earth tones */
.card-blue   { background: #E4E8DE; }
.card-peach  { background: #EDE4D4; }
.card-green  { background: #DFE8D8; }
.card-yellow { background: #EDE8D0; }
.card-purple { background: #E4DDE8; }
.card-pink   { background: #EDDFDF; }

/* Eredmény alapú meccs kártyák */
.card.match-win {
    background: #DFE8D8;
    border-left: 4px solid var(--green);
}

.card.match-draw {
    background: #E4E8DE;
    border-left: 4px solid var(--info);
}

.card.match-loss {
    background: #EDDFDF;
    border-left: 4px solid var(--red);
}

/* ===== BADGE-EK ===== */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.4;
}

.badge-success {
    background: #DFE8D8;
    color: var(--green);
}

.badge-danger {
    background: #EDDFDF;
    color: var(--red);
}

.badge-warning {
    background: #EDE8D0;
    color: var(--warning);
}

.badge-info {
    background: #DEE8EC;
    color: var(--info);
}

/* ===== FLASH ÜZENETEK ===== */

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    background: var(--card);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(44,62,80,.12);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
    color: var(--text);
}

.flash-success {
    border-left-color: var(--green);
    background: #DFE8D8;
}

.flash-error,
.flash-danger {
    border-left-color: var(--red);
    background: #EDDFDF;
}

.flash-warning {
    border-left-color: var(--warning);
    background: #EDE8D0;
}

.flash-info {
    border-left-color: var(--info);
    background: #DEE8EC;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
    color: var(--text);
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== FOOTER ===== */

.app-footer {
    background: var(--card);
    padding: 12px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--font-xs);
    color: var(--soft);
    margin-top: auto;
}

/* ===== GRID RENDSZER ===== */

.grid {
    display: grid;
    gap: 16px;
}

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

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

/* ===== SEGÉD OSZTÁLYOK ===== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ===== SPECIFIKUS KOMPONENSEK ===== */

/* Stat kártyák (dashboard) */
.stat-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-warm);
}

.stat-card-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-warm);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .65rem;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Keresés */
.search-box {
    position: relative;
}

.search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    width: 250px;
    background: var(--card-inner);
    font-family: 'Barlow', sans-serif;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft);
}

/* Üres állapot */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--soft);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: var(--font-md);
    margin-bottom: 8px;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47,63,77,0.4);
    z-index: 9998;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(44,62,80,.15);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== PAGE HEADER / CONTAINER ===== */

.page-container {
    max-width: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
}

/* ===== DASHBOARD LINK CARDS (stats, draw, masters, admin) ===== */

.link-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44,62,80,.1);
}

.link-card-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.link-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.link-card-desc {
    font-size: .72rem;
    color: var(--soft);
    line-height: 1.4;
}

/* ===== SCROLLBAR ===== */

.main-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ===== RESZPONZÍV ===== */

@media (max-width: 768px) {
    :root {
        --sidebar-w: 60px;
    }

    .sidebar-label,
    .sidebar-section,
    .sidebar-season,
    .sidebar-user,
    .sidebar-badge {
        display: none;
    }

    .sidebar-header {
        justify-content: center;
        padding: 12px 8px;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-item {
        justify-content: center;
        padding: 12px 8px;
        border-left: none;
    }

    .form-row-flexible {
        flex-direction: column !important;
    }

    .form-group {
        width: 100% !important;
    }

    .w-xs, .w-sm, .w-md, .w-lg {
        width: 100% !important;
    }

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

/* ===== CONTENT GRID (két oszlopos főoldal layout) ===== */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.right-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* height:0 + min-height:100% => BAL oszlop határozza a magasságot */
    height: 0;
    min-height: 100%;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.right-col::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== NEXT MATCH HERO ===== */

.next-match {
    background: var(--sidebar-bg);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 20px 22px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.nm-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(122,106,90,.18) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(106,158,117,.08) 0%, transparent 50%);
}

.nm-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent-warm);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nm-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
}

.nm-body {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nm-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nm-team.right {
    flex-direction: row-reverse;
}

.nm-team.right .nm-info {
    text-align: right;
}

.nm-av {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
}

.nm-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .04em;
}

.nm-record {
    font-size: .68rem;
    color: rgba(255,255,255,.4);
    margin-top: 1px;
}

.nm-vs-block {
    text-align: center;
    flex-shrink: 0;
}

.nm-vs {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(255,255,255,.25);
    display: block;
}

.nm-date {
    font-size: .65rem;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.nm-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    position: relative;
}

.nm-meta {
    font-size: .7rem;
    color: rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== LEGUTÓBBI MECCS KÁRTYA ===== */

.last-match-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.last-match-team {
    flex: 1;
    text-align: center;
}

.last-match-team-av {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--text);
    margin: 0 auto 6px;
}

.last-match-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
}

.last-match-score {
    text-align: center;
    flex-shrink: 0;
}

.last-match-score-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-match-score-date {
    font-size: .62rem;
    color: var(--soft);
    margin-top: 2px;
}

.last-match-details {
    padding: 0 18px 14px;
    font-size: .68rem;
    color: var(--soft);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* ===== NEWS FEED LIST ===== */

.news-item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: background .1s;
}

.news-item:last-child,
.news-item:last-of-type {
    border-bottom: none !important;
}

#newsCard {
    overflow: hidden;
}

#newsCard .news-item:nth-child(n+7) {
    display: none;
}

.news-item:hover {
    background: var(--bg);
}

.news-av {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.news-author {
    font-size: .74rem;
    font-weight: 600;
}

.news-time {
    font-size: .66rem;
    color: var(--soft);
}

.news-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: auto;
}

.news-title {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
}

.news-body {
    font-size: .76rem;
    color: var(--soft);
    line-height: 1.5;
}

/* ===== RIGHT COLUMN — MINI STATS ===== */

.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.mini-stat {
    background: var(--card);
    padding: 12px 14px;
}

.mini-stat-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}

.mini-stat-lbl {
    font-size: .64rem;
    color: var(--soft);
}

/* ===== RIGHT COLUMN — RANK ROWS ===== */

.rank-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border);
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-row.me {
    background: #F0EDE4;
}

.rank-pos {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    font-weight: 900;
    color: var(--soft);
    min-width: 18px;
}

.rank-pos.top1 {
    color: var(--accent-warm);
}

.rank-av-sm {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.rank-name {
    font-size: .76rem;
    font-weight: 600;
    flex: 1;
}

.rank-pts {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .88rem;
    font-weight: 800;
    color: var(--text);
}

.rank-trend {
    font-size: .62rem;
    margin-left: 3px;
}

/* ===== RIGHT COLUMN — UPCOMING ITEMS ===== */

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-bottom: 1px solid var(--border);
}

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

.upcoming-date {
    text-align: center;
    flex-shrink: 0;
    width: 36px;
}

.upcoming-day {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
}

.upcoming-month {
    font-size: .58rem;
    color: var(--soft);
    text-transform: uppercase;
    font-weight: 600;
}

.upcoming-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.upcoming-match {
    flex: 1;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
}

.upcoming-time {
    font-size: .65rem;
    color: var(--soft);
    margin-top: 1px;
}

.upcoming-type {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ===== NYOMTATÁS ===== */

@media print {
    .sidebar,
    .app-header,
    .app-footer,
    .toolbar,
    .btn {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-content {
        padding: 0 !important;
    }
}
