body {
    margin: 0;
    padding: 0;
    /* Restored your specific pixel art wallpaper */
    background-image: url('wallpaperflare.com_wallpaper.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    color: #ffffff;
}

.top-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.top-bar-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.top-bar-center {
    flex: 0;
    white-space: nowrap;
    font-weight: bold;
    color: #ffffff;
}

.menu-item {
    margin-left: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    /* Ensures the menu stays above everything */
    z-index: 2;
}

#timeElement {
    position: absolute;
    /* This breaks it out of the flexbox flow */
    left: 50%;
    /* Pushes it to the middle of the screen */
    transform: translateX(-50%);
    /* Pulls it back perfectly dead-center */
    font-weight: bold;
    color: #ffffff;
    /* Removed the old margin-right */
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Update your existing window class */
.window {
    display: flex;
    flex-direction: column;
    position: absolute;
    /* ... keep your existing background/border/shadows ... */

    /* ADD THESE 4 LINES FOR ANIMATION: */
    opacity: 0;
    transform: scale(0.90);
    /* Starts shrunk down to 90% size */
    /* This cubic-bezier creates a highly premium, slight 'spring' bounce effect */
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    pointer-events: none;
    /* Prevents ghost clicks while invisible */
}

/* Add this new class right underneath it */
.window.is-open {
    opacity: 1;
    transform: scale(1);
    /* Pops to full size */
    pointer-events: auto;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    position: relative;
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.window-controls {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.btn-close {
    background-color: #ff5f56;
}

.btn-min {
    background-color: #ffbd2e;
}

.btn-max {
    background-color: #27c93f;
}

.window-content {
    padding: 30px;
    text-align: center;
}




/* ========================= */
/* MACOS DOCK STYLES (SLIM)  */
/* ========================= */

.mac-dock {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    /* Slimmer spacing between icons */
    padding: 6px 10px;
    /* Slimmer top/bottom padding */
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    /* Slightly tighter curves */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Removed explicit height so the glass hugs the icons perfectly */
}

.dock-item {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 32px;
    /* Slimmer base icon size */
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* Softer drop shadow */
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- THE HOVER MAGNIFY EFFECT --- */
.dock-item:hover {
    width: 45px;
    /* Scaled-down magnification */
    height: 45px;
    margin: 0 6px;
    /* Pushes sibling icons slightly away */
}

/* Tooltip that appears above the icon on hover */
.dock-tooltip {
    position: absolute;
    top: -40px;
    /* Pulled down slightly to match slimmer dock */
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    /* Slightly smaller text */
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ========================= */
/* FLAT DEV 'ABOUT ME' APP   */
/* ========================= */

/* Overrides the Mac glass effect to look like Linux/VS Code */
.dev-window {
    background-color: #1e1e1e !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) !important;
    color: #cccccc;
    background-color: rgba(225, 225, 225, 0.9);
}

/* Flat header layout */
.dev-header {
    background-color: #252526;
    border-bottom: 1px solid #333;
    padding: 0;
    justify-content: space-between;
    height: 35px;
}

.dev-title {
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-left: 15px;
    color: #cccccc;
}

/* Windows/Linux style right-side controls */
.dev-controls {
    display: flex;
    height: 100%;
}

/* The minimalist "Traffic Light" dots - NOW VISIBLE */
.dev-controls button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    /* THE FIX: Makes icons visible by default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.dev-controls button:hover {
    color: rgba(0, 0, 0, 1);
    /* Darkens the icon when hovered */
}

.dev-btn-close:hover {
    background-color: #e81123 !important;
    color: white !important;
}

/* Content Area */
.dev-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}

/* Layout: Forces Picture and Text side-by-side */
.dev-row {
    display: flex;
    align-items: center;
    /* Vertically centers the text with the image */
    gap: 25px;
    /* Space between image and text */
    margin-bottom: 25px;
}

/* Perfect Circle Profile Picture */
.dev-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    /* This makes it a circle */
    object-fit: cover;
    /* Prevents the image from stretching */
    background-color: #2d2d2d;
    border: 3px solid #333;
    flex-shrink: 0;
    /* Prevents the image from shrinking if text is long */
}

.dev-paragraph {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
    /* Removes default paragraph margin */
    text-align: left;
}

/* Stack the links below the row */
.dev-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.dev-email-container {
    background-color: #252526;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* Flat, solid GitHub Button */
.dev-github-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #2ea043;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(240, 246, 252, 0.1);
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.dev-github-btn:hover {
    background-color: #2c974b;
}

/* ========================= */
/* DESKTOP CALENDAR WIDGET   */
/* ========================= */
.calendar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    /* Matches top bar height to prevent gap flickering */
}


.calendar-widget {
    position: absolute;
    top: 45px;
    /* Sits just beneath the top bar */
    right: 0;
    width: 240px;

    /* Animation Initial State (Hidden & Pushed Up) */
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Prevents invisible clicks */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* The Premium MewoOS Styles */
    background-color: #121216;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(244, 143, 177, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 990;
}

/* The Action: When mouse touches the wrapper, show the calendar */
.calendar-wrapper:hover .calendar-widget {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Re-enables the arrows */
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #fdfdfd;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cal-nav-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 5px;
}

.cal-nav-btn:hover {
    color: #ac6cae;
    /* Hovering turns the arrows pink */
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #8a4d9b;
    /* Muted pink/purple for the days */
    font-weight: 600;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cal-day {
    font-size: 12px;
    padding: 5px 0;
    color: #dcdcdc;
    border-radius: 8px;
    /* Pill/soft square shape */
    cursor: default;
    transition: background-color 0.2s;
}

/* Hover effect for normal days */
.cal-day:not(.empty):not(.current):hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* The MewoOS bright pink highlight */
.cal-day.current {
    background-color: #c88ff4;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.4);
    /* Pink glowing drop shadow */
}

.cal-day.empty {
    color: transparent;
    pointer-events: none;
}

/* ========================= */
/* TERMINAL APP STYLES       */
/* ========================= */

.term-content {
    background-color: #0c0c0c;
    height: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #cccccc;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

#term-output {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.term-input-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.term-prompt {
    color: #87af5f;
    /* Classic terminal green */
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

#term-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    flex: 1;
    outline: none;
    /* Removes the blue glow when typing */
}

/* Custom scrollbar for the terminal */
.term-content::-webkit-scrollbar {
    width: 8px;
}

.term-content::-webkit-scrollbar-track {
    background: #0c0c0c;
}

.term-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* ========================= */
/* TRANSPARENT TERMINAL MOD  */
/* ========================= */

/* 1. Make the outer window glassy and blurred */
#terminal-app.dev-window {
    background-color: rgba(15, 15, 20, 0.6) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* 2. Make the top header slightly darker but still transparent */
#terminal-app .dev-header {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 3. Strip the solid black background from the inside of the terminal so the blur shows through */
.term-content {
    background-color: transparent !important;
    color: #eeeeec;
    /* Default system text color */
}

/* 4. Vibrant Cyan input text to match the theme */
#term-input {
    color: #34e2e2 !important;
    caret-color: #34e2e2 !important;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
}

/* ========================= */
/* CALCULATOR APP UI         */
/* ========================= */

/* 1. Force the Portrait Dimensions */
#calc-app.dev-window {
    background-color: #141419 !important;
    border: 1px solid #2a2a35 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;

    /* THE PORTRAIT LOCK */
    width: 300px !important;
    height: 500px !important;
}

#calc-appheader {
    background: #0d0d12 !important;
    border-bottom: 1px solid #2a2a35;
}

