/* Alap beállítások */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f9ff; /* világos háttér */
    color: #003366; /* sötétkék szöveg */
}

/* Login konténer */
.login-container {
    width: 350px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 100px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    color: #004080; /* egységes kék */
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
    box-sizing: border-box;
}

button {
    background: #004080; /* egységes kék */
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #003366;
}

.error {
    color: red;
    text-align: center;
}

/* =========================
   Navbar – 4 menü KÖZÉPEN + profil JOBBRA
   ========================= */
#navbar{
    position: relative;
    background-color: #004080;
    padding: 6px 16px;     /* kisebb felső-alsó padding */
    height: 44px;          /* alacsonyabb navbar */

    display: flex;
    align-items: center;
    justify-content: center;
}


/* KÖZÉPEN lévő menüpontok */
#navbar .nav-left{
    display: flex;
    align-items: center;
    gap: 26px;
}

#navbar .nav-left a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
}

#navbar .nav-left a:hover{
    color: #ffcc00;
}

/* JOBB OLDALI profil blokk (nem tolja el a közepet) */
#navbar .nav-user{
    position: absolute;
    right: 16px;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* kör avatar */
#navbar .nav-avatar{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6c5ce7;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 14px;
}

/* név + kijelentkezés */
#navbar .nav-userinfo{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

#navbar .nav-username{
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

/* kijelentkezés */
#navbar a.nav-logout{
    color: #dbe8ff;
    font-size: 12px;
    text-decoration: underline;
    margin: 0;
}

#navbar a.nav-logout:hover{
    color: #ffffff;
}

/* Konténer */
#container {
    display: flex;
    min-height: calc(100vh - 50px);
    height: auto;
}

#sidebar {
    width: 200px;
    background-color: #e6f0ff;
    padding: 15px;
    border-right: 2px solid #004080;
    min-height: calc(100vh - 50px);
}

#sidebar h3 {
    margin-top: 0;
    color: #004080;
}

/* Alap menüpontok (csempék) */
#sidebar a {
    display: block;
    padding: 8px;
    margin-bottom: 6px;
    background-color: #cce0ff;
    color: #003366;
    text-decoration: none;
    border-radius: 4px;
}

#sidebar a:hover {
    background-color: #004080;
    color: white;
}

/* Tartalom */
#content {
    flex: 1;
    padding: 20px;
}

h2 {
    color: #004080;
}

/* =========================
   Dropdown a sidebarban
   ========================= */

/* A dropdown konténer */
#sidebar .dropdown {
    margin-bottom: 6px;
}

/* A dropdown gomb kinézete (olyan, mint egy menüpont) */
#sidebar .dropdown-btn {
    display: block;
    padding: 8px;
    margin-bottom: 6px;
    background-color: #cce0ff;
    color: #003366;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

#sidebar .dropdown-btn:hover {
    background-color: #004080;
    color: white;
}

/* Nyíl jobbra */
#sidebar .dropdown-btn span {
    float: right;
}

/* Almenü keret */
#sidebar .dropdown-content {
    display: none;
    padding-left: 10px;
    margin: 4px 0 10px 0;
    border-left: 3px solid #004080;
}

/* Almenü linkek: NEM csempék */
#sidebar .dropdown-content a {
    display: block;
    padding: 6px 0;
    margin: 0;
    background: transparent !important;
    border-radius: 0;
    color: #003366;
    text-decoration: none;
    font-weight: normal;
}

/* Hover: csak aláhúzás, ne doboz */
#sidebar .dropdown-content a:hover {
    background: transparent !important;
    color: #003366 !important;
    text-decoration: underline;
}

/* Táblázat */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th, .table td {
    border: 1px solid #cce0ff;
    padding: 8px;
    text-align: left;
}

.table th {
    background: #e6f0ff;
    color: #004080;
}

/* Szebb textarea a hiba leíráshoz */
.nice-textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    border: 1px solid #cce0ff;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

/* Szebb fókusz minden input/textarea mezőre */
input:focus, textarea:focus {
    border-color: #004080;
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.15);
}

/* Kötelező mező jelölése */
.req {
    color: #cc0000;
    font-weight: bold;
    margin-left: 4px;
}

/* Hibás mező (üresen hagyva) */
.input-error {
    border-color: #cc0000 !important;
    background-color: #fff5f5;
}

.notif {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 3px;
}
