/*B"H*/

/* --- General Body and HTML --- */
/*B"H*/

/* --- General Body and HTML --- */
body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* The Essence is contained, no leakage to the outer void */
}

/* 
   The Main Vessel (Kli) 
   It unifies the distinct sefirot (Header, Desktop, Footer) 
   into a single column of divine emanation.
*/
.main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background-color: #0d47a1;
}

.hidden {
    display:none
}

body {
    /* Windows XP's primary font for that authentic feel */
    font-family: 'Tahoma', 'Segoe UI', Geneva, Verdana, sans-serif;
    background-color: #0d47a1;
}
/* 
================================================================
  TASKBAR STYLES (MODERN "LUNA" THEME)
================================================================
*/
/* 
================================================================
  TASKBAR STYLES (MODERN "LUNA" THEME)
  The Foundation (Malchus) - It supports the structure from below
================================================================
*/
#start-bar {
    position: relative; /* Not fixed, but part of the organic whole */
    flex-shrink: 0;     /* The foundation must remain solid, never shrinking */
    width: 100%;
    /* 
      A rich, glossy gradient inspired by Windows XP's Luna theme,
      but with more depth and a modern shine effect.
    */
    background: linear-gradient(to top, #0053a4, #0078d7 60%, #4ca4fe);
    color: white;
    display: flex;
    align-items: center;
    height: 38px; 
    z-index: 1000;
    border-top: 1px solid #7cbbff;
    padding: 0 5px;
    gap: 5px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
    order: 3; /* Ensures it stays at the bottom visual hierarchy */
}

/* 
================================================================
  THE NEW START BUTTON (NO IMAGES, PURE CSS & INSANE ANIMATIONS)
================================================================
*/
#start-button {
    /* --- Base Styling & Positioning --- */
    order: 2; /* This forces it to the right side */
    background: transparent; /* The real background is on the pseudo-elements */
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Trebuchet MS', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative; /* Crucial for pseudo-element positioning */
    width: 130px;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- The Main Button Shape (The Green Part) --- */
#start-button::before {
    content: 'start';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The iconic green XP gradient, but richer */
    background: linear-gradient(135deg, #28a745, #218838);
    
    /* This creates the unique curved shape on the left */
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* --- The "Windows Orb" Effect (The Blue Part) --- */
#start-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%; /* Positions it in the angled part */
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    
    /* A vivid, glowing blue orb gradient */
    background: radial-gradient(circle, #00aaff, #007bff);
    border-radius: 50%;
    box-shadow: 0 0 10px #00aaff, inset 0 0 5px white, 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

/* 
---------------------------------
   VIVID & EXTREME ANIMATIONS
---------------------------------
*/

/* The animation for the glowing orb */
@keyframes insaneGlow {
    0%, 100% {
        box-shadow: 0 0 10px #00aaff, inset 0 0 5px white, 0 0 15px rgba(0,0,0,0.5);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 25px #00aaff, 0 0 40px #ffffff, inset 0 0 10px white, 0 0 25px rgba(0,0,0,0.5);
        transform: translateY(-50%) scale(1.1);
    }
}

#start-button:hover {
    transform: scale(1.05); /* Lifts the whole button */
}

/* Make the green part brighter and shift the orb on hover */
#start-button:hover::before {
    background: linear-gradient(135deg, #2fbd52, #28a745);
}

#start-button:hover::after {
    /* Start the insane glowing animation */
    animation: insaneGlow 1.5s infinite;
    left: 12%; /* Make it slide slightly */
}

/* On click, create a satisfying "press-in" effect */
#start-button:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

#start-button:active::before {
    background: linear-gradient(135deg, #218838, #1e7e34);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
}

#start-button:active::after {
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 0 5px #00aaff, inset 0 0 15px rgba(0,0,0,0.8);
}


/* 
================================================================
  THE WINDOWS XP START MENU
================================================================
*/
#start-menu {
    display: none;
    position: fixed;
    bottom: 42px;
    /* Position it to align with the right-side start button */
    right: 5px;
    left: auto;
    transform: none;
    
    background: linear-gradient(to bottom, #f0f8ff, #d6e4f7);
    border: 1px solid #707070;
    box-shadow: 5px -5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    width: 320px;
    z-index: 999;
    
    /* A more dramatic "unfolding" animation */
    animation: menuUnfold 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    transform-origin: bottom right;
}

@keyframes menuUnfold {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#menu-items {
    list-style-type: none;
    margin: 0;
    padding: 8px;
}

#menu-items li {
    /* Changed to a dark color for better readability on light background */
    color: #1e395b;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: bold;
}

/* A modern, clean hover effect */
#menu-items li:hover {
    background: linear-gradient(to top, #0078d7, #2491f5);
    color: white;
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    border-color: #005a9e;
}

#menu-items li:active {
    transform: scale(0.97) translateX(2px);
    background: #005a9e;
    transition-duration: 0.1s;
}


/* --- Remaining and Taskbar Styles --- */
.hidden {
    display: none;
}

