@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 3000;
        background: #e3eefa;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    body {
        padding-top: 80px !important;
    }
}
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 2000;
        background: #e3eefa;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
}
@media (max-width: 768px) {
    .mobile-nav a {
        display: flex;
        align-items: center;
        gap: 0.9em;
        font-size: 1.18rem;
        font-weight: 600;
        padding: 1.1rem 2.1rem 1.1rem 1.3rem;
        border-radius: 12px;
        color: #2a5dba;
        background: #fafdff;
        margin: 0 0.7rem;
        box-shadow: 0 2px 8px rgba(42,93,186,0.04);
        transition: background 0.18s, color 0.18s, box-shadow 0.18s;
        text-decoration: none;
    }
    .mobile-nav a:hover {
        background: #2a5dba;
        color: #fff;
        box-shadow: 0 4px 16px rgba(42,93,186,0.13);
    }
}
/* General responsive overhaul for mobile devices */
@media (max-width: 768px) {
    header, nav, main, section, footer {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
        min-height: unset;
        gap: 0.5rem;
    }
    .logo {
        height: 48px;
        max-width: 120px;
        margin-bottom: 0.3rem;
        margin-left: 0;
    }
    nav {
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        background: #e3eefa;
        position: relative;
        box-shadow: none;
        padding: 0.5rem 0;
    }
    nav a {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #c3d3ee;
    }
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        width: 38px;
        height: 38px;
        cursor: pointer;
        margin-left: auto;
        margin-right: 0;
        align-self: center;
        order: 2;
        position: absolute;
        right: 20px;
        top: 26px;
        z-index: 20;
    }
    .hamburger span {
        height: 4px;
        width: 28px;
        background: #2a5dba;
        margin: 4px 0;
        border-radius: 2px;
        transition: 0.3s;
    }
    main {
        max-width: 99vw;
        margin: 0.5rem auto;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem 0.3rem;
    }
    section {
        margin-bottom: 1.2rem;
    }
    form, .form {
        gap: 0.7rem;
        padding: 0.5rem 0.2rem;
    }
    input, select, button, textarea {
        font-size: 1rem;
        padding: 0.7rem 0.7rem;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    button {
        min-width: 90px;
        min-height: 38px;
        font-size: 1.05rem;
    }
    #calendar {
        margin-top: 1rem;
        min-height: 180px;
        padding: 0.5rem;
        font-size: 0.98rem;
    }
    .modal, #noteModal, #bookingModal {
        max-width: 98vw !important;
        width: 98vw !important;
        left: 50% !important;
        top: 16px !important;
        transform: translateX(-50%) !important;
        border-radius: 16px !important;
        padding: 1.2rem 0.5rem !important;
        font-size: 1.05rem !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 32px) !important;
    }
}

/* Make all images and videos scale properly on mobile without overflowing */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Покажи мобилните бутони само на мобилно, скрий на десктоп */
.mobile-login { display: none; }
.mobile-login-btn {
    display: block;
    width: 100%;
    background: none;
    color: #2a5dba;
    margin: 0;
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    text-align: left;
    font-weight: 500;
    font-size: 1.08rem;
    text-decoration: none;
    border-bottom: 1px solid #c3d3ee;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}
.mobile-login-btn:hover {
    background: #2a5dba;
    color: #fff;
}
.desktop-login { display: block; }

@media (max-width: 700px) {
    .mobile-login { display: flex !important; flex-direction: column; gap: 0.2rem; width: 100%; margin-top: 0.5rem; }
    .desktop-login { display: none !important; }
}
.dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}
/* Remove gap between dropdown button and menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* was 110% */
    right: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(42,93,186,0.13);
    border-radius: 8px;
    z-index: 2001;
    flex-direction: column;
    padding: 0.3rem 0;
}


.dropdown-content a {
    color: #2a5dba;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    display: block;
    border-radius: 0;
    background: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.18s, color 0.18s;
}
.dropdown-content a:hover {
    background: #e3eefa;
    color: #1a3e7a;
}
/* Keep dropdown open when hovering or focusing on dropdown or its content */
.dropdown:focus .dropdown-content,
.dropdown:hover .dropdown-content,
.dropdown-content:hover,
.dropdown-content:focus {
    display: flex;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f8fa;
    color: #222;
    margin: 0;
    padding: 0;
    text-align: center;
}
header {
    background: #e3eefa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0.2rem 1rem 0.2rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    min-height: 56px;
    position: relative;
    gap: 0;
    height:80px;
}
.logo {
    height: 60px;
    max-width: 320px;
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    flex-shrink: 0;
}
nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: max-height 0.3s;
}
nav a {
    color: #2a5dba;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    padding: 0.38rem 1.1rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    margin: 0;
    display: flex;
    align-items: center;
}

