@import url('taskbar-apps.css');
footer {
    display: flex;
    height: 5vh;
    width: 100vw;

    background-image: linear-gradient(to top, #1C59D1, #1C59D1, #2763DC, #2763DC, #5186D5);
    position: relative;
    user-select: none;

    color: whitesmoke;
    text-shadow: 
        0 0 2px black,
        0 0 1px black;

    cursor: url('data:image/x-icon;base64,AAACAAEAICACAAAAAAAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAABgAAAAwAAAAMAAAAGAAAARgAAAGwAAAB8AAAAf4AAAH8AAAB+AAAAfAAAAHgAAABwAAAAYAAAAEAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////////////////////////+f////D////w////4f///eH///zD///8Q////Af///wAf//8AP///AH///wD///8B////A////wf///8P////H////z////9/////////8='), auto;
    z-index: 20;
}
footer div {
    height: 100%;
}



#sm_btn {
    width: 180px;
    background-image: linear-gradient(to top, #459855, #3D9D47, #3D9D47, #459855, #87B782);

    border-top-right-radius: 20px 50px;
    border-bottom-right-radius: 5px 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#sm_btn:hover {
    background-image: linear-gradient(to top, #479c58, #43ad4e, #43ad4e, #48a159, #87B782);
    cursor: pointer;
}
#sm_btn:active { background-image: linear-gradient(to top, #186414, #239b20, #239b20, #148717, #186414); }

#sm_btn * {
    max-height: 75%;
}
#sm_btn img {
    opacity: 0.2;
    transition: opacity 0.2s;
}
#sm_btn img:hover {
    opacity: 0.8;
}
#sm_btn p {
    letter-spacing: 1px;
    font-family: Tahoma, 'Segoe UI';
    font-size: 22px;

    text-shadow: 
        0 0 2px rgb(0, 0, 0),
        0 0 1px rgb(0, 0, 0),
        0 2px 5px rgba(0, 0, 0, 0.7);
}



#qa_iconBox {
    /* Make the quick-access area fixed width so it doesn't push active apps far right.
       Allow horizontal scrolling when there are more icons than fit. */
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 400px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.qa_icon {
    height: 80%;
    aspect-ratio: 1 / 1;

    border: 5px solid transparent;
    cursor: pointer;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.qa_icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
#qa_icon1 {
    background-image: url(../../assets/images/icons/16x/notes.png);
}
#qa_icon2 {
    background-image: url(../../assets/images/icons/16x/files.png);
}



#ts_divider {
    position: absolute;
    right: 120px;

    height: 100%;
    border-right: 2px solid #034db0;
}

#ts_btn {
    position: absolute;
    right: 0;

    width: 120px;
    height: 100%;

    background-image: linear-gradient(to top, #0599e8, #008cec, #008cec, #0599e8, #06aef9);
    border-left: 2px solid #0bc1f1;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: whitesmoke;
    user-select: none;
}
#ts_btn:hover {
    background-image: linear-gradient(to top, #0fa1f0, #0a9cfd, #0a9cfd, #0fa1f0, #06aef9);
    cursor: pointer;
}
#ts_btn:active { background-image: linear-gradient(to top, #0599e8, #008cec, #008cec, #0599e8, #06aef9); }

/* Firebase status indicator inside clock */
#firebase_status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
}

#firebase_status img {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

#firebase_status:hover {
    opacity: 0.8;
}

#firebase_status.connected img {
    filter: hue-rotate(90deg) drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

#firebase_status.disconnected img {
    filter: grayscale(100%) brightness(0.7) drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

#firebase_status_tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -20px;
    background: #ffffcc;
    border: 1px solid #000;
    padding: 4px 8px;
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}

#ts_clock {
    font-family: Tahoma, 'Segoe UI';
    font-size: 14px;
    font-weight: normal;
}



/* Start Menu */
#smBox {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 380px;
    height: 450px;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 3px 2px 2px rgba(0, 0, 0, 0.400);

    z-index: 200;
    overflow: hidden;
    user-select: none;
}


/* Clock & Badges Panel */
#clockBadgePanel {
    position: absolute;
    bottom: 0;
    right: 0;

    width: 450px;
    height: 550px;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: -3px 2px 2px rgba(0, 0, 0, 0.400);

    z-index: 200;
    overflow: hidden;
    user-select: none;
    background-color: white;
    
    transform-origin: bottom right;
}

#clockBadgePanel.closing {
    animation: shrinkToTaskbar 0.3s ease-in forwards;
}

