/* ===== רקע כללי ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial;

    background: 
        radial-gradient(circle at 20% 30%, rgba(59,130,246,0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99,102,241,0.12), transparent 40%),
        linear-gradient(to bottom, #0f172a, #1e293b);

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    overflow: hidden; /* 🔥 הוספתי – מבטל scrollbar */
}

/* ===== כרטיס ===== */
.create-box {
    width: 360px; /* 🔥 היה 400 */
    padding: 35px 28px; /* 🔥 טיפה קטן יותר */
	position: relative;

    border-radius: 28px;

    background: linear-gradient(145deg, #1e293b, #334155);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 
        0 30px 80px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);

    display: flex;
    flex-direction: column;
    align-items: center;

    color: white;

    animation: fadeIn 0.5s ease;

    max-height: 90vh; /* 🔥 חדש – שלא יחרוג מהמסך */
}

/* ===== כותרת ===== */
.create-box h2 {
    margin-bottom: 25px;
    font-size: 26px;
    letter-spacing: 0.5px;
}

/* ===== יישור אחיד ===== */
.create-box input,
.create-box select,
#createPreviewWrapper,
.create-btn {
    width: 100%;
    max-width: 320px;
}

/* ===== אינפוטים ===== */
.create-box input,
.create-box select {
    padding: 14px;
    margin-bottom: 14px;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);
    color: white;

    font-size: 14px;
    text-align: center;

    transition: all 0.25s ease;
}

.create-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.create-box input:focus,
.create-box select:focus {
    border-color: #60a5fa;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
    outline: none;
}

/* ===== preview ===== */
#preview {
    height: 130px; /* 🔥 היה 160 */
    border-radius: 18px;
    margin-bottom: 18px;

    border: 1px dashed rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    color: rgba(255,255,255,0.6);

    overflow: hidden;
    text-align: center;

    transition: 0.3s;
}

/* ===== כפתור ===== */
.create-btn {
    margin-top: 20px;

    padding: 14px;
    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(20,184,166,0.4);
}

/* ===== אנימציה ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.create-box select option {
    color: black;
    background: white;
}

#bgOverlay{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.25);

    z-index:-1;
}
/* ===== כפתור מחיקה ===== */
#deleteRoomBtn {
    width: 100%;
    max-width: 320px;

    margin-top: 12px;
    padding: 13px;

    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, 0.3);

    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
}

/* hover */
#deleteRoomBtn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

/* לחיצה */
#deleteRoomBtn:active {
    transform: scale(0.97);
}

/* מצב מוסתר כבר קיים אצלך (display:none) */
#editRoomBtn {
    width: 100%;
    max-width: 320px;

    margin-top: 10px;
    padding: 13px;

    border-radius: 14px;
    border: 1px solid rgba(59,130,246,0.3);

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 10px 25px rgba(59,130,246,0.25);
}

#editRoomBtn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59,130,246,0.4);
}
#backBtn{
    position: absolute;
    top: 18px;
    right: 18px;

    padding: 8px 16px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);

    color: #60a5fa; /* 🔥 כחול יפה */
    font-size: 13px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 6px;

    z-index: 10; /* שלא ייעלם */

    cursor: pointer;
    transition: all 0.25s ease;
}

#backBtn:hover{
    background: rgba(255,255,255,0.12);
    color: #93c5fd;
    transform: translateY(-1px);
}