/* Globális stílusok */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Az egész ablakot kitölti */
    justify-content: center;
    align-items: center;
}

.header-logo {
    height: 30px; /* Állítsd be a kívánt magasságot */
    width: auto; /* Az arányok megőrzéséhez */
    margin-right: 5px; /* Távolság a szövegtől */
    vertical-align: middle; /* Igazítás a szöveghez */
}

/* Közös elemek */
h2 {
    margin-bottom: 10px;
    margin-top: 5px;
}

h3   {
    margin-bottom: 10px;
    margin-top: 5px;
}

button {
    font-size: 13px;
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Bejelentkezési oldal (login-container) */
.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
}

input {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Alapoldal (home-container) */
body.home {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: flex-start;
    align-items: stretch;
}

.home-container {
    display: flex;
    flex: 1;
}

/* Fejléc */
.header {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.header a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}

/* Alapoldal konténer */
.container {
    display: flex;
    flex: 1;
    /* height: calc(100vh - 50px); /* Fejléc magasságának levonása */
}

/* Oldalsó menü */
.sidebar {
    width: 80px;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar li {
    margin-bottom: 10px;
    font-size: 13px;
}

.sidebar a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.sidebar a:hover {
    color: #007BFF;
}

/* Tartalom */
.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: calc(100% - 40px); /* Margin miatti igazítás */
}

/* Táblázatok */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0px 0;
    font-size: 13px;
}

th, td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

/* Űrlapok */
form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

form input,
form select,
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    color: #000;
}

form button {
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

form button:hover {
    background-color: #0056b3;
}


label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="password"], button {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* A "Telefonok" és a "Új telefon hozzáadása" elrendezése */
.header-row {
    display: flex;
    justify-content: space-between; /* Elemeket a sor két végére helyezi */
    align-items: center; /* Függőleges igazítás középre */
    margin-bottom: 0px; /* Térköz a tartalom alatt */
}

/* Gomb stílusozása */
.btn {
    display: inline-block;
    padding: 3px 5px;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: #007BFF;
    border: 1px solid #007BFF;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.sort-buttons {
    margin-bottom: 20px;
}

.sort-buttons .btn {
    margin-right: 10px;
}

/* Dark mode alapértelmezés (kikapcsolva) */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .header {
    background-color: #1f1f1f;
    color: #ffffff;
}

.dark-mode .sidebar {
    background-color: #1c1c1c;
    color: #ffffff;
}

.dark-mode .sidebar a {
    color: #ffffff;
}

.dark-mode .content {
    background-color: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.dark-mode th {
    background-color: #333;
}

.dark-mode td, .dark-mode th {
    border-color: #555;
}

.dark-mode button, .dark-mode .btn-primary {
    background-color: #444;
    color: #ffffff;
}

.dark-mode button:hover, .dark-mode .btn-primary:hover {
    background-color: #666;
}

.dark-mode form {
    background-color: #1e1e1e;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode form label {
    color: #ffffff;
}

.dark-mode form input,
.dark-mode form select,
.dark-mode form textarea {
    background-color: #333;
    color: #fff;
    border: 1px solid #666;
}

.dark-mode form input::placeholder,
.dark-mode form textarea::placeholder {
    color: #bbb;
}

.dark-mode form button {
    background-color: #444;
    color: #fff;
}

.dark-mode form button:hover {
    background-color: #666;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;  /* Térköz az elemek között */
    max-width: 800px;
    margin: 0 auto;
}

.user-item {
    display: flex;
    max-width: 800px;

    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.user-item label {
    display: flex;
    align-items: center;
    gap: 10px;  /* Térköz a checkbox és a név között */
    font-size: 13px;
    color: #333;
    width: 100%;
}

.user-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #007BFF;  /* Színezett checkbox */
}

.dark-mode .user-item {
    background-color: #1e1e1e;
    border: 1px solid #444;
}

.dark-mode .user-item label {
    color: #ffffff;
}