/* ==========================================================================
   RETRO HORROR DESKTOP CSS - CLEANED & ORGANIZED
   ========================================================================== */

/* ============================
   1. IMPORTS & FONTS
   ============================ */



/* ============================
   2. GLOBAL RESET & BASE STYLES
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    background: #A89A85;
    height: 100vh;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================
   3. THEME CARDS & HORROR FONTS
   ============================ 

.creepy-card,
.blog-post-card,
.article-card {
    background: black;
    color: lime;
    padding: 2rem;
    border: 3px dashed orange;
    font-family: 'Creepster', cursive;
}

.featured-card,
.hero-card,
.highlighted-card {
    font-family: 'Nosifer', cursive;    
}
*/
.pricing-card,
.plan-card {
    font-family: 'Special Elite', cursive;
}

/* ============================
   4. DESKTOP ENVIRONMENT
   ============================ */

#desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #9e9574;
}

.window {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff9f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  z-index: 10; 

}
 



/* Window Header (Title Bar) */
.window-header {
    height: 40px;
    background: #3a5f3a;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 11px;
    flex-shrink: 0;
    cursor: move;
    user-select: none;
    font-weight: bold;
    justify-content: space-between;

}

.window-header button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* Content Area */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}
 
main {
    flex: 1;
    padding: 11px;
    overflow-y: auto;
    background: rgb(0, 0, 0);
}

.content-block {
    height: 1500px; /* For scroll testing */
     /*  background: linear-gradient(to bottom, #ffffff, #dfe6e9);*/
    background: linear-gradient(to bottom, #ffffff, #dfe6e9);
}
















/* ============================
   5. ICON SIDEBAR
   ============================ */

#icons {
    max-height: 910px;
    position: fixed;
    left: 10px;
    bottom: 21px;
    width: 116px;
    padding: 3px;
   
    display: flex;
    
    border-radius: 4px;
    flex-direction: column;
    gap: 2px;
    z-index: 11; 
    direction: rtl;               /* ← Moves scrollbar to LEFT */
    scrollbar-gutter: stable;     /* prevents content shift */
}

#icons button {
    width: 100%;
    padding: 5px 3px;
    border: 3px solid #151414;
    border-radius: 7px;
    font-size: 11px;
    font-weight: bold;
    color: #bbb;
    background: #654c2e;
    cursor: pointer;
    transition: transform 1.5s ease, color 0.5s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-text-stroke: 2px #222;
    paint-order: stroke fill;
    text-shadow:
        -2px -2px 0 #222,
         2px -2px 0 #222,
        -2px  2px 0 #222,
         2px  2px 0 #222;
}

#icons button:hover {
    color: #2adf45;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Shimmer effect on hover */
#icons button:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(180, 220, 255, 0.35) 45%, 
        rgba(255, 240, 180, 0.4) 55%, 
        transparent 100%);
    background-size: 300% 100%;
    animation: shimmerMove 2.2s linear infinite;
    pointer-events: none;
    border: 1px solid #77360b;
}

@keyframes shimmerMove {
    0%   { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

#icons button:active {
    transform: translateY(-4px) scale(0.97);
}



/* Specific button colors */
#openModalLogin,
#openModalInv,
#openModalVis { 
    background: #006400 !important; 
}

#logoutButton { 
    background: #8B1E1E !important; 
}




















/* ============================
   6. MODALS
   ============================ */

.modal {
    display: none;
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    background: #8B1E1E;      
    border: none;
    padding: 0px;
    z-index: 22; 
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
       border-radius: 8px;
}



/* Modal Header (Windows 98 / XP style) */
.modalHeader {
    height: 40px;
    background: #3a5f3a;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    cursor: move;
    user-select: none;
    font-weight: bold;
    border-bottom: 2px solid #000;
    border-radius: 8px;
    z-index: 23;
}



.modalHeader button, .modalHeader span {
    background: none;
    border: 2px solid #000;
    color: white;
    font-size: 18px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 2px; 
    font-family: Arial, sans-serif;
}



.modalHeader strong {
    margin-left: 8px;
    line-height: 40px;
    font-size: 17px;
    flex: 1;
}

.modalHeader .controls {
    display: flex;
    gap: 4px;
    align-items: center;
}


.modalHeader button:hover,
.modalHeader span:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modalHeader .winclose:hover {
    background: #f15454;
    color: white;
}




.modal-body {
    width: 100%;
    height: 100% !important;  
}


/*
.modal-body {
    background-color: #24754a;
    padding: 10px;
   height: 100% !important;
    min-height: 100%; 
    border-radius: 8px;
    overflow: auto;
    
     z-index: 23;
}
*/




/* Maximize state */
.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    display: flex;
}





iFrame {
    background-color: #000000;
    padding: 0px !important;
    height: 100% !important;
    width: 100% !important;
    border: none !important;
}


#myModalLogin {
    background: #3a5f3a;
    padding: 0px !important;
    height: 444px !important;
    width: 359px !important;
   border: solid;
   border-width: 11px; 
   border-radius: 12px;
}




