/* Globálne nastavenia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    height: 100%;
    background-color: #f0f0f5;
}

/* Prihlasovacia stránka */
#login-container {
    display: flex;
    justify-content: center; /* Horizontálne centrovanie */
    align-items: center;     /* Vertikálne centrovanie */
    height: 100vh;           /* Celková výška stránky */
    width: 100vw;            /* Celková šírka stránky */
}

#login-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Jemný tieň pre efekt karty */
    max-width: 400px;
    width: 100%;  /* Aby login box nepresahoval šírku obrazovky */
    text-align: center;
    margin: 0 auto;
}

#login-box img {
    width: 250px;
    margin-bottom: 20px;
}

h1 {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    align-self: flex-start;
    color: #666;
    margin-bottom: 10px;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="submit"] {
    background-color: #D6B75A;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #BFAA55;
}


/* Globálne štýly po prihlásení */
body {
    display: flex;
}

/* Bočný panel (sidebar) */
#sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidebar img {
    width: 150px;
    margin: 0 auto 20px auto; /* Centrum horizontálne a priestor pod logom */
    display: block;           /* Zabezpečí blokové správanie a centrovanie */
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar ul li {
    margin-bottom: 15px;
}

#sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    background-color: #444;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#sidebar ul li a:hover {
    background-color: #555;
}

#sidebar a.logout {
    margin-top: 20px;
    color: white;
    background-color: #e74c3c;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    display: block;
    text-align: center;
}

#sidebar a.logout:hover {
    background-color: #c0392b;
}

/* Hlavný obsah (content) */
#content {
    flex-grow: 1;
    padding: 40px;
    background-color: #f9f9f9;
}

#content h1 {
    color: #333;
    margin-bottom: 30px;
}

#content form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#content label {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

#content input[type="file"] {
    display: block;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

#content input[type="submit"] {
    background-color: #D6B75A;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

#content input[type="submit"]:hover {
    background-color: #BFAA55;
}

#content .success-message {
    background-color: #2ecc71;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

#content .error-message {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Tabuľka */
#content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#content table th, 
#content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#content table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

#content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#content table tr:hover {
    background-color: #f1f1f1;
}

/* Tlačidlá v tabuľke */
.table-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.table-button.edit {
    background-color: #f39c12;
}

.table-button.edit:hover {
    background-color: #e67e22;
}

.table-button.delete {
    background-color: #e74c3c;
}

.table-button.delete:hover {
    background-color: #c0392b;
}
