/* Version: 5.5 - Final Polish */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --mc-teal: #2293B0;
    --mc-navy: #1b4d72;
    --mc-lime: #c9ca4d;
    --mc-gold: var(--mc-teal);
    /* Alias for compatibility */
    --mc-gold-dark: var(--mc-navy);
    --mc-gold-light: #70d1ea;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --premium-shadow: 0 10px 30px -10px rgba(34, 147, 176, 0.2);
}

.text-mc-gold {
    color: var(--mc-teal);
}

.text-mc-teal {
    color: var(--mc-teal);
}

.text-mc-navy {
    color: var(--mc-navy);
}

.text-mc-lime {
    color: var(--mc-lime);
}

.bg-mc-gold {
    background-color: var(--mc-teal);
    color: #ffffff;
}

.bg-mc-gold:hover {
    background-color: var(--mc-navy);
}

/* --- LOGIN VIEW --- */
#login-view {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

#login-view::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(34, 147, 176, 0.05) 0%, transparent 70%);
    z-index: 0;
}

#login-view .bg-white {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.modal-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.modal-input:focus {
    background-color: #fff;
    border-color: var(--mc-teal);
    box-shadow: 0 0 0 4px rgba(34, 147, 176, 0.1);
    transform: translateY(-1px);
}

.modal-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* --- PREMIUM FORM SECTIONS --- */
.modal-section {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.modal-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

/* --- SPECIAL INPUT STYLES --- */
.input-paid-total {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #16a34a !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
}

.input-paid-total:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
}

.input-group-compact {
    display: flex;
    gap: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: all 0.2s;
}

.input-group-compact:focus-within {
    border-color: var(--mc-teal);
    box-shadow: 0 0 0 4px rgba(34, 147, 176, 0.1);
}

.input-group-compact .modal-input {
    border: none;
    border-radius: 0;
    background-color: transparent !important;
}

.input-group-compact .input-addon {
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    border-left: 1px solid #e5e7eb;
}

.input-group-compact select.modal-input {
    width: auto !important;
    padding-right: 2rem;
    background-position: right 0.5rem center;
    border-left: 1px solid #e2e8f0;
}

.bg-mc-teal {
    background-color: var(--mc-teal);
    color: #ffffff;
}

.bg-mc-teal:hover {
    background-color: #1a7ca1;
}

.bg-mc-navy {
    background-color: var(--mc-navy);
    color: white;
}

.border-mc-teal {
    border-color: var(--mc-teal);
}

.border-mc-navy {
    border-color: var(--mc-navy);
}

.focus\:ring-mc-teal:focus {
    box-shadow: 0 0 0 2px rgba(34, 147, 176, 0.35);
}

.focus\:border-mc-teal:focus {
    border-color: var(--mc-teal);
}

.logo-pulse {
    animation: logoPulse 2s infinite ease-in-out;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--mc-teal));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(34, 147, 176, 0.4));
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

/* --- HEADER --- */
#user-info-header .user-name-badge {
    background-color: #22c55e;
    /* green-500 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

#user-info-header .logout-btn {
    background-color: #ef4444;
    /* red-500 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

#user-info-header .logout-btn:hover {
    background-color: #dc2626;
    /* red-600 */
}

/* --- HEADER DROPDOWN --- */
.header-dropdown {
    position: relative;
}

.header-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.header-icon-btn:hover {
    background-color: #f3f4f6;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    transition: background-color 0.2s;
}

.profile-btn:hover {
    background-color: #f3f4f6;
}

.user-initials {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--mc-teal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.profile-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 0.625rem;
    color: #6b7280;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    display: none;
    z-index: 50;
}

.header-dropdown-menu.active {
    display: block;
}

.header-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s;
}

.header-dropdown-item:hover {
    background-color: #f3f4f6;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 9999px;
    background-color: #ef4444;
    border: 2px solid #fff;
}