.calc-content {
    background: #1c1c22 !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100% - 40px);
}

/* 1. The Screen (Deep Inset) */
.calc-display {
    background: #0d0d12;
    border: 2px solid #2a2a35;
    border-radius: 8px;
    color: #ffffff;
    font-size: 38px;
    font-family: monospace;
    text-align: right;
    padding: 15px 20px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 2. Stretch the buttons vertically */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    /* Forces exactly 5 tall rows */
    gap: 10px;
    flex: 1;
}

/* 3. The Mechanical Buttons */
.calc-btn {
    background: #2a2a35;
    color: #e0e0e0;
    border: 2px solid #3b3b4a;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Hover State: Lights up purple */
.calc-btn:hover {
    border-color: #d1bfe3;
    background: #323240;
}

/* Active State: Physically pushes in */
.calc-btn:active {
    transform: scale(0.92);
    background: #e0e0e0;
    color: #141419;
}

/* --- Special Button Accents --- */

/* Operators (÷, ×, −, +) */
.calc-op {
    color: #d1bfe3;
    background: #23232d;
}

/* Clear Button (C) */
.calc-clear {
    color: #ff5f56;
}

/* Equals Button (=) Solid Theme Color */
.calc-equals {
    background: #d1bfe3;
    color: #141419;
    border-color: #bfa9d6;
}

.calc-equals:hover {
    background: #e6d8f5;
    border-color: #e6d8f5;
}

.calc-equals:active {
    background: #ffffff;
}

/* ========================= */
/* LIMUX MENU DROPDOWN       */
/* ========================= */

.limux-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    /* Matches top bar height to prevent gap flickering */
}

