/* 
 * WINDOWS XD - The Most Creative Resume Ever
 * Complete XP-style experience with login, start menu, Clippy, and more
 */

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    background: #000;
    font-family: 'Tahoma', sans-serif;
}

/* ==================== BOOT SCREEN ==================== */
#xp-boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.xp-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.xp-logo-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.xp-window-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 55px;
    height: 45px;
    transform: perspective(200px) rotateY(-15deg) skewY(5deg);
}

.win-sq {
    border-radius: 2px;
}

.red {
    background: #f25022;
}

.green {
    background: #7fba00;
}

.blue {
    background: #00a4ef;
}

.yellow {
    background: #ffb900;
}

.xp-logo-text {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.ms {
    font-size: 1.2rem;
    color: #aaa;
    font-weight: 300;
}

.win {
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', Arial;
}

.xp {
    font-size: 2.5rem;
    color: #ff6a00;
    font-weight: bold;
    font-style: italic;
    font-family: 'Trebuchet MS', sans-serif;
    position: relative;
    top: -5px;
    margin-left: 3px;
}

.xp-loading-bar-container {
    width: 220px;
    height: 18px;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 3px;
    background: #000;
}

.xp-loading-bar {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 3px;
}

.blue-chunk {
    width: 18px;
    height: 100%;
    background: linear-gradient(to bottom, #5fa7ff 0%, #2461e0 50%, #0a47c2 100%);
    border-radius: 2px;
    position: absolute;
    animation: xpLoad 1.5s infinite linear;
}

.blue-chunk:nth-child(1) {
    animation-delay: 0s;
}

.blue-chunk:nth-child(2) {
    animation-delay: 0.2s;
}

.blue-chunk:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes xpLoad {
    0% {
        left: -25px;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.copyright {
    position: absolute;
    bottom: 30px;
    color: #555;
    font-size: 11px;
}

/* ==================== LOGIN SCREEN ==================== */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #245dbd 0%, #5a9cee 50%, #245dbd 100%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

.login-header {
    background: linear-gradient(to bottom, #002d96 0%, #1e5cc9 100%);
    padding: 10px 30px;
    color: #fff;
    font-size: 14px;
    border-bottom: 2px solid #0044aa;
}

.login-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(to bottom, #e8f4fc 0%, #d0e8fa 100%);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #6db3f2;
    cursor: pointer;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    transform: scale(1.05);
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.4);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    border: 3px solid #4a90d9;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #003399;
}

.user-role {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to top, #002d96 0%, #1e5cc9 100%);
    color: #fff;
    font-size: 12px;
}

.login-footer-left {
    cursor: pointer;
}

.login-footer-left:hover {
    text-decoration: underline;
}

.login-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== BLISS WALLPAPER ==================== */
#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Classic Bliss gradient as fallback */
    background: linear-gradient(to bottom, #4ca2cd 0%, #4ca2cd 40%, #6cc067 60%, #4a8c3a 100%);
    z-index: 0;
}

/* Use Base64 or external Bliss image when available */
#wallpaper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=1920&q=80') center center;
    background-size: cover;
    z-index: 1;
}

/* ==================== DESKTOP ==================== */
.hidden {
    display: none !important;
}

#desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 32px);
    z-index: 10;
}

.desktop-icons-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    width: 75px;
    pointer-events: auto;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(11, 97, 255, 0.2);
    border: 1px dotted rgba(11, 97, 255, 0.5);
}

.desktop-icon.selected {
    background: rgba(11, 97, 255, 0.4);
    border: 1px solid #0b61ff;
}

.desktop-icon.dragging {
    opacity: 0.7;
    z-index: 9999;
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    pointer-events: none;
}

.desktop-icon span {
    color: #fff;
    font-size: 11px;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
    word-wrap: break-word;
    max-width: 70px;
    pointer-events: none;
}

/* ==================== WINDOWS ==================== */
.xp-window {
    position: absolute;
    display: none;
    z-index: 100;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.xp-window.visible {
    display: block;
}

.xp-window .title-bar {
    cursor: move;
}

.xp-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 32px) !important;
    border-radius: 0;
}