.pulse-badge {
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notif-count-badge {
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.notif-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-item:hover {
    background-color: #f9fafb;
}

.notif-item .notif-title {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.notif-item .notif-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

.max-h-80 {
    max-height: 20rem;
}

/* --- NAV TILE MENU --- */
.nav-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.15rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    transition: all 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.nav-tile i {
    font-size: 1.5rem;
    color: var(--mc-teal);
    transition: all 0.2s ease-in-out;
}

.nav-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    color: var(--mc-navy);
}

.nav-tile.active {
    background: linear-gradient(135deg, var(--mc-teal), var(--mc-navy)) !important;
    color: white !important;
    border-color: var(--mc-navy) !important;
    box-shadow: 0 10px 20px -5px rgba(34, 147, 176, 0.4) !important;
}

.nav-tile.active i {
    color: white !important;
}

.nav-alert-bubbles {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.nav-alert-bubble {
    position: relative;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    border-radius: 9999px;
    padding: 0.4rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 44px;
}

.nav-alert-bubble i {
    color: var(--mc-teal);
}

.nav-alert-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    line-height: 1;
}

.nav-alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #facc15;
    font-size: 0.8rem;
}

.nav-alert-warning .nav-alert-badge {
    background-color: #f59e0b;
}

.nav-alert-dropdown {
    position: relative;
    width: 100%;
}

.nav-alert-dropdown__panel {
    position: absolute;
    right: 0;
    top: 0.25rem;
    z-index: 30;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    max-width: 360px;
    padding: 0.75rem;
}

.nav-alert-dropdown__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.nav-alert-dropdown__list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-alert-dropdown__item {
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.nav-alert-dropdown__item-title {
    font-weight: 700;
    color: #111827;
}

.nav-alert-dropdown__item-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.nav-alert-dropdown__form {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.nav-alert-dropdown__textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.nav-alert-dropdown__submit {
    margin-top: 0.5rem;
    width: 100%;
    background-color: var(--mc-teal);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

/* --- WEEKLY VIEW --- */
.week-nav-btn {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.week-nav-btn:hover {
    background-color: #f9fafb;
    border-color: var(--mc-teal);
    color: var(--mc-teal);
}

/* --- DASHBOARD TILES / CARDS --- */
.day-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-card.is-today {
    border-color: var(--mc-teal);
    box-shadow: 0 10px 25px -10px rgba(34, 147, 176, 0.3);
    z-index: 10;
}

.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.day-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.day-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: #111827;
    line-height: 0.9;
}

.schedule-info {
    font-size: 0.875rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #f3f4f6;
}

.schedule-info .shift-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.own-shift {
    background-color: #fefce8 !important;
    color: #854d0e !important;
    border: 1px solid #fde047;
}

.booking-item {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.booking-item:hover {
    border-color: #e5e7eb;
    background-color: #fafafa;
}

.booking-item.completed {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.booking-item.cancelled {
    background-color: #fef2f2;
    border-color: #fecaca;
    opacity: 0.8;
}

.booking-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1f2937;
    margin-top: 0.25rem;
}

.booking-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mc-teal);
    background-color: rgba(34, 147, 176, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.5rem;
    column-gap: 1rem;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.booking-details-grid span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.booking-details-grid strong {
    color: #111827;
    font-weight: 700;
}

.booking-action-btn {
    width: 100%;
    background-color: var(--mc-teal);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 0.75rem;
    padding: 0.6rem;
    margin-top: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(34, 147, 176, 0.2);
}

.booking-action-btn:hover {
    background-color: #1a7ca1;
    transform: translateY(-1px);
}

.booking-arrived-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 0.75rem;
    padding: 0.6rem;
    margin-top: 1rem;
    border: 1px solid #bbf7d0;
}

.booking-cancelled-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: #fef2f2;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 0.75rem;
    padding: 0.6rem;
    margin-top: 1rem;
    border: 1px solid #fecaca;
}

.add-group-btn {
    width: 100%;
    background-color: #f8fafc;
    border: 2px dashed #e2e8f0;
    color: #64748b;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.add-group-btn:hover {
    background-color: #f1f5f9;
    border-color: var(--mc-teal);
    color: var(--mc-teal);
}

.add-group-btn i {
    font-size: 1.25rem;
}

/* --- BOOKINGS VIEW TILES --- */
.booking-day-column {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-day-column.is-today-column {
    border-color: var(--mc-teal);
    box-shadow: 0 10px 25px -10px rgba(34, 147, 176, 0.2);
}

.booking-day-header {
    background: #f9fafb;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #f3f4f6;
    transition: all 0.3s;
}

.is-today-column .booking-day-header {
    background-color: rgba(188, 166, 115, 0.05);
    border-bottom-color: var(--mc-teal);
}

.booking-day-header .weekday {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.1em;
}

.booking-day-header .day-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #111827;
}

.is-today-column .booking-day-header .day-num {
    color: var(--mc-teal);
}

.booking-item-container {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- DASHBOARD INFO PANELS --- */
.info-panel {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 700;
}

.panel-header i {
    color: var(--mc-teal);
}

.panel-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.status-dot.unread {
    background-color: #ef4444;
}

.status-dot.read {
    background-color: #22c55e;
}

.read-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    background-color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.read-btn:hover {
    background-color: #d1d5db;
}

/* --- Játékok View --- */
.game-tile,
.game-tile-placeholder {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
}

.game-tile {
    color: inherit;
    text-decoration: none;
}

.game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.game-tile i {
    font-size: 3rem;
    color: var(--mc-teal);
}

.game-tile-placeholder i {
    font-size: 3rem;
    color: #9ca3af;
}

.game-tile-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
}

.game-tile-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Start from top to allow scrolling */
    padding: 1.5rem 1rem;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    position: relative;
    margin: auto;
    /* Centering helper for flex parent */
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mc-teal);
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.modal-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-input:focus {
    outline: none;
    border-color: var(--mc-teal);
    box-shadow: 0 0 0 2px rgba(188, 166, 115, 0.4);
}

.modal-submit-btn {
    width: 100%;
    background-color: #22c55e;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.modal-submit-btn:hover {
    background-color: #16a34a;
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    align-items: center;
}

.info-grid>dt {
    font-weight: 600;
    color: #6b7280;
}

/* --- Schedule View --- */
.schedule-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.month-nav-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-mode-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
}

.schedule-mode-tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.schedule-mode-btn {
    border: none;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: transparent;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.schedule-mode-btn.active {
    background-color: #111827;
    color: #fff;
}

.schedule-mode-btn:not(.active):hover {
    background-color: #f3f4f6;
    color: #111827;
}

.schedule-flash {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.schedule-flash--success {
    background-color: #dcfce7;
    color: #166534;
}

.schedule-flash--info {
    background-color: #e0f2fe;
    color: #02416b;
}

.schedule-flash--warning {
    background-color: #fef3c7;
    color: #92400e;
}

.schedule-flash--error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.planned-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.planned-summary-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.planned-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.planned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.planned-section {
    margin-bottom: 0;
}

.planned-month-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.planned-month-btn {
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.planned-month-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.planned-month-btn:not(:disabled):hover {
    background-color: #f3f4f6;
    color: var(--mc-teal);
}

.planned-day-card {
    background-color: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.planned-day-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.planned-day-card__weekday {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6b7280;
}

.planned-day-card__number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.planned-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #374151;
}

.planned-status-open {
    background-color: #eef2ff;
    color: #3730a3;
}

.planned-status-needCashier {
    background-color: #fef3c7;
    color: #b45309;
}

.planned-status-closed {
    background-color: #fee2e2;
    color: #b91c1c;
}

.planned-day-alert {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.planned-day-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.planned-shift-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.planned-shift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.planned-shift-item--own {
    border-color: #34d399;
    background-color: #ecfdf5;
}

.planned-shift-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

.planned-shift-time {
    font-size: 0.8rem;
    color: #6b7280;
}

.planned-remove-shift-btn {
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.planned-shift-empty {
    font-size: 0.85rem;
    color: #6b7280;
}

.planned-day-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.planned-add-shift-btn {
    border: 1px dashed #93c5fd;
    border-radius: 0.75rem;
    padding: 0.5rem;
    font-weight: 600;
    color: #1d4ed8;
    background-color: #eff6ff;
    cursor: pointer;
}

.planned-add-shift-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.planned-shift-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.planned-shift-form.hidden {
    display: none;
}

.planned-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.planned-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.planned-input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.4rem 0.5rem;
}

.planned-shift-submit {
    grid-column: span 2;
    background-color: #22c55e;
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

/* MODIFIED Schedule View with Colors */
.full-schedule-body-colored {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #1f2937;
    min-height: 100px;
}

.worker-info-colored .worker-name {
    font-weight: 700;
}

.worker-info-colored .worker-time {
    font-size: 0.875rem;
    font-weight: 500;
}

.worker-info-colored .worker-phone {
    font-size: 0.75rem;
    opacity: 0.8;
}

.no-schedule-msg-colored {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
    padding: 1rem 0;
    font-weight: 600;
}


/* MODIFIED Booking View */
.booking-day-column {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    min-height: 400px;
}

.is-today-column {
    background-color: #fefce8;
    /* yellow-50 */
    border-color: var(--mc-teal);
    box-shadow: 0 4px 10px rgba(188, 166, 115, 0.2);
}


/* Daily Closing Styles */
#view-closing>div {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.daily-closing-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-closing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
}

.daily-closing-date-input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.cashier-info {
    background-color: var(--mc-teal);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.closing-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mc-teal);
}

.daily-closing-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.input-group {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: var(--mc-teal);
    box-shadow: 0 0 0 3px rgba(188, 166, 115, 0.4);
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tile-header i {
    color: var(--mc-teal);
    font-size: 1.25rem;
}

.tile-header label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.875rem;
}

.tile-body {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.form-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    padding: 0;
}

.form-input:focus {
    outline: none;
}

.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

.unit {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.summary-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px dashed #d1d5db;
}

.summary-label {
    color: #4b5563;
}

.summary-value {
    font-weight: 700;
    color: #1f2937;
}

.discrepancy-ok {
    color: #16a34a;
}

.discrepancy-error {
    color: #dc2626;
}

.submit-button {
    width: 100%;
    background-color: var(--mc-teal);
    color: white;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: var(--mc-navy);
    transform: translateY(-2px);
}

.feedback-message {
    text-align: center;
    margin-top: 1rem;
    height: 1.25rem;
    font-weight: 500;
}

.feedback-message.success {
    color: #16a34a;
}

.feedback-message.error {
    color: #dc2626;
}

.feedback-message.info {
    color: #2563eb;
}

/* Premium Input Styles */
.input-group-premium {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group-premium label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper-premium {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper-premium:focus-within {
    background: #fff;
    border-color: var(--mc-teal);
    box-shadow: 0 0 0 4px rgba(188, 166, 115, 0.1);
    transform: translateY(-2px);
}

.premium-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    outline: none;
}

.premium-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mc-teal);
    margin-left: 0.5rem;
}

/* Nav Tile Enhancement */
.nav-tile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-tile:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.nav-tile.active {
    background: linear-gradient(135deg, var(--mc-teal), var(--mc-navy)) !important;
    color: white !important;
    border-color: var(--mc-navy) !important;
    box-shadow: 0 10px 20px -5px rgba(34, 147, 176, 0.4) !important;
}

.nav-tile.active i {
    color: white !important;
}

/* --- STAGED DAILY TASKS --- */
.task-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: #f3f4f6;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: white;
    border: 3px solid #fecaca;
    /* Alapértelmezett: piros (nincs kész) */
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 4px white;
}

.step-item.completed .step-icon {
    border-color: #86efac;
    /* Kész: zöld */
    background: #f0fdf4;
    color: #22c55e;
}

.step-item.active .step-icon {
    transform: scale(1.1);
    border-color: var(--mc-teal);
    box-shadow: 0 0 15px rgba(34, 147, 176, 0.2);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.step-item.active .step-label {
    color: var(--mc-navy);
}

.step-item.completed .step-label {
    color: #15803d;
}

.task-drawer {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px dashed #e5e7eb;
    animation: drawerFadeIn 0.3s ease-out;
}

.task-drawer.active {
    display: grid;
}

@keyframes drawerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drawer-task-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-task-chip:hover {
    border-color: var(--mc-teal);
    transform: translateX(3px);
}

.drawer-task-chip.completed {
    background: #f0fdf4;
    border-color: #86efac;
}

.drawer-task-chip.completed .title {
    color: #15803d;
    text-decoration: line-through;
}

.drawer-task-chip i {
    font-size: 1.1rem;
    color: #d1d5db;
}

.drawer-task-chip.completed i {
    color: #22c55e;
}

.drawer-task-chip .title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mc-navy);
}

.panel-header {
    background-color: #fafafa;
}

/* --- Knowledge View Accordion --- */
.knowledge-accordion-item {
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.knowledge-accordion-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.knowledge-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    /* Remove default marker */
}

.knowledge-summary::-webkit-details-marker {
    display: none;
    /* Hide for Chrome/Safari */
}

.knowledge-summary::after {
    content: '\\F282';
    /* Bootstrap Icons chevron-down */
    font-family: 'bootstrap-icons';
    font-size: 1rem;
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0;
}

.knowledge-accordion-item[open]>.knowledge-summary {
    border-bottom: 1px solid #e5e7eb;
}

.knowledge-accordion-item[open]>.knowledge-summary::after {
    transform: rotate(180deg);
}

.knowledge-content {
    padding: 0 1rem 1rem 1rem;
}

/* --- DAILY CLOSING DENOMINATIONS --- */
.denom-input-group {
    transition: all 0.2s ease;
}

.denom-input-group:focus-within {
    border-color: var(--mc-teal);
    background-color: white;
}

.denom-input::-webkit-inner-spin-button,
.denom-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.denom-input {
    appearance: textfield;
}

.is-unedited {
    color: #ef4444 !important;
    /* red-500 */
}

/* --- BOOKING STATUS BADGES & DISCREPANCIES --- */
.booking-item.no-show {
    opacity: 0.6;
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.booking-item.no-show .booking-title {
    text-decoration: line-through;
    color: #9ca3af;
}

.booking-no-show-badge {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.text-red-500 {
    color: #ef4444;
}

.text-green-600 {
    color: #16a34a;
}

.font-black {
    font-weight: 900;
}

/* --- MOBILE REFINEMENTS --- */
@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nav-tile {
        padding: 0.6rem 0.25rem;
        border-radius: 1rem;
        gap: 0.25rem;
    }

    .nav-tile i {
        font-size: 1.1rem;
    }

    .nav-tile span {
        font-size: 0.55rem;
        font-weight: 800;
    }

    .modal-content {
        padding: 1.25rem 1rem;
        margin: 0 auto;
        /* Horizontal center, start from top */
        width: calc(100% - 1rem);
        border-radius: 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-section {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .modal-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .day-number {
        font-size: 1.5rem;
    }

    .booking-time {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .booking-title {
        font-size: 0.8rem;
    }
}

/* --- PARTNER SELECTOR & POLISH --- */
#partner-dropdown-panel {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

#partners-grid {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar for Dropdown and Grid */
#partner-dropdown-list::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

#partner-dropdown-list::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#partner-dropdown-list::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#partner-dropdown-list::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}