/* ============================
   7. RESIZABLE HANDLES (jQuery UI)
   ============================ */

/* ============================
   RESIZABLE HANDLES - FIXED & VISIBLE
   ============================ */
/* ============================
   7. RESIZABLE HANDLES - ONLY BOTTOM RIGHT
   ============================ */

.ui-resizable-handle {
    position: absolute;
    z-index: 25;  
    background: #000;
    border: none;
}

/* ONLY show the bottom-right corner handle */
.ui-resizable-se {
    bottom: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ffd700;           /* gold - fits retro theme */
    border: 13px solid #000;
    border-radius: 3px;
    cursor: nwse-resize;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
   
}

/* Hide all other handles completely  
.ui-resizable-n,
.ui-resizable-s,
.ui-resizable-e,
.ui-resizable-w,
.ui-resizable-ne,
.ui-resizable-nw,
.ui-resizable-sw {
    display: none !important;
}
 */
/* Visual feedback when resizing */
.ui-resizable-resizing,
.modal-resizing {
    box-shadow: 0 0 40px  rgba(255, 215, 0, 0.9);
}

/* Optional: Hide the light background during normal use (uncomment if you want invisible handles) */
/*
.ui-resizable-handle {
    background: transparent;
    border: none;
}
*/






/* ============================
   8. TABLES
   ============================ */

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-family: sans-serif;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}



.yes { color: green; }
.no  { color: red; }













/* ============================
   9. TASKBAR
   ============================ */

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: #222;
    border-top: 1px solid #444;
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 1000; 
    overflow-x: auto;
}

.taskbar-item {
    height: 18px;
    min-width: 77px;
    padding: 0 10px;
    color: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid #555;
    margin: 3px 4px;
    z-index: 1001;  
}

.taskbar-item:hover {
    background: #444;
}

.taskbar-item.active {
    background: #0066cc;
    border-color: #0088ff;
    color: white;
}

.taskbarPanel {
    display: inline-block;
    border: 2px solid #000;
    border-radius: 5px;
    line-height: 24px;
    margin: 2px 0 0 10px;
    font-size: 17px;
    padding: 0 10px;
    background: #CCC;
    font-weight: bold;
    cursor: pointer;
}

.taskbarPanel.activeTab {
    background: #FFF;
}

.taskbarPanel.minimizedTab {
    background: #AAA;
}

.taskbarPanel.minimizedTab:hover {
    background: #DDD;
}

.taskbarPanel.closed {
    display: none;
}




















    #trigger {
        background: #222222;
        color: #fff;
        padding: 3px 5px;
        border-radius: 0px 0px 0 0;
        cursor: pointer;
        font-weight: bold;
        font-size: 11px;
        text-align: center;
        position: fixed;
        bottom: 0px;
        left: 0px;
        z-index: 9999;
        border: 2px solid #222222;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        width: 144px;

        transition: box-shadow 0.4s ease-out, background 0.3s ease, border-color 0.3s ease;
    }



    #trigger:hover { 
    background: #654c2e; 
    border: 1px solid rgba(249, 240, 160, 0.25);
    /* More transparent */
    /*   box-shadow: 0px 0px 11px 11px rgba(249, 240, 160, 0.35); */
     box-shadow: 0px 0px 11px 11px rgba(184, 175, 100, 0.45); 
     border-radius: 33px;
}




    .content {
        font-size: 11px;
        font-weight: bold;
        background: #1e1e1e;
        border: 7px solid #555555a2;
        border-radius: 0px 0px 0px 0px;
        overflow: hidden;
        opacity: 0;
        width: 144px;
        position: fixed;
       max-height: 95vh;
        left: 0px;
        bottom: 26px;
        z-index: 1000;
        cursor: move;
        user-select: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    }
    .content.open {
        opacity: 1;
        max-height: 55vh;
        overflow-y: auto;
    }

    .title-bar {
        background: #2c2c2c;
        color: #ccc;
        padding: 6px 10px;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px solid #555;
        cursor: move;
    }

    .section-header {
        background: #3a3a3a;
        color: #ffcc80;
        padding: 8px 10px;
        cursor: pointer;
        font-size: 12px;
        font-weight: bold;
        border-bottom: 1px solid #555;
        user-select: none;
    }
    .section-header:hover { background: #4a4a4a; }

    .section-content {
        padding: 4px;
        background: #252525;
        display: none;
    }
    .section-content.open {
        display: block;
    }

    button {
        background: #3c2f1f;
        color: #ddd;
        border: none;
        padding: 6px 8px;
        margin: 2px 0;
        width: 100%;
        text-align: left;
        border-radius: 3px;
        cursor: pointer;
        font-size: 11px;
    }
    button:hover {
        background: #5c4a2f;
        color: white;
    }

    .user-info {
        background: #1a1a1a;
        font-family: monospace;
        font-size: 10px;
        color: #0f0;
        padding: 8px;
        border-bottom: 1px solid #555;
   
    }