       * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Montserrat', sans-serif; background: #faf9f5; min-height: 100vh; padding: 20px; color: #333; }
		@media (max-width: 500px) {
			body {padding: 20px 0 20px 0;}
		}
        .container { max-width: 1400px; margin: 0 auto; }
        header { text-align: center; color: #062456; margin-bottom: 30px; }
        
        .nav-tabs { display: flex; gap: 4px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap; }
        .tab-btn { font-family: 'Montserrat'; padding: 12px 20px; background: #e3dacc; color: #141413; border: 1px solid rgba(255,255,255,0.4); border-radius: 10px; cursor: pointer; font-weight: 600; transition: 0.3s; }
        .tab-btn.active { background: white; color: #141413; }

        .page { display: none; }
        .page.active { display: block;margin: 0 10px; }

        @media (min-width: 769px) {
            .booking-layout { display: grid; grid-template-columns: 360px 1fr; gap: 25px; align-items: start; }
        }
        @media (max-width: 768px) {
            .booking-layout { display: flex; flex-direction: column; gap: 20px; }
            .court-grid-container { overflow-x: auto; }
        }
        .card { background: white; border-radius: 10px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
        
        .settings-box { background: #faf9f5; border: 1px solid #bae6fd; padding: 15px; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
        .settings-box input { width: 60px; text-align: center; padding: 5px; font-weight: bold; font-size: 16px; }

        .calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: #f1f5f9; padding: 10px; border-radius: 10px; }
        .month-label { font-weight: 700; color: #1e293b; }
        .calendar-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 20px; }
        .cal-day { padding: 10px 5px; text-align: center; border: 1px solid #f1f5f9; cursor: pointer; border-radius: 8px; font-size: 0.85rem; background: #dcfce7; color: #166534; font-weight: 600; }
        .cal-day.active { background: #faf9f5; color: #141413; border-color: #141413; }
        .cal-day.disabled { background: #f8fafc; color: #cbd5e1; cursor: not-allowed; border: none; font-weight: 400; }

        .form-group { margin-bottom: 12px; }
        label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.85rem; }
        input, select { width: 100%; padding: 10px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: inherit; }
        .selection-box { background: #faf9f5; border: 1px dashed #141413; padding: 10px; border-radius: 8px; color: #141413; font-size: 0.9rem; min-height: 40px; margin-bottom: 30px; }

        .court-grid-container {
            overflow-x: auto;
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        .court-grid { display: grid; gap: 4px; min-width: 600px; }
        .grid-header { background: #f0eee6; color: #141413; padding: 15px 5px; text-align: center; font-weight: bold; border-radius: 8px; font-size: 0.8rem; }
        .time-col { font-weight: 700; background: #fcfcfc; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; }
        .slot { height: 50px; border: 1px solid #f1f5f9; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.7rem; background: #dcfce7; padding: 4px; }
        .slot.selected { background: #6a9bcc !important; color: white !important; }
        .slot.booked { background: #fee2e2; color: #991b1b; cursor: not-allowed; }
        .slot.unavailable { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; border: 1px dashed #cbd5e1; }
        .slot.available-slot-card { height:auto; min-height:88px; align-items:flex-start; justify-content:center; gap:5px; text-align:left; padding:12px; }
        .available-slot-card .slot-class-name { color:#111827; font-size:1rem; font-weight:800; line-height:1.3; }
        .available-slot-card .slot-time-line { color:#166534; font-size:0.82rem; font-weight:800; line-height:1.5; }
        .available-slot-card .slot-free-line { color:#166534; font-size:0.82rem; font-weight:800; }
        .available-slot-card .slot-trainer-line { color:#111827; font-size:0.78rem; font-weight:700; }
        .available-slot-card small { color:#64748b; font-size:0.75rem; }

        .btn { width: 100%; padding: 15px; background: #141413; color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-family:Montserrat; cursor: pointer; font-weight: 700; transition: 0.3s; }
        .btn:hover { background: #e3dacc; }
        
        @media (max-width: 1100px) {
            .booking-layout { grid-template-columns: 1fr; }
        }
		
		input[type="text"],
		input[type="email"],
		input[type="tel"],
		input[type="number"],
		select,
		textarea {
			font-size: 16px !important;
		}	

        .modal-overlay {
            display: none; 
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 2s ease;
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 24px;
            text-align: center;
            max-width: 450px;
            width: 90%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(-20px);
            transition: transform 2.8s ease, opacity 0.8s ease;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .success-icon {
            width: 70px;
            height: 70px;
            background: #22c55e;
            color: white;
            font-size: 40px;
            line-height: 70px;
            border-radius: 50%;
            margin: 0 auto 20px;
            box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.4);
        }

        .modal-content h2 {
            color: #1e293b;
            margin-bottom: 10px;
        }

        .modal-content p {
            color: #64748b;
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .modal-button {
            margin-top: 30px;
            padding: 14px 40px;
            background: #141413;
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.2s;
        }

        .modal-button:hover {
            background: #e3dacc;
        }
        
        .config-section {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .config-section h3 {
            color: #1e293b;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #141413;
        }

        .availability-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 8px;
            margin-top: 15px;
        }

        .availability-item {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.85rem;
        }

        .availability-item.available {
            background: #dcfce7;
            border-color: #22c55e;
            color: #166534;
        }

        .availability-item.unavailable {
            background: #fee2e2;
            border-color: #ef4444;
            color: #991b1b;
        }

        .availability-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .class-availability-section {
            margin-bottom: 25px;
            padding: 15px;
            background: white;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
        }

        .class-availability-section h4 {
            color: #141413;
            margin-bottom: 12px;
            font-size: 1rem;
        }

        .toggle-all-btn {
            padding: 8px 16px;
            background: #64748b;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: 10px;
            transition: background 0.2s;
        }

        .toggle-all-btn:hover {
            background: #475569;
        }

/* TERMEK KÁRTYÁK */
#roomNamesEditor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.room-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 500px) {
    #roomNamesEditor {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .room-card {
        grid-template-columns: 1fr;
        /*width: 260px;*/
    }
}
		
/* KÁRTYÁK ELRENDEZÉSE */
#groupClassNamesEditor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(670px, 1fr));
    gap: 16px;
}

/* EGY KÁRTYA */
.group-class-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 500px alatt: kártyán belüli elemek egymás alá */
@media (max-width: 500px) {
	#groupClassNamesEditor {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));	
    }
    .group-class-card {
        grid-template-columns: 1fr;

	}
}

/* EDZŐ KÁRTYÁK ELRENDEZÉSE */
#trainerNamesEditor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
}

/* EGY EDZŐ KÁRTYA */
.trainer-card {
    display: grid;
    grid-template-columns: 60px 1fr 150px;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 500px alatt: label + input egymás alá */
@media (max-width: 500px) {
	#trainerNamesEditor {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}		
    .trainer-card {
        grid-template-columns: 1fr;
		/*width:260px;*/
    }
}

 #calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    align-items: center;
}

.cal-day-header {
    /* Montserrat fontot használva még jobban néz ki */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}  

.floating-scroll-btn {
    position: fixed;
    bottom: 25px;
	right: 25px; /* Bal sarok */
    z-index: 1000;
    
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #141413;
    color: white;
    border: none;
    border-radius: 12px; /* Kicsit szögletesebb, modern forma */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    
    /* Animált megjelenés */
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(100px); /* Balról úszik be */
}

.floating-scroll-btn.visible {
    opacity: 1;
    transform: translateX(0);
}

.floating-scroll-btn:hover {
    background-color: #075985;
    transform: scale(1.1);
}

/* Mobilon csak a nyíl marad */
@media (max-width: 480px) {
    .floating-scroll-btn .text { display: none; }
    .floating-scroll-btn { padding: 12px; bottom: 15px; right: 15px; }
}