.about-dropdown {
    position: absolute;
    top: 45px;
    /* Sits just beneath the top bar */
    left: 15px;
    /* Aligns neatly to the left edge */
    width: 280px;

    /* Animation Initial State (Hidden & Pushed Up) */
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Premium Styling (Matching the Calendar) */
    background-color: #121216;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(88, 166, 255, 0.04);
    /* Subtle Blue Glow */
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 990;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The Action: Show profile when hovering the Limux menu */
.limux-wrapper:hover .about-dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Inner Profile Layout --- */
.dropdown-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.dropdown-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.dropdown-title {
    margin: 0;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-bio {
    font-size: 13px;
    line-height: 1.5;
    color: #b0b0b0;
    margin: 0 0 15px 0;
}

.dropdown-links {
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-git {
    color: #2ea043;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.2s;
}

.dropdown-git:hover {
    color: #3fb950;
}

/* ========================= */
/* TOP BAR MUSIC WIDGET      */
/* ========================= */

#top-music-widget {
    position: fixed;
    top: 50px;
    /* Adjust this to sit right below your specific top bar */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 380px;
    height: 90px;
    /* Fixed compact height */

    background-color: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* Pill-like */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

    display: flex;
    align-items: center;
    padding: 12px;
    z-index: 9999;

    /* Smooth slide animation */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

/* The class JS will add/remove to slide it up and hide it */
#top-music-widget.closed {
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

#music-cover {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.widget-core {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.widget-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Compact Text */
.widget-text {
    flex: 1;
    overflow: hidden;
}

.widget-text h4 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-text p {
    margin: 0;
    color: #a0a0a0;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playback Buttons */
.widget-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: transform 0.1s, color 0.1s;
}

.widget-btn:hover {
    color: #d1bfe3;
}

.widget-btn:active {
    transform: scale(0.85);
}

.widget-btn svg {
    width: 18px;
    height: 18px;
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

/* Normal Progress Bar Layout */
.widget-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.widget-progress-row span {
    font-size: 10px;
    color: #a0a0a0;
    font-weight: 500;
    font-family: monospace;
}

/* The Clean Straight Line Slider */
#music-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    /* Default unfilled color */
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

/* The scrubber dot */
#music-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s;
}

#music-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* ========================= */
/* GLOBAL WINDOW CONTROLS    */
/* ========================= */

.dev-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-right: 10px;
}

/* The minimalist "Traffic Light" dots - NOW VISIBLE */
.dev-controls button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    /* Icons visible by default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.dev-controls button:hover {
    color: rgba(0, 0, 0, 1);
}

.dev-btn-close {
    background-color: #ff5f56;
}

.dev-btn-close:hover {
    background-color: #ff746d;
}

.dev-btn-min {
    background-color: #ffbd2e;
}

.dev-btn-min:hover {
    background-color: #ffd05a;
}

.dev-btn-max {
    background-color: #27c93f;
}

.dev-btn-max:hover {
    background-color: #46da5c;
}


/* ========================= */
/* NOTES APP: SOLID STUDIO   */
/* ========================= */

/* 1. Outer Window (Solid Dark Base) */
#notes-app.dev-window {
    background-color: #141419 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #2a2a35 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

/* The Top Header Bar */
#notes-appheader {
    background: #0d0d12 !important;
    border-bottom: 1px solid #2a2a35;
}

.notes-content {
    display: flex;
    height: calc(100% - 40px);
    background: transparent !important;
    padding: 8px !important;
    gap: 8px;
}

/* --- 2. The Left Sidebar (Elevated Panel) --- */
.notes-sidebar {
    position: relative;
    width: 240px;
    background: #1c1c22 !important;
    border: 2px solid #2a2a35;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Custom Scrollbar for Sidebar */
#notes-list::-webkit-scrollbar {
    width: 4px;
}

#notes-list::-webkit-scrollbar-thumb {
    background: #3b3b4a;
    border-radius: 4px;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    color: #a0a0a0;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.note-item:hover {
    background: #2a2a35;
}