.task-area {
    order: 1;
    flex-grow: 1;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Hide scrollbar for a cleaner look */
.task-area::-webkit-scrollbar {
    height: 3px;
}
.task-area::-webkit-scrollbar-thumb {
    background: #6666cc;
}

.task-item {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 3px 10px;
    height: 28px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

#desktop {
    position: relative;
    width: 100%;
    /* 
       The Tiferet (Beauty) - The central space.
       It expands to fill the void left by Keter and Malchus.
    */
    flex-grow: 1; 
    height: auto; /* Let the container dictate the limit */
    overflow: hidden; /* Scrollbars belong to windows, not the void itself */
    transition: background-color 0.3s ease;
    order: 2; /* Sits between Header and Footer */
}

#BH {
	position: fixed;
	left:0px;top:0px;
	z-index:6527831653781238175263219873283;
}
/* 
================================================================
  THE TOP CROWN (KETER) - SYSTEM HEADER
================================================================
*/
.awtsmoos-top-header {
    height: 36px; /* A thin, subtle emanation from above */
    background: linear-gradient(90deg, #1c2630, #2c3e50);
    border-bottom: 1px solid #455a64;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    color: #cfd8dc;
    font-size: 12px;
    flex-shrink: 0; /* It remains constant */
    order: 1; /* The highest point in the flex column */
    z-index: 1002;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        flex-direction: row-reverse;
}

.login-area-container {
    display: flex;
    align-items: center;
}

/* 
   The Eye of Providence (Fullscreen Toggle) 
   Expands the perception to encompass the whole (Screen).
*/
.fullscreen-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.fullscreen-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1) rotate(90deg); /* A spark of movement */
    border-color: #4fc3f7;
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.6);
}

.fullscreen-toggle-btn svg {
    fill: currentColor;
    width: 14px;
    height: 14px;
    pointer-events: none;
}


/* --- TOAST NOTIFICATIONS (The Flying Letters) --- */
            .awtsmoos-toast-container {
                position: fixed;
                bottom: 20px;
                right: 20px;
                display: flex;
                flex-direction: column-reverse; /* Newest at bottom */
                gap: 10px;
                z-index: 10000;
                pointer-events: none; /* Let clicks pass through gaps */
            }

            .awtsmoos-toast {
                background: rgba(20, 30, 48, 0.9);
                color: #e0e0e0;
                padding: 12px 20px;
                border-radius: 8px;
                font-family: 'Segoe UI', sans-serif;
                font-size: 14px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
                border-left: 4px solid #00d2ff;
                backdrop-filter: blur(10px);
                pointer-events: auto;
                min-width: 250px;
                max-width: 350px;
                
                opacity: 0;
                transform: translateX(50px) scale(0.9);
                animation: toastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
                transition: all 0.3s ease;
            }

            .awtsmoos-toast.error { border-left-color: #ff4b4b; }
            .awtsmoos-toast.success { border-left-color: #00e676; }
            .awtsmoos-toast.removing {
                opacity: 0;
                transform: translateX(100px);
            }

            @keyframes toastEnter {
                to { opacity: 1; transform: translateX(0) scale(1); }
            }

            /* --- MODALS (The Vessels of Will) --- */
            .awtsmoos-modal-overlay {
                position: fixed;
                top: 0; left: 0; width: 100%; height: 100%;
                background: rgba(0, 0, 0, 0.6);
                backdrop-filter: blur(4px);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 11000;
                opacity: 0;
                animation: fadeIn 0.3s forwards;
            }

            .awtsmoos-modal {
                background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
                padding: 25px;
                border-radius: 12px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.4);
                width: 90%;
                max-width: 400px;
                transform: scale(0.8);
                animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
                font-family: 'Segoe UI', sans-serif;
                border: 1px solid #fff;
            }

            .awtsmoos-modal-title {
                font-size: 18px;
                font-weight: 600;
                color: #333;
                margin-bottom: 15px;
            }

            .awtsmoos-modal-input {
                width: 100%;
                padding: 10px;
                border: 1px solid #ccc;
                border-radius: 6px;
                font-size: 16px;
                margin-bottom: 20px;
                box-sizing: border-box;
                outline: none;
                transition: border 0.2s;
            }
            .awtsmoos-modal-input:focus {
                border-color: #007bff;
                box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
            }

            .awtsmoos-modal-buttons {
                display: flex;
                justify-content: flex-end;
                gap: 10px;
            }

            .awtsmoos-btn {
                padding: 8px 16px;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-weight: 500;
                transition: transform 0.1s, filter 0.2s;
            }
            .awtsmoos-btn:hover { filter: brightness(1.1); }
            .awtsmoos-btn:active { transform: scale(0.96); }

            .awtsmoos-btn-primary { background: #007bff; color: white; }
            .awtsmoos-btn-secondary { background: #e0e0e0; color: #333; }
            .awtsmoos-btn-danger { background: #ff4b4b; color: white; }

            @keyframes fadeIn { to { opacity: 1; } }
            @keyframes popIn { to { transform: scale(1); } }

