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

body {
    background: url('vivian.png') no-repeat center center / cover, #0a0a0a;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Glowing purple border effect */
.tile-window {
    background: rgba(20, 20, 25, 0.85);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
    transition: all 0.3s ease;
}

.tile-window:hover {
    border-color: #a78bfa;
    background: rgba(20, 20, 25, 0.95);
    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.08);
}

/* Window titlebar */
.window-titlebar {
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
}

/* Waybar styles */
.waybar {
    background: rgba(15, 15, 20, 0.7);
    border-bottom: 2px solid #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.workspace {
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s;
    cursor: not-allowed;
}

.workspace.active {
    background: rgba(139, 92, 246, 0.5);
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    cursor: default;
}

.workspace:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Dwindle grid layout */
.dwindle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    padding: 1rem;
    min-height: calc(100vh - 64px);
}

.tile-main {
    grid-column: 1;
    grid-row: 1;
}

.tile-bottom-left {
    grid-column: 1;
    grid-row: 2;
}

.tile-top-right {
    grid-column: 2;
    grid-row: 1;
}

.tile-bottom-right {
    grid-column: 2;
    grid-row: 2;
}

/* Mobile responsive */
@media (max-width: 800px) {
    .dwindle-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tile-main,
    .tile-top-right,
    .tile-mid-right,
    .tile-bottom-right {
        grid-column: 1;
        grid-row: auto;
    }

    .tile-bottom-right {
        flex-direction: column !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Accent colors */
.accent-purple {
    color: #a78bfa;
}

/* Remove list styling for skill and project lists */
.skill-list {
    list-style: none;
}

.skill-tag {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

/* CAVA Waveform */
#cava-waveform {
    height: 20px;
    align-items: flex-end;
}

.cava-bar {
    width: 3px;
    height: 3px;
    background: #8b5cf6;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.5);
    transition: height 0.1s ease-out;
}

.cava-bar:nth-child(1) { animation: cava-beat-1 1.2s ease-in-out infinite; }
.cava-bar:nth-child(2) { animation: cava-beat-2 1.5s ease-in-out infinite; }
.cava-bar:nth-child(3) { animation: cava-beat-3 0.9s ease-in-out infinite; }
.cava-bar:nth-child(4) { animation: cava-beat-4 1.8s ease-in-out infinite; }
.cava-bar:nth-child(5) { animation: cava-beat-5 1.1s ease-in-out infinite; }
.cava-bar:nth-child(6) { animation: cava-beat-6 1.4s ease-in-out infinite; }
.cava-bar:nth-child(7) { animation: cava-beat-7 1.3s ease-in-out infinite; }
.cava-bar:nth-child(8) { animation: cava-beat-8 1.6s ease-in-out infinite; }
.cava-bar:nth-child(9) { animation: cava-beat-9 1.0s ease-in-out infinite; }
.cava-bar:nth-child(10) { animation: cava-beat-10 1.7s ease-in-out infinite; }

@keyframes cava-beat-1 {
    0%, 100% { height: 3px; }
    15% { height: 18px; }
    30% { height: 3px; }
}

@keyframes cava-beat-2 {
    0%, 100% { height: 3px; }
    25% { height: 15px; }
    50% { height: 3px; }
}

@keyframes cava-beat-3 {
    0%, 100% { height: 3px; }
    20% { height: 20px; }
    40% { height: 3px; }
}

@keyframes cava-beat-10 {
    0%, 100% { height: 3px; }
    32% { height: 13px; }
    64% { height: 3px; }
}

/* WiFi stats fixed width */
.wifi-stats {
    min-width: 180px;
}

.wifi-stat-value {
    display: inline-block;
    min-width: 60px;
    text-align: right;
}

/* Hide waybar on screens 800px or below */
@media (max-width: 800px) {
    .waybar {
        display: none !important;
    }
    
    .dwindle-grid {
        min-height: 100vh;
    }
}

@keyframes cava-beat-5 {
    0%, 100% { height: 3px; }
    18% { height: 16px; }
    36% { height: 3px; }
}

@keyframes cava-beat-6 {
    0%, 100% { height: 3px; }
    22% { height: 19px; }
    44% { height: 3px; }
}

@keyframes cava-beat-7 {
    0%, 100% { height: 3px; }
    28% { height: 14px; }
    56% { height: 3px; }
}

@keyframes cava-beat-8 {
    0%, 100% { height: 3px; }
    35% { height: 11px; }
    70% { height: 3px; }
}

@keyframes cava-beat-9 {
    0%, 100% { height: 3px; }
    12% { height: 17px; }
    24% { height: 3px; }
}

@keyframes cava-beat-10 {
    0%, 100% { height: 3px; }
    32% { height: 13px; }
    64% { height: 3px; }
}