@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Jaro:opsz@6..72&family=Rubik+Vinyl&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", serif;

}

body {
    min-height: 100vh;
    direction: rtl;
}

.status-menu {
    position: absolute;
    top: 20vh;
    left:60vw;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 1rem;
    padding: 2rem;
    width: 30vw;
    height: 30vw;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

.menu-content::-webkit-scrollbar {
    width: 0.4rem;
}

.menu-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 0.2rem;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 0.2rem;
}

.menu-header {
    color: #e2e8f0;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    position: relative;
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35%;
    right: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.menu-item {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    margin: 0.8rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
    height: 3.5rem;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #38bdf8;
    opacity: 0;
    transition: all 0.4s ease;
}

.menu-item:hover {
    transform: translateX(0.5rem);
    background: rgba(30, 41, 59, 0.8);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #e2e8f0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.status-controls {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    border-bottom-left-radius: 1.5vw;
    border-top-left-radius: 1vw;
    border-bottom-right-radius: 1.5vw;
    border-top-right-radius: 1vw;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.3rem;
    display: flex;
    gap: 0.2rem;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.toggle-option {
    padding: 0.3rem 0.8rem;
    border-radius: 1.5rem;
    color: #e2e8f0;
    font-size: 0.8rem;
    transition: all 0.4s ease;
    font-weight: 500;
}

.toggle-option.active.open {
    background: #0ea5e9;
    box-shadow: 0 0 1rem rgba(56, 189, 248, 0.4);
}

.toggle-option.active.closed {
    background: #ef4444;
    box-shadow: 0 0 1rem rgba(239, 68, 68, 0.4);
}

.status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -0.3rem;
    right: -0.3rem;
    bottom: -0.3rem;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.open {
    background: #0ea5e9;
}

.status-dot.open::after {
    border: 2px solid rgba(56, 189, 248, 0.3);
}

.status-dot.closed {
    background: #ef4444;
}

.status-dot.closed::after {
    border: 2px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}



.button-container {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex-shrink: 0;
}

.action-button {
    background: rgba(30, 41, 59, 0.5);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.action-button:hover::before {
    transform: translateX(100%);
}

.action-button:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}




/**/
#status-container {
    position: absolute;
    top: 55vw;
    left: 50vw;
    color: #fff;
    display: flex;
    gap: 8vw;
    font-size: 0.8rem;
    transform: translate(-50%, -50%); 
    text-align: center; 
    justify-content: center; 
    align-items: center; 
    display: flex;
}




.status-text .status-status {
    font-weight: bold;
    padding-left: 10px;
}

.status-text.open .status-status {
    color: green; 
}

.status-text.closed .status-status {
    color: red; 
}


.notification {
    display: none;
    position: absolute;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}