/* ============================================= */
/*          1. GLOBÁLNE ŠTÝLY A PREMENNÉ         */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --success-color: #28a745;
    --success-color-dark: #218838;
    --text-color-dark: #2c3e50;
    --text-color-light: #5a6a79;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-focus: rgba(0, 123, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ============================================= */
/*         2. HEADER (NAVIGAČNÁ LIŠTA)           */
/* ============================================= */

.navbar.fixed-top {
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0 !important;
    background: transparent !important;
    min-height: 75px;
    transition: all 0.4s ease !important;
}

.navbar.fixed-top.scrolled {
    background-color: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    min-height: 60px;
}

.navbar .navbar-brand {
    color: #ffffff !important;
    padding: 0;
    position: relative;
    min-width: 180px;
}

.navbar-logo {
    position: absolute;
    height: 150px;
    padding-top: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(0, 123, 255, 0.7) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================= */
/*                3. HERO SEKCIA                 */
/* ============================================= */

#hero {
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://adamec.sosetrnava.sk/uploads/background/herobackground.jpg") no-repeat center center / cover;
    filter: grayscale(85%);
    z-index: 1;
}

.hero-text-container {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 120px 20px 50px;
}

.hero-text-container h1 {
    font-size: 3.5em;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-text-container p {
    font-size: 1.3em;
    font-weight: 300;
    max-width: 600px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(45deg, #007bff, #6a11cb);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-glow 2.5s infinite ease-in-out;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.4);
    animation-play-state: paused;
    cursor: pointer;
}

/* ============================================= */
/*       4. ŠTANDARDNÉ SEKCIE (O NÁS, atď.)      */
/* ============================================= */

main {
    padding-top: 0;
}

main > section {
    background: #fff;
    padding: 60px 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

main > section h2 {
    text-align: center;
    color: #1a2533;
    margin: 0 0 50px 0;
    font-size: 2.5em;
    font-weight: 600;
}

#about {
    background: #f4f4f4;
    padding: 80px 40px;
    text-align: center;
}

#about h2 {
    color: #1a2533;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(45deg, #007bff, #6a11cb);
}

#about p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

#about p:last-of-type {
    margin-bottom: 0;
}

/* ============================================= */
/*               5. SEKCIA SLUŽBY                */
/* ============================================= */

#services {
    background-color: #f4f4f4;
    padding: 80px 0;
    overflow: hidden;
}

.services-content-wrapper {
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
}

.services-content-wrapper h2 {
    text-align: center;
    color: #1a2533;
    margin: 0 0 40px 0;
    font-size: 2.8em;
    font-weight: 700;
    padding: 0 40px;
}

.services-scroller {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-scroller::-webkit-scrollbar {
    display: none;
}

.service-item {
    flex: 0 0 350px;
    width: 350px;
    margin-left: 30px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-scroller > .service-item:first-child {
    margin-left: 40px;
}

.services-scroller > .service-item:last-child {
    margin-right: 40px;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-item-content {
    padding: 25px 30px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-item h3 {
    font-size: 1.7em;
    font-weight: 600;
    color: var(--text-color-dark);
    margin: 0 0 15px 0;
}

.service-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ============================================= */
/*            6. KALENDÁR A FILTROVANIE          */
/* ============================================= */

#calendar-section {
    max-width: 1200px;
    margin: 60px auto;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

#calendar-section h2 {
    text-align: center;
    color: #1a2533;
    margin: 0 0 40px 0;
    font-size: 2.8em;
    font-weight: 700;
}

.fc-col-header-cell-cushion,
.fc-daygrid-day-number {
    color: #333;
    text-decoration: none;
}

.fc-col-header-cell-cushion:hover,
.fc-daygrid-day-number:hover {
    text-decoration: none;
    background-color: transparent;
}

.fc-theme-standard .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
}

.fc-col-header {
    background-color: var(--background-light);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: transparent !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 0;
}

.fc-day-other .fc-daygrid-day-number {
    color: #adb5bd;
}

.trainer-filter-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.trainer-filter-container label {
    font-size: 1.1em;
    font-weight: 500;
    color: #555;
}

#trainer-filter {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 40px 12px 20px;
    min-width: 280px;
    font-size: 1em;
    color: var(--text-color-dark);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#trainer-filter:hover {
    border-color: #adb5bd;
}

#trainer-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--shadow-focus);
}

/* ============================================= */
/*        7. ADMIN SEKCIA (FORMULÁRE, KARTY)     */
/* ============================================= */

.admin-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    box-sizing: border-box;
}

.admin-form-container h2 {
    text-align: center;
    color: #333;
    margin: 0 0 30px 0;
    font-size: 1.8em;
}