@keyframes shrinkToTaskbar {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

#cbHeader {
    width: 100%;
    height: 20%;
    background-image: linear-gradient(to top, #488fee, #3181e4, #1b6dd3, #0d5eca, #0d5eca, #1c6dd6, #64a2e7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

#cbClockDisplay {
    text-align: center;
    color: white;
}

.cb-time {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.cb-date {
    font-family: Tahoma, 'Segoe UI';
    font-size: 14px;
    opacity: 1;
}

#cbMainContent {
    width: 100%;
    height: 80%;
    display: flex;
    background-color: #ece9d8;
}

#cbLeftColumn {
    width: 50%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #0c4cd1;
}

#cbRightColumn {
    width: 50%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cb-section-title {
    font-family: Tahoma, 'Segoe UI';
    font-size: 12px;
    font-weight: bold;
    color: #0d5eca;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Weather Styles */
#cbWeather {
    background: white;
    border: 2px solid #0054e3;
    border-radius: 4px;
    padding: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    text-align: center;
}

.cb-weather-loading {
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    color: #666;
    padding: 20px;
}

.cb-weather-icon {
    font-size: 48px;
    margin: 10px 0;
}

.cb-weather-temp {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    color: #0054e3;
    margin: 8px 0;
}

.cb-weather-condition {
    font-family: Tahoma, 'Segoe UI';
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin: 4px 0;
}

.cb-weather-location {
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    color: #666;
    margin: 8px 0 4px 0;
}

.cb-weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.cb-weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Tahoma, 'Segoe UI';
    font-size: 10px;
}

.cb-weather-detail-label {
    color: #666;
    margin-bottom: 2px;
}

.cb-weather-detail-value {
    font-weight: bold;
    color: #000;
}

.cb-weather-error {
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    color: #c00;
    padding: 15px;
}

.cb-timezone-info {
    margin-top: 8px;
    padding: 6px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: Tahoma, 'Segoe UI';
    font-size: 10px;
    color: #000;
    text-align: center;
}

/* Badges List */
#cbBadgesList {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
}

/* Category Header */
.cb-badge-category-header {
    padding: 8px 10px;
    background: linear-gradient(to bottom, #0078d7, #0054e3);
    color: white;
    font-family: Tahoma, 'Segoe UI';
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cb-badge-category-header:hover {
    background: linear-gradient(to bottom, #1084e0, #0060f0);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cb-badge-category-header:active {
    background: linear-gradient(to bottom, #0054e3, #0040b0);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.cb-category-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 11px;
}

/* Category Content */
.cb-badge-category-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 8px;
    transition: all 0.3s ease;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling for category content */
.cb-badge-category-content::-webkit-scrollbar {
    width: 12px;
}

.cb-badge-category-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border: 1px solid #ccc;
}

.cb-badge-category-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0078d7, #0054e3);
    border: 1px solid #003399;
}

.cb-badge-category-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1084e0, #0060f0);
}

.cb-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 2px solid #0054e3;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.cb-badge-item:hover {
    background: #e8f4ff;
    transform: translateY(-2px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cb-badge-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #fffef0;
    border: 2px solid #0054e3;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    color: #000;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 5px;
}

.cb-badge-earned {
    border-color: #0054e3;
}

.cb-badge-locked {
    opacity: 0.7;
    border-color: #999;
    background: #f5f5f5;
}

.cb-badge-locked:hover {
    opacity: 1;
}

.cb-badge-icon {
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-badge-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cb-badge-img-sparkle {
    filter: drop-shadow(0 0 6px gold);
    animation: cbBadgeGlow 3s ease-in-out infinite;
}

@keyframes cbBadgeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px gold) brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 12px gold) brightness(1.2);
        transform: scale(1.05);
    }
}

.cb-badge-earned:hover .cb-badge-img-sparkle {
    animation: cbBadgeGlow 1s ease-in-out infinite;
}

.cb-badge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-badge-name {
    font-size: 12px;
    font-weight: bold;
    color: whitesmoke;
    text-shadow: 
        0 0 2px black,
        0 0 1px black;
}

.cb-badge-desc {
    font-size: 10px;
    color: whitesmoke;
    text-shadow: 
        0 0 2px black,
        0 0 1px black;
}

.cb-badge-locked .cb-badge-name {
    color: #888;
}

.cb-badge-locked .cb-badge-desc {
    color: #999;
    font-style: italic;
}


