/* Reset a základné štýly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e40af 50%, #3b82f6 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Kontajner */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Hlavička */
header {
    background: linear-gradient(135deg, #1e40af 50%, #3b82f6 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Navigácia */
nav {
    background: #f8f9fa;
    padding: 0;
    display: flex;
    border-bottom: 2px solid #e9ecef;
}

nav a {
    flex: 1;
    padding: 15px 20px;
    text-decoration: none;
    color: #495057;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background: #e9ecef;
    color: #1e40af;
}

nav a.active {
    color: #1e40af;
    border-bottom: 3px solid #1e40af;
    background: white;
}

/* Hlavný obsah */
main {
    padding: 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Formulár */
.form-container {
    flex: 2;
    min-width: 300px;
}

.form-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Tlačidlá */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
}

/* Upozornenia */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Obsadené termíny */
.obsadene-terminy {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.obsadene-terminy h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.terminy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.termin-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.termin-item .datum {
    font-weight: 600;
    color: #495057;
}

.termin-item .cas {
    background: #1e40af;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
}

/* Zoznam rezervácií */
.list-container {
    width: 100%;
}

.list-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.table-responsive {
    overflow-x: auto;
}

.rezervacie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rezervacie-table thead {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.rezervacie-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.rezervacie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.rezervacie-table tbody tr:hover {
    background: #f8f9fa;
}

.statistika {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.statistika p {
    color: #495057;
    font-size: 1.1em;
}

/* Prázdne údaje */
.no-data {
    color: #6c757d;
    font-style: italic;
}

.no-data-box {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-data-box p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Pätička */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-top: 2px solid #e9ecef;
}

/* Responzívny dizajn */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    /* Responzívna tabuľka */
    .rezervacie-table {
        border: 0;
    }
    
    .rezervacie-table thead {
        display: none;
    }
    
    .rezervacie-table tr {
        margin-bottom: 15px;
        display: block;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .rezervacie-table td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .rezervacie-table td:last-child {
        border-bottom: 0;
    }
    
    .rezervacie-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #1e40af;
    }
}
