* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: #050505;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Menu Bar */
.menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-size: 13px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.menubar-left, .menubar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.menu-item {
    cursor: default;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

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

.brand {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 40px;
    right: 10px;
    width: 240px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.settings-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.settings-panel h3 {
    font-size: 13px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group {
    margin-bottom: 15px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.label-row span {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.7);
}

input[type=range] {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Window */
.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    
    width: 90%;
    max-width: 500px;
    max-height: 80vh; 
    
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
}

.window.minimized {
    transform: translate(-50%, 120vh) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 30px) !important;
    max-height: 100vh !important;
    
    transform: translate(-50%, calc(-50% + 15px)) scale(1) !important;
    
    border-radius: 0;
    border: none;
    
    top: 50%;
    left: 50%;
}

.window-header {
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    flex-shrink: 0;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.light:hover { filter: brightness(0.8); }

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.window-content {
    padding: 3rem;
    text-align: center;
    color: white;
    overflow-y: auto;
}

.title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.signature {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

/* Dock */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.dock {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dock-item:hover {
    transform: scale(1.15) translateY(-10px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

.dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-top: 6px;
    opacity: 0;
}

.dock-item.active .dot {
    opacity: 1;
}

.tooltip {
    position: absolute;
    top: -40px;
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.dock-item:hover .tooltip {
    opacity: 1;
}

/* About Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.about-window {
    width: 300px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
}

.about-content {
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.big-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff00aa, #bc13fe);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-content h2 {
    margin-bottom: 5px;
}

.subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .window-content {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .dock {
        padding: 8px;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
    }
    
    .settings-panel {
        width: 200px;
    }
}