/* =========================================
   HOMIGO - GLOBAL STYLE (2024 UPDATE)
   ========================================= */

:root {
    --primary: #2563eb;
    --primary-hover: #1e40af;
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px; /* Fontos mobilhoz */
    overflow-x: hidden; /* Vízszintes görgetés tiltása a body-n */
}

/* --- KONTÉNER --- */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- GOMBOK --- */
.btn-save, .button-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-save:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- INPUT MEZŐK --- */
input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* =========================================
   RESZPONZÍV SZABÁLYOK (MOBILRA)
   ========================================= */

/* Ha a képernyő kisebb mint 1100px (Tablet és Mobil) */
@media (max-width: 1100px) {
    
    /* 1. Konténer igazítása */
    .main-container {
        padding: 10px;
    }

    /* 2. Beállítások kártyák */
    .settings-card, .card {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }

    /* 3. Grid Rendszer Összecsukása (FONTOS!) */
    /* Mindenhol, ahol rácsot használtunk, most 1 oszlop lesz */
    .grid-2, .grid-3, div[style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    /* A rácselemek közé kis helyet teszünk */
    .grid-2 > div, .grid-3 > div, .form-group {
        margin-bottom: 15px !important;
    }

    /* 4. Mentés gomb mobilbarát verzió */
    .btn-save {
        position: fixed;
        bottom: 15px;
        left: 5%;
        width: 90%;
        text-align: center;
        z-index: 9999;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    
    /* Helyet csinálunk a fix gombnak az oldal alján */
    body {
        padding-bottom: 80px; 
    }

    /* 5. Tisztségviselő kártyák */
    .official-card {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }
    
    .official-img {
        margin-bottom: 10px;
        width: 80px !important; 
        height: 80px !important;
    }

    /* 6. Táblázatok kezelése */
    /* Ha a táblázat szélesebb mint a képernyő, legyen görgethető */
    .table-scroll, .card {
        overflow-x: auto !important;
        display: block;
        width: 100%;
    }
    
    table {
        min-width: 600px; /* Minimum szélesség, hogy ne nyomorodjon össze */
    }
}