.admin-form-container h2 a {
    text-decoration: none;
    color: inherit;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95em;
}

.message p {
    margin: 0;
}

.success-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.trener-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 320px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trener-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.trener-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.trener-card h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.trener-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.trener-card .description {
    min-height: 120px;
    max-height: 150px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.9em;
}

.trener-card .actions {
    margin-top: auto;
    padding-top: 15px;
    text-align: right;
    border-top: 1px solid #f0f0f0;
}

.trener-card .actions a {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.trener-card .actions a:hover {
    transform: scale(1.05);
}

.trener-card .actions .edit-btn { background-color: var(--primary-color); }
.trener-card .actions .edit-btn:hover { background-color: var(--primary-color-dark); }
.trener-card .actions .delete-btn { background-color: #dc3545; }
.trener-card .actions .delete-btn:hover { background-color: #c82333; }
.trener-card.deleting {
    transition: all 0.5s ease-out;
    transform: scale(0.9);
    opacity: 0;
}

.add-trainer-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: var(--success-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-trainer-btn:hover {
    background-color: var(--success-color-dark);
    transform: scale(1.05);
}

.back-link-button {
    display: block;
    width: fit-content;
    margin: 0 auto 25px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease-in-out;
}

.back-link-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-link-button .arrow-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(135deg);
    margin-right: 10px;
}

/* ============================================= */
/* 8. SPOLOČNÉ FORMULÁROVÉ ŠTÝLY (KONTAKT, ADMIN) */
/* ============================================= */

#contact {
    max-width: 1200px;
    margin: 60px auto;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 35px var(--shadow-color);
    box-sizing: border-box;
}

#contact h2 {
    text-align: center;
    color: #1a2533;
    margin: 0 0 40px 0;
    font-size: 2.8em;
    font-weight: 700;
}

.contact-form,
.admin-form-container form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

form label,
#editForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 1em;
}

form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="password"], form textarea,
#editForm input[type="text"], #editForm input[type="email"], #editForm input[type="tel"],
#editForm textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 25px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color-dark);
    transition: all 0.2s ease-in-out;
}

form input:hover, form textarea:hover, #editForm input:hover, #editForm textarea:hover {
    border-color: var(--primary-color-dark);
}

form input:focus, form textarea:focus, #editForm input:focus, #editForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--shadow-focus);
    background-color: #fff;
}

form textarea, #editForm textarea {
    min-height: 150px;
    resize: vertical;
}

.admin-form-container input[type="file"] {
    width: 100%;
    margin: 5px 0 30px 0;
}

.admin-form-container input[type="file"]::file-selector-button {
    padding: 10px 15px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-form-container input[type="file"]::file-selector-button:hover {
    background-color: #e0e0e0;
}

.contact-form button[type="submit"],
.admin-form-container input[type="submit"],
#editForm .submit-btn {
    width: 100%;
    display: block;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form button[type="submit"],
.admin-form-container input[type="submit"] {
    background: linear-gradient(45deg, var(--success-color), #2edc71);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.contact-form button[type="submit"]:hover,
.admin-form-container input[type="submit"]:hover {
    background: linear-gradient(45deg, var(--success-color-dark), var(--success-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

#editForm .submit-btn {
    background-color: var(--primary-color);
}
#editForm .submit-btn:hover {
    background-color: var(--primary-color-dark);
}


#contact p {
    text-align: center;
    margin-top: 30px;
}

#contact p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

#contact p a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

#contact p a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}

/* ============================================= */
/*           9. MODÁLNE OKNÁ A POPUP             */
/* ============================================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-modal {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5em;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-close-btn:hover {
    color: #333;
}

.popup-icon {
    margin-bottom: 20px;
}

.popup-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0 0 15px 0;
}

.popup-content p {
    font-size: 1.1em;
    color: var(--text-color-light);
    line-height: 1.6;
}

:root {
    --primary-color: #007bff; /* rovnaká modrá ako navigácia a kalendár */
    --modal-bg: #ffffff;
    --modal-shadow: rgba(0, 0, 0, 0.25);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.55);
    animation: fadeIn 0.35s ease-out;
    backdrop-filter: blur(3px);
}

/* === OBSAH MODÁLU === */
.modal-content {
    background-color: var(--modal-bg);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 14px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 12px 30px var(--modal-shadow);
    overflow: hidden;
    animation: zoomIn 0.35s ease-out;
}

/* === HLAVIČKA MODÁLU === */
.modal-header {
    background-color: var(--primary-color) !important;
    color: #ffffff;
    padding: 20px 25px;
    position: relative;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* === ZATVÁRACIE TLAČIDLO === */
.close-button {
    color: #ffffff;
    position: absolute;
    z-index: 10;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.25s ease;
}

.close-button:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
}

/* === TELO MODÁLU === */
.modal-body {
    padding: 25px 30px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}


.booking-info p {
    margin: 0 0 15px 0;
    font-size: 1.05rem;
    color: #555;
    display: flex;
    align-items: center;
}
.booking-info strong {
    color: #333;
    font-weight: 600;
}

.slots-title {
    font-weight: 600;
    color: #333;
    margin: 15px 0;
    font-size: 1.1rem;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0 25px 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}


:root {
    --primary-color: #007bff; /* modrá ako header / kalendár */
    --background-light: #f8f9fa;
}

/* === Tlačidlá výberu času === */
.time-slot-btn {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    min-width: 70px;
    margin: 6px;
}

/* Hover efekt */
.time-slot-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

/* Aktívne (vybraté) tlačidlo */
.time-slot-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.35);
}

