/* 🌍 Globální nastavení */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
}

/* 🧭 Hlavička */
header {
    background-color: #0b335a;
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fdfdfd;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.4);
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 10px;
    background-color: #104E8B;
    font-weight: bold;
    transition: 0.2s;
}

header nav a:hover {
    background-color: #082850;
    transform: scale(1.05);
}

/* ✍️ Kontakt Formulář */
.contact-card {
    background-color: #fff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.contact-card h2 {
    color: #104E8B;
    margin-bottom: 25px;
    text-align: center;
}

.contact-card form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-card form input[type="text"],
.contact-card form input[type="email"],
.contact-card form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card form input[type="text"]:focus,
.contact-card form input[type="email"]:focus,
.contact-card form textarea:focus {
    border-color: #104E8B;
    box-shadow: 0 0 8px rgba(16,78,139,0.2);
    outline: none;
}

.contact-card form input[type="submit"] {
    background-color: #104E8B;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-card form input[type="submit"]:hover {
    background-color: #0b335a;
    transform: scale(1.03);
}

.contact-card p.success-msg {
    text-align: center;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 📦 Kontejner */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 🎨 Karty workshopů */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-workshop {
    border-radius: 15px;
    color: #fff;
    padding: 25px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-workshop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* 🟥🟩🟦 Barvy workshopů */
.bg-red { background-color: #d32f2f; }
.bg-green { background-color: #388e3c; }
.bg-yellow { background-color: #fbc02d; }
.bg-blue { background-color: #1e88e5; }
.bg-teal { background-color: #009688; }
.bg-purple { background-color: #8e24aa; }
.bg-orange { background-color: #fb8c00; }
.bg-white { background-color: #3f3c38; }

/* 🪟 Modální okna */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow:auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

/* ✍️ Formuláře */
form input[type="text"],
form input[type="email"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

form input[type="submit"] {
    background-color: #104E8B;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

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

/* 🚫 Upozornění */
.alert-closed {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e53935;
    margin: 20px 0;
}

/* 📊 Tabulky (admin panel) */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
th {
    background-color: #0b335a;
    color: white;
}
tr:hover { background-color: #f1f6fb; }

/* 🗑️ Tlačítko mazání */
a.delete {
    background-color: #d32f2f;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
a.delete:hover {
    background-color: #a52828;
}

/* ⚙️ Filtr (admin panel) */
.filter-form select,
.filter-form input[type="text"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #c0c4cc;
    margin-right: 10px;
}

.filter-form input[type="submit"] {
    padding: 8px 12px;
    border:none;
    border-radius:8px;
    background-color:#104E8B;
    color:white;
    cursor:pointer;
}
.filter-form input[type="submit"]:hover {
    background-color:#0b335a;
}

/* 🦶 Footer */
footer {
    text-align: center;
    color: #555;
    margin: 30px 0;
}
