:root {
    --purple: #9B5DE5;
    --pink: #F15BB5;
    --teal: #00BBF9;
    --orange: #FEE440;
    --mint: #00F5D4;
    --bg-cream: #F8F0E5;
    --window-bg: #E8E0D5;
    --chrome-light: #D4C5B9;
    --chrome-dark: #8B7355;
    --text-dark: #2D2D2D;
    --outline: #2D2D2D;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-cream);
    margin: 0;
    overflow-x: hidden;
}

.font-pixel {
    font-family: 'VT323', monospace;
}

.grid-bg {
    background-image: linear-gradient(rgba(155, 93, 229, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 93, 229, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

.window-y2k {
    background: linear-gradient(145deg, #FFFFFF 0%, var(--window-bg) 100%);
    border: 3px solid var(--outline);
    border-radius: 16px;
    box-shadow: 8px 8px 0 rgba(45, 45, 45, 0.3), inset 2px 2px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-y2k:hover {
    transform: translateY(-2px);
    box-shadow: 12px 12px 0 rgba(45, 45, 45, 0.3), inset 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.title-bar-y2k {
    background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.win-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--outline);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.1s ease;
    background: linear-gradient(145deg, #FFFFFF 0%, #E0E0E0 100%);
}

.win-btn:hover {
    background: linear-gradient(145deg, #FFF 0%, var(--mint) 100%);
}

.win-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.win-btn-close {
    background: linear-gradient(145deg, #FF6B6B 0%, #EE5A5A 100%);
    color: white;
}

.win-btn-min {
    background: linear-gradient(145deg, var(--orange) 0%, #F4D03F 100%);
}

.win-btn-max {
    background: linear-gradient(145deg, var(--mint) 0%, #00D4AA 100%);
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.desktop-icon:hover {
    background: rgba(155, 93, 229, 0.15);
    border-color: var(--purple);
    transform: scale(1.05);
}

.icon-container {
    width: 56px;
    height: 56px;
    border: 3px solid var(--outline);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFF 0%, #F0F0F0 100%);
    box-shadow: 4px 4px 0 rgba(45, 45, 45, 0.2);
    transition: all 0.2s ease;
}

.btn-y2k {
    padding: 12px 28px;
    border: 3px solid var(--outline);
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0 var(--outline);
    text-transform: uppercase;
}

.btn-y2k:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--outline);
}

.btn-y2k:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--outline);
}

.btn-primary {
    background: linear-gradient(145deg, var(--purple) 0%, #8B4AD4 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(145deg, var(--teal) 0%, #00A8E8 100%);
    color: white;
}

.btn-accent {
    background: linear-gradient(145deg, var(--orange) 0%, #F4D03F 100%);
    color: var(--text-dark);
}

.btn-pink {
    background: linear-gradient(145deg, var(--pink) 0%, #E04AA8 100%);
    color: white;
}

.input-y2k {
    border: 3px solid var(--outline);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    background: white;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    width: 100%;
}

.input-y2k:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: inset 3px 3px 0 rgba(155, 93, 229, 0.2);
}

.progress-y2k {
    height: 24px;
    border: 3px solid var(--outline);
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
    background-size: 200% 100%;
    animation: progressGradient 2s linear infinite;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Chat Specific Styles */

.chat-container {
    height: 350px;
    overflow-y: auto;
    background: #FFF;
    border: 3px solid var(--outline);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    border: 2px solid var(--outline);
    border-radius: 12px;
    padding: 10px 14px;
    max-width: 80%;
    position: relative;
    box-shadow: 3px 3px 0 rgba(45, 45, 45, 0.1);
    animation: popIn 0.3s;
    word-wrap: break-word;
}

.chat-bubble-me {
    background: linear-gradient(135deg, var(--teal), #0077B6);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble-other {
    background: #F0F0F0;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-meta {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.role-card-y2k {
    background: white;
    border: 3px solid var(--outline);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(45, 45, 45, 0.15);
    transition: all 0.2s ease;
}

.role-card-y2k:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(45, 45, 45, 0.2);
}

.tab-y2k {
    padding: 10px 20px;
    border: 3px solid var(--outline);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: #E0E0E0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-right: -3px;
}

.tab-y2k.active {
    background: white;
    position: relative;
    z-index: 1;
}

.taskbar-y2k {
    background: linear-gradient(180deg, #E8E0D5 0%, #D4C5B9 100%);
    border-top: 3px solid var(--outline);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.star {
    position: absolute;
    width: 24px;
    height: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-y2k {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: white;
    border: 3px solid var(--outline);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 6px 6px 0 rgba(45, 45, 45, 0.3);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 900;
    max-width: 320px;
}

.notification-y2k.show {
    transform: translateX(0);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
    border-left: 3px solid var(--outline);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--pink));
    border: 2px solid var(--outline);
    border-radius: 6px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

.animate-popIn {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Spotify Player Specific Styles */
.spotify-player-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.spotify-player-container iframe {
    transition: all 0.3s ease;
}

.spotify-player-container iframe:hover {
    transform: scale(1.02);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

/* Photo Booth Styles (kept for compatibility) */
.photo-booth-container {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 4px solid var(--outline);
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.photo-booth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 10;
}

.camera-view {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    transform: scaleX(-1);
}

.photo-view {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.filter-btn.active {
    background: linear-gradient(145deg, var(--purple) 0%, var(--pink) 100%);
    color: white;
}

.filter-btn:hover {
    transform: scale(1.05);
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: white;
}

.pplg-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #666;
}

.pplg-decoration .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pplg-decoration .dot-green { background: #00F5D4; }
.pplg-decoration .dot-pink { background: #F15BB5; }
.pplg-decoration .dot-purple { background: #9B5DE5; }
.pplg-decoration .dot-orange { background: #FEE440; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .title-bar-y2k {
        padding: 8px 12px;
    }
    .window-y2k {
        border-radius: 12px;
    }
    .btn-y2k {
        padding: 10px 20px;
        font-size: 12px;
    }

    
    
    .spotify-player-container iframe {
        height: 280px;
    }
}