.xp-window.maximized .window-body {
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto;
}

/* Tags */
.tag {
    background: #e0e7ef;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #b0c4de;
}

/* ==================== CLIPPY ==================== */
#clippy-container {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 8000;
}

#clippy {
    width: 80px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: clippyBounce 3s infinite;
}

@keyframes clippyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#clippy-bubble {
    position: absolute;
    bottom: 120px;
    right: 0;
    background: #ffffcc;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 15px;
    width: 220px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

#clippy-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    border: 10px solid transparent;
    border-top-color: #333;
}

#clippy-bubble p {
    margin: 0 0 8px 0;
    font-size: 12px;
}

#clippy-bubble button {
    font-size: 11px;
    padding: 3px 10px;
}

/* ==================== START MENU ==================== */
#start-menu {
    position: fixed;
    bottom: 32px;
    left: 0;
    width: 380px;
    background: #d5e6fa;
    border: 2px solid #406fa8;
    border-radius: 5px 5px 0 0;
    box-shadow: 3px -3px 10px rgba(0, 0, 0, 0.3);
    z-index: 9000;
}

.start-header {
    background: linear-gradient(to right, #1e5cc9 0%, #4098e3 50%, #1e5cc9 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 3px 3px 0 0;
}

.start-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 2px solid #fff;
}

.start-user-name {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #003;
}

.start-content {
    display: flex;
    min-height: 300px;
}

.start-left {
    flex: 1;
    background: #fff;
    padding: 5px 0;
    border-right: 1px solid #a0b0c0;
}

.start-right {
    width: 180px;
    background: #d5e6fa;
    padding: 5px 0;
}

.start-item,
.start-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 15px;
    cursor: pointer;
    font-size: 12px;
}

.start-item:hover {
    background: #316ac5;
    color: #fff;
}

.start-item-right:hover {
    background: #316ac5;
    color: #fff;
}

.start-item img,
.start-item-right img {
    width: 24px;
    height: 24px;
}

.start-item.pinned {
    font-weight: bold;
}

.start-item .arrow {
    margin-left: auto;
    font-size: 10px;
}

.start-separator {
    border: none;
    border-top: 1px solid #c0d0e0;
    margin: 5px 10px;
}

