/* 🌞 Alap világos mód */
body {
    background-color: #F7E7CE;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 70px; /* fixált navbar miatt */
}

/* 🌚 Sötét mód */
.dark-mode {
    background-color: #121212;
    color: #000000;
}

    .dark-mode .text-muted {
        color: #ddd !important;
    }

    .dark-mode .navbar {
        background-color: #333333 !important;
    }

        .dark-mode .navbar .nav-link,
        .dark-mode .navbar-brand {
            color: #ffffff !important;
        }

    .dark-mode .intro-box {
        background-color: #f5efe6 !important;
        color: #000000 !important;
        border-color: #c9bfae !important;
    }

    .dark-mode .closing-box {
        background-color: #dbeafe !important;
        color: #000000 !important;
        border-left: 5px solid #0d6efd !important;
    }

    .dark-mode .alert-info {
        background-color: #f5efe6 !important;
        color: #000000 !important;
        border-color: #0d6efd !important;
    }

.toggle-dark-mode {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.navbar-toggler-icon {
    background-color: white;
    border-radius: 5px;
}

.calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    overflow-x: visible !important;
}

#adminButtonWrapper {
    display: none;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.intro-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 55%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .intro-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .intro-box.centered {
        width: 65%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .intro-box.right {
        margin-left: auto;
        margin-right: 0;
    }

    .intro-box.left {
        margin-left: 0;
        margin-right: auto;
    }

.highlight {
    font-weight: 600;
    color: #c59d5f;
}

.closing-box {
    background-color: #e7f3ff;
    border-left: 5px solid #0d6efd;
    border-radius: 12px;
    padding: 20px 25px;
    font-size: 1.1rem;
    width: 75%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .closing-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

@media (max-width: 768px) {
    .intro-box,
    .closing-box {
        width: 100% !important;
        margin: 0 auto 20px auto;
        padding: 20px;
        font-size: 1rem;
    }

        .intro-box p {
            text-align: left !important;
        }

    .color-label-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .color-label-row {
        white-space: normal;
        flex-wrap: wrap;
    }
}

body:not(.dark-mode) .fc {
    background-color: #eee5d5 !important;
}

body:not(.dark-mode) .fc-day-today {
    background-color: #f8eec6 !important;
}

body:not(.dark-mode) .fc .fc-scrollgrid,
body:not(.dark-mode) .fc .fc-timegrid-slot {
    border-color: #ccc !important;
}

.dark-mode .fc {
    background-color: #1e1e1e !important;
}

.dark-mode .fc-day-today {
    background-color: #2e2e2e !important;
}

.dark-mode .fc .fc-scrollgrid,
.dark-mode .fc .fc-col-header-cell-cushion,
.dark-mode .fc .fc-timegrid-slot {
    border-color: #444 !important;
}

.dark-mode .fc .fc-col-header-cell-cushion,
.dark-mode .fc .fc-timegrid-slot-label-cushion,
.dark-mode .fc .fc-event-title,
.dark-mode .fc .fc-daygrid-day-number,
.dark-mode .fc .fc-toolbar-title {
    color: #ffffff !important;
}

.dark-mode .container {
    background-color: #1f1f1f !important;
    border-radius: 8px;
    padding: 20px;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

    .dark-mode .container h1 {
        color: #ffffff !important;
    }

.dark-mode h2 {
    color: #000000 !important;
}

.dark-mode .heading-admin {
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .calendar-info-box {
        width: 80% !important;
        max-width: 900px;
    }

    .color-label-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .color-label-row {
        white-space: normal;
        flex-wrap: wrap;
    }
}

.color-label-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 10px;
}

.color-label-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.color-box {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 4px;
}

    .color-box.unavailable {
        background-color: gray;
    }

    .color-box.tentative {
        background-color: darkred;
    }

.calendar-side-box {
    margin-top: 30px;
    text-align: center;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.fejlesztesi-info {
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: #444;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .fejlesztesi-info {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

@media (prefers-color-scheme: dark) {
    body:not(.dark-mode) .fejlesztesi-info {
        background-color: rgba(255, 255, 255, 0.05);
        color: #ddd;
    }
}

.record-warning {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.05rem;
    animation: blink 1.5s ease-in-out infinite;
    padding-right: 1rem;
    text-align: right;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.elseje-kiemeles {
    background-color: #4e5e55;
    border-top: 2px solid #ffcc00;
}

.dark-mode .fc .fc-col-header-cell {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #333 !important;
}

.text-decoration-line-through td {
    text-decoration: line-through;
}

.torolt-sor td {
    color: #b30000 !important;
    font-weight: bold;
    text-decoration: line-through;
}

select.form-select.is-invalid {
    background-color: #f8d7da;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 1.5rem auto !important;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 10px;
        padding-bottom: 70px;
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        background-color: #f5efe6;
        z-index: 10;
        padding: 10px;
        border-top: 1px solid #ccc;
    }

        .modal-footer button {
            width: 100%;
            opacity: 1 !important;
            visibility: visible !important;
            display: block !important;
        }
}

.fc-timegrid-slot[data-time^="17:"]::before,
.fc-timegrid-slot[data-time^="18:"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100vw !important;
    background-color: #e0e0e0;
    z-index: 0;
}

.fc-timegrid-slot {
    position: relative;
    z-index: 1;
}

.fc .fc-timegrid-body table {
    table-layout: fixed !important;
    width: 100% !important;
}

.fc .fc-timegrid-slot {
    border-bottom: 1px solid #ccc !important;
}

/* ✅ Betűtípusok */
@font-face {
    font-family: 'Parisienne';
    src: url('../fontss/Parisienne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond SemiBold';
    src: url('../fontss/static/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.navbar-brand {
    font-family: 'Parisienne', cursive;
    font-size: 1.2rem;
    font-weight: normal;
    text-shadow: 0.3px 0.3px 0 currentColor;
    letter-spacing: 0.05rem;
    line-height: 1.2;
}

    .navbar-brand i {
        font-size: 1.6rem;
    }

.navbar-nav .nav-link {
    font-family: 'Cormorant Garamond SemiBold', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #8B0000;
        background-color: rgba(0, 0, 0, 0.1);
    }
        
/* Ebéd idő 12:00 - 13:00 minden nap */
.fc-timegrid-slot[data-time="12:00:00"],
.fc-timegrid-slot[data-time="12:30:00"] {
    background-color: rgba(100, 149, 237, 0.4);
    pointer-events: none;
}

/* Keddi 13:00–14:00 blokkolt sáv – ugyanaz a szín, mint az ebédidőnél */
.fc .fc-bg-event.fc-keddi-ebed {
    background-color: rgba(100, 149, 237, 0.4) !important;
    opacity: 1 !important; /* ne halványítsa el a FullCalendar */
    border: none !important;
}

#adminButtonWrapper {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-top: 1px solid #ccc;
    box-shadow: 0 -3px 6px rgba(0,0,0,0.15);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    #adminButtonWrapper {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin-top: 20px;
    }
}

.highlight-group {
    color: #A9A9A9 !important;
    background-color: #FFF3CD !important;
    font-weight: bold !important;
}

.dark-mode .flag-icon {
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    background-color: #fce2d5;
    padding: 3px;
    border-radius: 6px;
}

.flag-icon {
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border-radius: 4px;
}

.flag-large {
    width: 70px;
    height: auto;
}

.flag-small {
    width: 40px;
    height: auto;
}

.alert-info.custom {
    padding: 12px !important;
    border-radius: 6px !important;
    border-left: 4px solid #2196F3 !important;
    color: #0c0c0c !important;
    background-color: #e7f3fe !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
    font-family: inherit !important;
}

.dark-mode .alert-info.custom {
    background-color: #2F4F4F !important;
    border-left: 4px solid #64b5f6 !important;
    color: #e0e0e0 !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    padding: 12px !important;
    border-radius: 6px !important;
}

body:not(.dark-mode) .elseje-kiemeles {
    background-color: #fdf6e8 !important;
    border-top: 2px solid #e6b800 !important;
}

.dark-mode .elseje-kiemeles {
    background-color: #4e5e55 !important;
    border-top: 2px solid #ffcc00 !important;
}

.pricing-note {
    text-align: justify;
    line-height: 1.6;
    font-size: 1rem;
}

/* 🌐 Index logó fix mobilra */
.index-page picture img {
    max-width: 80vw; /* ne lógjon ki a képernyőről */
    max-height: 70vh; /* mobilon ne takarja ki a teljes képernyőt */
    height: auto;
    width: auto;
}

/* Mobilra kicsit szűkebbre is állíthatjuk */
@media (max-width: 768px) {
    .index-page picture img {
        max-width: 90vw;
        max-height: 60vh;
    }

    .index-page p {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}