.login-btn {
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2a5dba 60%, #3b7be0 100%);
    box-shadow: 0 2px 8px rgba(42,93,186,0.10);
    margin-left: 0.7rem;
    border: none;
    outline: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s, border 0.2s;
    display: flex;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    min-width: 110px;
    min-height: 40px;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(42,93,186,0.13);
}
.login-btn:hover {
    background: linear-gradient(90deg, #1a3e7a 60%, #2a5dba 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(42,93,186,0.18);
    transform: translateY(-2px) scale(1.04);
}

nav a:hover {
    color: #fff;
    background: #2a5dba;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    margin-left: auto;
    z-index: 20;
    flex-shrink: 0;
}
.hamburger span {
    height: 4px;
    width: 28px;
    background: #2a5dba;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
@media (max-width: 700px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 0.1rem 0.5rem 0.1rem 0.5rem;
        min-height: 54px;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0;
    }
    .logo {
        height: 80px;
        max-width: 140px;
        margin-bottom: 0;
        margin-left: 0;
        display: block;
        align-self: center;
        flex-shrink: 0;
    }
    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 0;
        align-self: center;
        order: 2;
        flex-shrink: 0;
                position: absolute;
        right: 20px;
        top: 26px;
    }
    header > a {
        order: 1;
        display: flex;
        align-items: center;
    }
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #e3eefa;
        flex-direction: column;
    }
    /* Ensure logo stays left, hamburger right */
    header > a {
        order: 1;
    }
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #e3eefa;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        width: 100vw;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        z-index: 10;
        transition: max-height 0.3s;
    }
    nav.open {
        max-height: 100vh;
        padding-bottom: 0.5rem;
        overflow: visible;
    }
    nav a {
        width: 100%;
        padding: 0.8rem 1.2rem;
        font-size: 1.08rem;
        border-radius: 0;
        border-bottom: 1px solid #c3d3ee;
    }
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.5rem 0.2rem 0.5rem;
        min-height: unset;
    }
    .logo {
        height: 80px;
        max-width: 120px;
        margin-bottom: 0.3rem;
        margin-left: 0;
    }
    nav {
        width: 100%;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    nav a {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }
}
main {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(42,93,186,0.07);
    padding: 2.5rem 2rem;
    text-align: center;
}

@media (max-width: 700px) {
    main {
        max-width: 99vw;
        margin: 0.5rem auto;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem 0.3rem;
    }
    section {
        margin-bottom: 1.2rem;
    }
}
section {
    margin-bottom: 2.5rem;
}
h2 {
    color: #2a5dba;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
form input,
form select,
form button {
    display: block;
    margin: 0 auto;
    text-align: center;
}
input, select, button {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1px solid #c3d3ee;
    outline: none;
    background: #f6f8fa;
    transition: border 0.2s;
}
input:focus, select:focus {
    border: 1.5px solid #2a5dba;
}
button {
    background: #2a5dba;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
button:hover {
    background: #1a3e7a;
}
#calendar {
    margin-top: 2rem;
    min-height: 200px;
    background: #f6f8fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(42,93,186,0.04);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    /* ...existing mobile styles... */
    .mobile-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #e3eefa;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 100;
        box-shadow: 0 4px 16px rgba(42,93,186,0.08);
        border-radius: 0 0 12px 12px;
        padding: 0.5rem 0 0.7rem 0;
    }
    nav.open .mobile-nav {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        z-index: 9999;
        background: #e3eefa;
        box-shadow: 0 4px 16px rgba(42,93,186,0.08);
        border-radius: 0 0 12px 12px;
        padding: 0.5rem 0 0.7rem 0;
    }
}
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}
.fc-timegrid-event-harness-inset .fc-timegrid-event, .fc-timegrid-event.fc-event-mirror, .fc-timegrid-more-link {
    border-radius: 5px !important; 
}

#calendar .fc-event.calendar-note-event, #calendar .fc-event.calendar-note-event .fc-event-main {
    border-radius: 5px !important;
}