/* Nedostupné časy (šedé) */
.time-slot-btn.unavailable {
    background-color: var(--background-light);
    border-color: #e9ecef;
    color: #ced4da;
    text-decoration: line-through;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.time-slot-btn.unavailable:hover {
    color: #ced4da;
}


.modal-footer {
    padding: 25px 30px;
    background-color: var(--background-light);
    border-top: 1px solid #e9ecef;
}

#confirmBookingBtn, .danger-btn {
    width: 100%;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
#confirmBookingBtn { background-color: var(--success-color); }
#confirmBookingBtn:hover { background-color: var(--success-color-dark); box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); transform: translateY(-2px); }

.danger-btn { background-color: #dc3545; }
.danger-btn:hover { background-color: #c82333; box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4); transform: translateY(-2px); }

#eventDetailTitle::before,
#eventDetailTime::before,
#eventDetailTrainer::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
}

#eventDetailTitle::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317a2b8'%3E%3Cpath d='M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m0-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E"); }
#eventDetailTime::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317a2b8'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); }
#eventDetailTrainer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317a2b8'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }

/* ============================================= */
/*                   10. FOOTER                  */
/* ============================================= */

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 0;
}

/* ============================================= */
/*            11. ANIMÁCIE (KEYFRAMES)           */
/* ============================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 35px rgba(106, 17, 203, 0.35);
    }
}

/* ============================================= */
/*     12. RESPONZÍVNY DIZAJN (MEDIA QUERIES)    */
/* ============================================= */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container { width: 95%; }
    .hero-text-container h1 { font-size: 2.5em; }
    .hero-text-container p { font-size: 1.1em; }
    #hero::before { background-position: 25% 50%; }

    #about { padding: 60px 20px; }
    #about h2 { font-size: 2.2em; }
    #about p { font-size: 1em; }
    
    .services-scroller {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        padding: 0 15px;
    }
    .services-scroller .service-item,
    .services-scroller > .service-item:first-child,
    .services-scroller > .service-item:last-child {
        flex-basis: auto;
        width: 100%;
        max-width: 450px;
        margin: 0 0 30px 0;
    }

    #calendar-section, #contact {
        margin: 40px auto;
        padding: 30px;
    }
    #calendar-section h2, #contact h2 {
        font-size: 2.4em;
        margin-bottom: 30px;
    }
    .trainer-filter-container { gap: 10px; }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .contact-form, .admin-form-container form {
        padding: 30px;
    }
    .contact-form button[type="submit"], .admin-form-container input[type="submit"] {
        font-size: 1.1em;
        padding: 14px 20px;
    }
}

@media (max-width: 600px) {
    .time-slot-btn {
        min-width: 65px;
        font-size: 14px;
        padding: 10px 6px;
    }
}


@media (max-width: 520px) {
    .navbar .container-fluid { padding: 0; }
    .navbar-brand { margin-left: 15px; }
    .navbar-toggler { margin-right: 15px; }

    #calendar-section {
        margin: 30px 15px;
        padding: 25px 20px;
    }
    #calendar-section h2 { font-size: 2em; }
    .trainer-filter-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    #trainer-filter {
        width: 100%;
        max-width: 320px;
        min-width: unset;
        text-align: center;
        padding: 12px 40px 12px 15px;
        background-position: right 15px center;
    }
}

@media (max-width: 480px) {
    #contact {
        margin: 30px 15px;
        padding: 25px 20px;
    }
    #contact h2 { font-size: 2em; }

    .contact-form, .admin-form-container form {
        padding: 0;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
    form input[type="text"], form input[type="email"], form input[type="tel"],
    form input[type="password"], form textarea {
        margin-bottom: 20px;
        padding: 12px;
    }
    .contact-form button[type="submit"], .admin-form-container input[type="submit"] {
        font-size: 1em;
    }
}