/* ===== ALAP BEÁLLÍTÁSOK ÉS VÁLTOZÓK ===== */
:root {
    --bg-color: #f4f4f9;
    --container-bg: #ffffff;
    --text-color: #333;
    --primary-accent: #005a9c;
    --link-color: #333;
    --border-color: #ddd;
    --font-size: 13px;

    --header-bg-person: rgba(204,165,122,1);
    --header-bg-film: rgba(204,165,122,1);
    --row-color-1: rgba(206,213,178,1);
    --row-color-2: rgba(237,234,204,1);
    --row-color-3: rgba(253,250,227,1);
    --row-color-4: rgba(248,237,208,1);
}

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

#network-graph {
    width: 100%;
    min-height: 500px; /* Vagy fix magasság: height: 500px; */
    border: 1px solid #eee; /* Ez a keret segít látni, hol van a konténer */
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.3;
    font-size: var(--font-size);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.graphlist{
    font-size: 13px;
}

span.linklist{
    padding-left:10px;
}
/* ===== FŐ ELRENDEZÉS (LAYOUT) ===== */
#main-container {
    display: flex;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--container-bg);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.columnleft {
    flex: 0 0 350px; /* Fix szélesség, nem zsugorodik */
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-size: 12px;
    background-color: #f2f2f2;
}

.columnright {
    flex: 1 1 auto; /* A maradék helyet kitölti */
    padding: 20px;
    overflow-y: auto;
}

/* ===== BAL OSZLOP: KERESŐ ÉS EREDMÉNYEK ===== */
.menudiv {
    padding: 5px;
    border-bottom: 1px solid var(--border-color);
    background: #b2723a;
}

.divmenubox {
    display: flex;
    align-items: center;
    gap: 8px; /* Térköz az elemek között */
}

.divmenubox input[type="text"], 
.divmenubox select {
    padding: 2px 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    border-radius: 4px;
}

.divmenubox input[type="submit"] {
    padding: 2px 5px 5px 5px;
    border: none;
    background-color: #454545;/*var(--primary-accent);*/
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#search-results {
    padding: 0px;
}

/* Eredeti táblázat stílusok modernizálva */
.tablecolour1, .tablecolour2 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.thcolour1, .thcolour2 {
    padding: 8px;
    text-align: left;
    color: white;
}
.thcolour1 { background-color: var(--header-bg-person); color: var(--text-color); }
.thcolour2 { background-color: var(--header-bg-film); color: var(--text-color); }

.rowcolour0, .rowcolour1, .rowcolour2, .rowcolour3 {
    border-bottom: 1px solid #f0f0f0;
    padding:5px;
}
.rowcolour0 td, .rowcolour1 td, .rowcolour2 td, .rowcolour3 td {
    padding: 8px;
}

/* Sorminta színek */
.rowcolour0 { background-color: var(--row-color-1); }
.rowcolour1 { background-color: var(--row-color-2); }
.rowcolour2 { background-color: var(--row-color-3); }
.rowcolour3 { background-color: var(--row-color-4); }


/* ===== JOBB OSZLOP: RÉSZLETEK ===== */
.namecardbox {
    padding: 15px 0 10px 0;
    background-color: #fff;
    border-bottom: 1px dotted var(--border-color);
    border-radius: 5px;
    margin-bottom: 25px;
}

.titlename {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-accent);
}

div.divtitle{
    padding-bottom: 5px;
    margin:20px 0 5px 0;
    border-width: 0px 0px 1px 0px;
    border-style: dotted;
    border-color: grey;
    width: 300px;
    font-weight: bold;
    font-size: 15px;
}
/*
.divtitle {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-accent);
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 5px;
}
*/

.columnfilmog {
    margin-bottom: 20px;
}

.footermenu {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 1. Az UL elemről levesszük az alapértelmezett stílusokat */
.nofloat-container ul {
    list-style: none;
    padding-left:10px;
    font-size:13px;
}

/* 2. Minden LI elemet flex container-ré alakítunk */
.nofloat-container li {
    display: flex; /* Bekapcsolja a flexbox elrendezést */
    align-items: baseline; /* A jelölőt és a szöveg első sorát egy vonalba igazítja */
    margin-bottom: 2px; /* Kisebb térköz a lista elemek között */
}

/* 3. A jelölő (::before) beillesztése és formázása */
.nofloat-container li::before {
    content: "□";        /* A jelölő tartalma */
    margin-right: 10px;   /* Térköz a jelölő és a szöveg között */
    
    /* Opcionális finomhangolás */
    font-size: 0.7em;       /* A méretet a szöveghez igazítjuk */
    line-height: 0.8;       /* Segít a függőleges középre igazításban */
    color: #555;
}

/* Settings Panel Styles */
.settings-panel { padding: 10px; border-top: 1px solid #eee; margin-top: 10px; }
.setting-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.setting-item label { font-weight: bold; }

/* The switch - the box around the slider */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #2196F3; }
input:focus + .slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Az idővonalon lévő összes elem (film) betűméretének és paddingjének csökkentése, háttérszín módosítása */
/* JAVÍTVA: Specifikusabb szelektorral biztosan felülírjuk a háttérszínt */
.vis-timeline .vis-item {
    background-color: #e0e0e0; /* Próbáld ki ezzel a világoskék színnel, vagy írd át a sajátodra */
    border-color: #b4cde0;        
}

.vis-item .vis-item-content {
    font-size: 12px !important; /* !important hozzáadva a biztos felülíráshoz, ha szükséges */
    padding: 0px 4px !important; /* ÚJ: Kisebb padding. A !important itt is segíthet. */
}

/* Opcionális: A dátumok betűméretének külön állítása az időtengelyen */
.vis-time-axis .vis-text {
    font-size: 10px;
}


/* ===== AJAX TÖLTÉSJELZŐ (LOADER) ===== */
.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid var(--primary-accent); /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto; /* Középre igazítás */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== RESZPONZIVITÁS (MOBILNÉZET) 📱 ===== */
@media screen and (max-width: 800px) {
    #main-container {
        flex-direction: column; /* Az oszlopokat egymás alá rendezi */
        height: auto;
    }

    .columnleft {
        flex: 1 1 auto; /* Visszaállítjuk, hogy a tartalomhoz igazodjon */
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        max-height: 50vh; /* Korlátozzuk a magasságát, hogy a tartalom is látszódjon */
    }

    .columnright {
        padding: 5px 5px 15px 0;
    }
}