.note-item.active {
    background: #231d2b;
    color: #ffffff;
    border: 1px solid #d1bfe3;
}

.note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2a2a35;
    border-radius: 50%;
    font-size: 10px;
    color: #d1bfe3;
}

.note-text-container {
    flex: 1;
    overflow: hidden;
}

.note-item h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item p {
    margin: 3px 0 0 0;
    font-size: 11px;
    opacity: 0.6;
}

/* --- Floating Action Button (Solid) --- */
.fab-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d1bfe3;
    backdrop-filter: none;
    border: none;
    color: #141419;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(209, 191, 227, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 100;
}

.fab-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* --- 3. The Right Editor Area (Panel & Inset) --- */
.notes-editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1c1c22 !important;
    border: 2px solid #2a2a35;
    border-radius: 8px;
    padding: 20px;
}

/* Editor Header Layout (LOCKED SIZING) */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2a2a35;
    margin-bottom: 15px;
    padding-bottom: 10px;
    width: 100%;
}

#note-title-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#note-title-input::placeholder {
    color: #5a5a6a;
}

/* Custom Action Buttons */
.header-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.small-btn {
    padding: 6px 18px;
    font-size: 13px;
    background: #2a2a35;
    color: #ffffff;
    border: 1px solid #3b3b4a;
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.small-btn:hover {
    background: #3b3b4a;
    border-color: #d1bfe3;
}

/* The Delete Button styling */
.danger-btn {
    background: #2a2a35;
    color: #ff5f56;
    border-color: #3b3b4a;
}

.danger-btn:hover {
    background: #2b1d20;
    border-color: #ff5f56;
}

/* The Inner Writing Screen (Deep Inset) */
#note-body-input {
    flex: 1;
    background: #0d0d12;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    padding: 15px;
    outline: none;
    resize: none;
    font-family: monospace;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5);
}

#note-body-input::placeholder {
    color: #5a5a6a;
}

/* ========================= */
/* GLOBAL CUSTOM CURSOR      */
/* ========================= */

* {
    /* The arrow path is shifted so the tip is perfectly at 0,0. 
       The hotspot is now explicitly 0 0. No more phantom clicks! */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24"><path d="M0 0L14 10L7 11.5L4 19L0 0Z" fill="%230d0d12" stroke="%23d1bfe3" stroke-width="1.5" stroke-linejoin="round"/></svg>') 0 0, auto !important;
}

input[type="text"],
textarea {
    cursor: text !important;
}