#smHeader {
    width: 100%;
    height: 18%;
    background-image: linear-gradient(to top, #488fee, #3181e4, #1b6dd3, #0d5eca, #0d5eca, #1c6dd6, #64a2e7);

    display: flex;
    align-items: center;
}
#smHeader img {
    max-height: 70%;
    max-width: 70px;
    margin-left: 10px;

    border: 3px solid white;
    background-color: black;
    border-radius: 5px;
}
#smHeader p {
    font-family: Tahoma, 'Segoe UI';
    font-size: 18px;
    text-shadow: 
        3px 2px 3px rgba(0, 0, 0, 0.5);

    margin-left: 10px;
}


#smMain {
    width: 100%;
    height: 62%;

    background-color: white;
    border: 2px solid #488fee;
    border-top: 1px solid #0c4cd1;
    border-bottom: 1px solid #0c4cd1;

    text-shadow: none;
    display: flex;
    overflow-y: hidden;
}

.smHalf {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    overflow-y: auto;
}

.smSectionTitle {
    font-family: Tahoma, 'Segoe UI';
    font-size: 12px;
    font-weight: bold;
    color: #0d5eca;
    padding: 6px 8px 4px 8px;
    border-bottom: 1px solid #d3e5fb;
    margin-bottom: 4px;
    background: #f0f4f9;
}

.smLeftItem, .smRightItem {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 2px;
    transition: background-color 0.1s;
}
.smLeftItem:hover, .smRightItem:hover {
    background-color: #2b68c3;
    color: whitesmoke;
    cursor: pointer;
}
.smItemImg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.smLeftItem {
    color: black;
}

.smNoResults {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 11px;
}

#smRightHalf {
    border-left: 2px solid #aec2d9;
    background-color: #d3e5fb;
    color: #122969;
}


#smFooter {
    width: 100%;
    height: 10%;
    background-image: linear-gradient(to bottom, #488fee, #3584e3, #2878e1, #176cd9, #0f64d1);
    
    display: flex;
    position: relative;
    justify-content: space-between;

    text-shadow: none;
}
#smFooter div {
    height: 100%;
}
#smFooterLeft {
    display: flex;
    padding-left: 8px;
}
#smFooterRight {
    display: flex;
    padding-right: 8px;
}

/* Search Bar at bottom */
#smSearch {
    width: 100%;
    height: 10%;
    background: #ffffff;
    border-top: 2px solid #aec2d9;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    box-sizing: border-box;
}

#smSearchInput {
    width: 100%;
    height: 100%;
    border: 1px solid #7694bb;
    border-radius: 2px;
    padding: 2px 6px;
    font-family: Tahoma, 'Segoe UI';
    font-size: 11px;
    outline: none;
    box-sizing: border-box;
}

#smSearchInput:focus {
    border: 1px solid #3c7fb1;
    box-shadow: 0 0 2px rgba(60, 127, 177, 0.5);
}

.powerOptionBox {
    width: fit-content;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.1s;
    border-radius: 3px;
}
.powerOptionBox:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.powerOptionBox img {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 5px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.1);
}
.powerOptionBox p {
    margin: 0;
    font-size: 11px;
    color: white;
    font-family: Tahoma, 'Segoe UI';
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
#minimized_bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
}

.min_thumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    min-width: 110px;
    height: 28px;
    border: 1px solid #bfc9d9;
    background: linear-gradient(to bottom, #e9eefc, #d3e5fb);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 2px;
}

.min_thumb img { width: 20px; height: 20px; }
.min_thumb:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

/* WindowManager floating UI */
#wm_button { font-family: Tahoma, 'Segoe UI'; font-weight: bold; }
#wm_panel button { padding: 4px 8px; border-radius: 3px; border: 1px solid #cfcfcf; background: #fff; cursor: pointer; }

/* Hover preview */
#wm_preview {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    border: 2px solid #333;
    background: #fff;
    width: 240px;
    height: 140px;
    display: none;
}

#restartBtn       { background-image: linear-gradient(to top, #2c7f38, #3c983d, #3c983d, #3c983d, #8fcd8f); }
#restartBtn:hover { background-image: linear-gradient(to top, #2c7f38, #49b64b, #49b64b, #49b64b, #8fcd8f); }
#restartBtn:active{ background-image: linear-gradient(to top, #2c7f38, #3c983d, #3c983d, #3c983d, #8fcd8f); }
#powerBtn         { background-image: linear-gradient(to top, #d85c52, #f86e5b, #f86e5b, #f86e5b, #fbae9d); }
#powerBtn:hover   { background-image: linear-gradient(to top, #d85c52, #f88677, #f88677, #f88677, #fbae9d); }
#powerBtn:active  { background-image: linear-gradient(to top, #d85c52, #f86e5b, #f86e5b, #f86e5b, #fbae9d); }