.start-footer {
    background: linear-gradient(to top, #1e5cc9 0%, #4098e3 100%);
    padding: 8px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.start-footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
}

.start-footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.start-footer-btn img {
    width: 20px;
    height: 20px;
}

/* ==================== TASKBAR ==================== */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(to bottom, #3168d5 0%, #4993e6 3%, #2157d7 6%, #2663e0 10%, #1941a5 90%, #1941a5 100%);
    display: flex;
    align-items: center;
    z-index: 8500;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

#xp-start-btn {
    height: 28px;
    background: linear-gradient(to bottom, #3d9a38 0%, #60bf50 10%, #2d8b29 50%, #258320 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 15px 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    font-style: italic;
    text-shadow: 1px 1px 1px #0a3d08;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

#xp-start-btn:hover {
    background: linear-gradient(to bottom, #4db847 0%, #70cf60 10%, #3d9b39 50%, #359130 100%);
}

#xp-start-btn img {
    height: 20px;
}

.taskbar-divider {
    width: 2px;
    height: 20px;
    background: linear-gradient(to right, #18399a 0%, #3a6bc5 50%, #18399a 100%);
    margin: 0 5px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 3px;
    padding: 0 5px;
    overflow: hidden;
}

.taskbar-item {
    background: linear-gradient(to bottom, #3c73d2 0%, #245dbd 100%);
    border: 1px solid #18399a;
    padding: 3px 10px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.taskbar-item:hover {
    background: linear-gradient(to bottom, #4c83e2 0%, #346dcd 100%);
}

.system-tray {
    height: 100%;
    background: linear-gradient(to bottom, #0f8ede 0%, #16b0f7 50%, #0d72b8 100%);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 2px solid #0a549a;
    color: #fff;
    font-size: 11px;
    text-shadow: 1px 1px 0 #063d70;
}

/* ==================== WINAMP LOFI PLAYER ==================== */
.winamp-titlebar {
    background: linear-gradient(to right, #4a3728 0%, #2d2118 50%, #4a3728 100%) !important;
}

.winamp-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.lofi-video-container {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.lofi-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lofi-placeholder {
    text-align: center;
    color: #888;
    cursor: pointer;
}

.lofi-placeholder-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.lofi-placeholder p {
    font-size: 14px;
    color: #aaa;
}

.winamp-info-bar {
    background: linear-gradient(to bottom, #1a1a2e, #0f0f23);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lofi-title {
    color: #ff9ecd;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 158, 205, 0.5);
    animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 158, 205, 0.5);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 158, 205, 0.8), 0 0 30px rgba(255, 158, 205, 0.4);
    }
}

.lofi-eq {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
}

.eq-bar {
    width: 8px;
    background: linear-gradient(to top, #00ff88, #00ffcc, #88ffcc);
    border-radius: 2px;
    animation: eqBounce 0.5s infinite ease-in-out;
}

.eq-bar:nth-child(1) {
    animation-delay: 0s;
    height: 60%;
}

.eq-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 80%;
}

.eq-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 40%;
}

.eq-bar:nth-child(4) {
    animation-delay: 0.15s;
    height: 90%;
}

.eq-bar:nth-child(5) {
    animation-delay: 0.3s;
    height: 50%;
}

.eq-bar:nth-child(6) {
    animation-delay: 0.05s;
    height: 70%;
}

.eq-bar:nth-child(7) {
    animation-delay: 0.25s;
    height: 45%;
}

.eq-bar:nth-child(8) {
    animation-delay: 0.35s;
    height: 85%;
}

.eq-bar:nth-child(9) {
    animation-delay: 0.12s;
    height: 55%;
}

.eq-bar:nth-child(10) {
    animation-delay: 0.22s;
    height: 65%;
}

@keyframes eqBounce {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

/* ==================== CMD TERMINAL ==================== */
.cmd-titlebar {
    background: linear-gradient(to right, #1e1e1e 0%, #2d2d2d 50%, #1e1e1e 100%) !important;
}

.cmd-body {
    background: #0c0c0c !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #cccccc;
    padding: 10px !important;
    overflow-y: auto;
    height: calc(100% - 30px);
}

.cmd-line {
    line-height: 1.4;
    white-space: pre;
}

.cmd-blink::after {
    content: '█';
    animation: cmdCursor 1s infinite;
}

@keyframes cmdCursor {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ==================== BSOD ==================== */
#bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0078d7;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bsodFlicker 0.1s ease-out;
}

@keyframes bsodFlicker {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bsod-content {
    color: #fff;
    text-align: left;
    max-width: 700px;
    padding: 50px;
}

.bsod-content h1 {
    font-size: 120px;
    margin: 0 0 20px 0;
    font-weight: 100;
}

.bsod-content h2 {
    font-size: 24px;
    font-weight: 200;
    margin: 0 0 30px 0;
}

.bsod-error {
    font-size: 14px;
    margin: 10px 0 20px 0;
    opacity: 0.8;
}

.bsod-details {
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.9;
    font-family: 'Consolas', monospace;
}

.bsod-details p {
    margin: 0;
}

.bsod-qr {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.fake-qr {
    width: 60px;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 5px;
}

.bsod-qr span {
    font-size: 11px;
    line-height: 1.5;
}

.bsod-percent {
    margin-top: 40px;
    font-size: 14px;
}