button,
.glass-btn,
.dock-item,
.fab-btn,
.dev-controls button {
    cursor: inherit !important;
}

/* ...until the user hovers over them */
.dev-controls button:hover {
    color: rgba(0, 0, 0, 1);
    transform: scale(1.15);
    /* Adds a subtle "pop" so you know you are on target */
}

/* ========================= */
/* CAMERA APP UI: PRO STUDIO */
/* ========================= */

#camera-app.dev-window {
    background-color: #141419 !important;
    border: 1px solid #2a2a35 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

#camera-appheader {
    background: #0d0d12 !important;
    border-bottom: 1px solid #2a2a35;
}

.camera-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    background: #1c1c22 !important;
    padding: 20px !important;
}

/* The Deep Inset Video Frame */
.camera-viewfinder {
    position: relative;
    flex: 1;
    background: #000000;
    border: 2px solid #3b3b4a;
    border-radius: 6px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirrors the feed */
}

/* The Rule of Thirds Grid */
#camera-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* So it doesn't block clicks */
    background-image:
        linear-gradient(to right, transparent 33.33%, rgba(255, 255, 255, 0.15) 33.33%, rgba(255, 255, 255, 0.15) 33.5%, transparent 33.5%, transparent 66.66%, rgba(255, 255, 255, 0.15) 66.66%, rgba(255, 255, 255, 0.15) 66.8%, transparent 66.8%),
        linear-gradient(to bottom, transparent 33.33%, rgba(255, 255, 255, 0.15) 33.33%, rgba(255, 255, 255, 0.15) 33.5%, transparent 33.5%, transparent 66.66%, rgba(255, 255, 255, 0.15) 66.66%, rgba(255, 255, 255, 0.15) 66.8%, transparent 66.8%);
}

/* Bottom Control Deck */
.camera-controls {
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    margin-top: 15px;
}

/* The Physical Shutter Button */
.shutter-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #2a2a35;
    border: 3px solid #5a5a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* Glows purple to match the OS */
.shutter-btn:hover {
    border-color: #d1bfe3;
    transform: scale(1.05);
}

.shutter-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d1bfe3;
    transition: 0.1s;
}

.shutter-btn:active .shutter-inner {
    transform: scale(0.85);
    /* Pushes in */
    background: #ffffff;
}

/* Flash Animation Overlay */
#camera-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
}

#camera-flash.flash {
    opacity: 1;
    transition: none;
}

/* ========================= */
/* TERMINAL SCROLL BUG FIX   */
/* ========================= */

.term-input-line {
    /* 1. Forbids the browser from squishing the height of the typing line */
    flex-shrink: 0 !important;

    /* 2. Forces a gap at the bottom so the scrollbar goes past the text */
    padding-bottom: 25px !important;
    margin-top: 5px !important;
}

#term-output {
    /* 3. Ensures the output text doesn't collapse on itself */
    display: flex;
    flex-direction: column;
}

/* ========================= */
/* CUSTOM TERMINAL SCROLLBAR */
/* ========================= */

/* 1. Sets the width of the scrollbar */
.term-content::-webkit-scrollbar {
    width: 12px;
}

/* 2. Makes the background track completely invisible so the glass blur reaches the edge */
.term-content::-webkit-scrollbar-track {
    background: transparent;
    margin-bottom: 10px;
    /* Keeps the scrollbar from overlapping the bottom rounded corners */
    margin-top: 5px;
}

/* 3. The actual draggable scrollbar (Floating Glass Pill) */
.term-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    /* Subtle frosted glass */
    border-radius: 10px;

    /* This border acts as "padding" to make the scrollbar look like it's floating away from the edge */
    border: 3px solid rgba(15, 15, 20, 0.0);
    background-clip: padding-box;
}

/* 4. Glows your theme's Cyan color when you hover or drag it */
.term-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 226, 226, 0.4);
    border: 3px solid rgba(15, 15, 20, 0.0);
    background-clip: padding-box;
}