/* --- Custom Font Registration --- */
@font-face {
    font-family: 'SpecialElite';
    src: url('SpecialElite.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Tahoma", "Segoe UI", sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
}

/* Desktop Area Container */
.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Video Wrapper */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Desktop Icons Layout --- */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column; 
    gap: 20px;              
    z-index: 2;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    width: 80px;            
    cursor: pointer;
    text-align: center;
    margin-bottom: 5px;
}

.icon-image {
    width: 45px;          
    height: 45px;
    object-fit: contain;  
    margin-bottom: 4px;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.5));
}

.icon-image-emoji {
    font-size: 40px;
    height: 48px;         
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.5));
}

.icon-text {
    color: white;
    font-size: 11px;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
    word-wrap: break-word;
    user-select: none;
}

.icon:hover .icon-text {
    background-color: #0b61ff;
    border-radius: 2px;
}

/* --- Base Windows XP Window Style --- */
.xp-window {
    position: absolute;
    z-index: 10;
    width: 380px;
    background-color: #ece9d8;
    border: 3px solid #0055ea;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    display: none; 
}

.title-bar {
    background: linear-gradient(to bottom, #0058e6 0%, #0066ff 10%, #0058e6 50%, #003dd9 100%);
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #000;
    cursor: move; 
    user-select: none;
}

.title-controls {
    display: flex;
    gap: 3px;
}

.control-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #fff;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0px 1px 0px rgba(255,255,255,0.4);
}

.minimize { background: linear-gradient(to bottom, #3870f5, #0033a1); }
.maximize { background: linear-gradient(to bottom, #3870f5, #0033a1); }
.close { 
    background: linear-gradient(to bottom, #e7633a, #b11900); 
    border-color: #ff9a7a;
}

.control-btn:hover {
    filter: brightness(1.2);
}

.window-body {
    padding: 15px;
    font-family: "Tahoma", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #000;
    min-height: 140px;
    background-color: #ffffff;
    margin: 2px;
    border: 1px solid #d8d2bd;
}

/* Window Positioning Coordinates */
#win-about { top: 40px; left: 140px; }
#win-photos { top: 90px; left: 460px; }
#win-oc { top: 250px; left: 180px; }
#win-hobbies { top: 300px; left: 520px; }
#win-music { top: 160px; left: 320px; } 

/* --- Windows XP Taskbar Elements --- */
.taskbar {
    height: 30px;
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #1b4ca3 100%);
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #4287ff;
    z-index: 100000; 
}

.start-button {
    height: 100%;
    background: linear-gradient(to bottom, #388e3c 0%, #4caf50 10%, #388e3c 50%, #1b5e20 100%);
    border: none;
    margin-left: 0;                                     
    border-top-left-radius: 0;        
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;     
    border-bottom-right-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    box-shadow: 2px 0px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-button:hover {
    background: linear-gradient(to bottom, #4caf50 0%, #81c784 10%, #4caf50 50%, #2e7d32 100%);
}

.start-logo {
    height: 18px;             
    width: auto;               
    object-fit: contain;
    margin-right: 6px;         
}

.start-text {
    color: white;
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 1px #000;
}

.system-tray {
    background: linear-gradient(to bottom, #0c80ef 0%, #1ba1f5 10%, #0c80ef 50%, #0059b3 100%);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-left: 1px solid #1066cc;
    color: white;
    font-size: 12px;
    box-shadow: inset 1px 0px 1px rgba(255,255,255,0.3);
}

/* --- Windows XP Start Menu Layout --- */
.start-menu {
    position: absolute;
    bottom: 30px; 
    left: 0;
    width: 380px;
    height: 400px;
    background-color: #ffffff;
    border: 3px solid #245edb;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.4);
    display: none; 
    flex-direction: column;
    z-index: 200000;
}

.start-menu-header {
    background: linear-gradient(to bottom, #1e57d1 0%, #3a7be0 10%, #1e57d1 100%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 1px #000;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 4px;
    background-color: #fff;
    object-fit: cover; 
}

.start-menu-body {
    display: flex;
    flex: 1;
}

.start-menu-left {
    width: 55%;
    background-color: #ffffff;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.start-menu-right {
    width: 45%;
    background-color: #d3e5fa;
    border-left: 1px solid #95bbf0;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    padding: 6px 10px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 3px;
    user-select: none;
}

.menu-item:hover {
    background-color: #316ac5;
    color: white;
}

.menu-item.disabled {
    color: #7f9db9;
    font-weight: bold;
}
.menu-item.disabled:hover {
    background-color: transparent;
    color: #7f9db9;
    cursor: default;
}

.menu-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.start-menu-footer {
    background: linear-gradient(to bottom, #1e57d1 0%, #245edb 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #1e57d1;
}

.logoff-btn, .turnoff-btn {
    padding: 3px 8px;
    font-size: 11px;
    color: white;
    font-weight: bold;
    border: 1px solid #fff;
    border-radius: 3px;
    cursor: pointer;
}

.logoff-btn { background: linear-gradient(to bottom, #ff9b37, #d45900); border-color: #ffc285; }
.turnoff-btn { background: linear-gradient(to bottom, #e7633a, #b11900); border-color: #ff9a7a; }

.logoff-btn:hover, .turnoff-btn:hover {
    filter: brightness(1.1);
}

.wmp-menu-bar span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 2px;
}

.wmp-menu-bar span:hover {
    background-color: #316ac5;
    color: white;
}

/* --- Windows Media Player Body & Layout Core --- */
.wmp-main-content {
    display: flex;
    height: 240px;
    background-color: #000;
}

.wmp-screen {
    position: relative;
    flex: 1;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 2px inset #4b5f81;
}

/* Hide the native YouTube elements securely */
.wmp-hidden-video-wrapper {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Visualization Canvas Area */
.wmp-gif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    z-index: 1;
}

.wmp-gif-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.wmp-gif-container.playing img {
    display: block;
}

/* WMP Metadata Track & Status Overlay */
.wmp-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wmp-status-bar {
    font-size: 11px;
    color: #5ddcff;
    font-weight: bold;
}

.wmp-now-playing {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
}

/* Playlist Sidebar Settings */
.wmp-playlist-sidebar {
    width: 160px;
    background-color: #20314d;
    border-left: 1px solid #4b5f81;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.playlist-header {
    background: linear-gradient(to bottom, #3a4f73, #283853);
    padding: 5px 8px;
    font-size: 11px;
    font-weight: bold;
    border-bottom: 1px solid #4b5f81;
    text-shadow: 1px 1px 1px #000;
}

.playlist-tracks {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.track-item {
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    border-bottom: 1px solid #283853;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item:hover {
    background-color: #2c4063;
}

.track-item.active {
    background-color: #0055ea;
    font-weight: bold;
}

/* WMP Lower Hardware Controller Panel */
.wmp-control-panel {
    background: linear-gradient(to bottom, #ece9d8, #d4d0c8);
    padding: 6px 10px;
    border-top: 1px solid #aba899;
}

.wmp-seek-row {
    display: flex;
    margin-bottom: 6px;
}

#wmp-seek-bar {
    width: 100%;
    height: 14px;
    cursor: pointer;
}

.wmp-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wmp-playback-cluster {
    display: flex;
    gap: 4px;
}

.wmp-round-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #7a7a7a;
    background: linear-gradient(to bottom, #ffffff 0%, #d4d0c8 100%);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.wmp-round-btn:hover {
    filter: brightness(1.05);
    border-color: #1066cc;
}

.wmp-round-btn.play-pause {
    font-weight: bold;
    color: #0044cc;
}

/* Audio Controller Unit Adjustments */
.wmp-audio-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #000000;
}

.wmp-timer {
    font-family: monospace;
    font-size: 11px;
    background-color: #ffffff;
    padding: 2px 4px;
    border: 1px inset #fff;
}

.wmp-mute-toggle {
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

#wmp-volume-slider {
    width: 65px;
    cursor: pointer;
}

/* --- About Me Window Custom Styling --- */
#win-about .window-body,
#win-about .about-me-container,
#win-about .about-welcome,
#win-about .about-intro,
#win-about .about-stats,
#win-about .about-list,
#win-about .about-list li {
    font-family: 'SpecialElite', 'Courier New', Courier, monospace !important;
}

.about-me-container {
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Photo Circular Cut */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #0055ea;
    margin-bottom: 15px;
    object-fit: cover;
}

.about-welcome {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
}

.about-intro, .about-stats {
    font-size: 12px;
    margin-bottom: 5px;
    color: #333;
}

/* Centered list with no bullet alignment artifacts */
.about-list {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    line-height: 1.8;
    font-size: 12px;
    text-align: center;
}

/* --- Vintage Windows Messenger CSS UI Skin --- */
.messenger-menu {
    background-color: #f1efe2;
    border-bottom: 1px solid #d4d0c8;
    padding: 4px 10px;
    font-size: 11px;
    display: flex;
    gap: 12px;
    color: #000;
}
.messenger-menu span {
    cursor: pointer;
}
.messenger-menu span:hover {
    text-decoration: underline;
    color: #0055ea;
}
.messenger-container {
    background-color: #e3efff !important; /* Authentic soft Messenger blue */
    display: flex;
    flex-direction: column;
    padding: 6px !important;
    height: calc(100% - 48px);
    font-family: "Tahoma", "Segoe UI", sans-serif;
}
.messenger-banner {
    background-color: #ffffff;
    border: 1px solid #9bb6e2;
    border-radius: 3px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    box-shadow: inset 0 -5px 12px rgba(227,239,255,0.4);
}
.messenger-banner-text {
    font-size: 12px;
    color: #000000;
}
.status-subtext {
    font-size: 11px;
    color: #008000;
    font-weight: bold;
}
.messenger-main-frame {
    display: flex;
    flex: 1;
    gap: 6px;
    min-height: 0;
}
.messenger-chat-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.chat-history-display {
    background-color: #ffffff;
    border: 1px solid #9bb6e2;
    border-radius: 2px;
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    font-size: 12px;
    color: #000;
    line-height: 1.4;
}
.system-msg {
    font-size: 11px;
    color: #7f7f7f;
    margin-bottom: 10px;
    text-align: center;
    font-style: italic;
}
.incoming-msg {
    margin-bottom: 8px;
    color: #ff4500; /* Classic MSN contact orange/red username */
}
.incoming-msg strong {
    color: #0055ea;
}
.outgoing-msg {
    margin-bottom: 8px;
    color: #333333;
}
.outgoing-msg strong {
    color: #228b22; /* Your local name is green */
}
.messenger-input-area {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
}
#chat-input {
    width: 100%;
    height: 55px;
    border: 1px solid #9bb6e2;
    border-radius: 2px;
    padding: 5px;
    font-family: inherit;
    font-size: 12px;
    resize: none;
    outline: none;
}
.messenger-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.messenger-hint {
    font-size: 11px;
    color: #666;
}
.messenger-send-btn {
    padding: 3px 15px;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 1px solid #7a7a7a;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
}
.messenger-send-btn:active {
    background: #d4d0c8;
}

/* ==========================================
   TITLE BAR & HEADER HARMONIZATION
   ========================================== */

/* Forces the Music Player Title Bar background to match the Messenger gradient */
#win-wmp .window-header {
    background: linear-gradient(to bottom, #7ca7e2 0%, #4b7cb9 30%, #205494 90%, #1a457b 100%) !important;
    border-bottom: 1px solid #0f2c52 !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

/* Syncs Title Text fonts, weights, and crisp drop-shadow effects */
#win-wmp .window-title {
    font-family: "Tahoma", "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.5px !important;
}

/* Syncs Window Action Buttons Area Layout */
#win-wmp .window-controls {
    gap: 2px !important;
    padding-right: 2px !important;
}

/* Formats the minimize, maximize, and close controls to use matching flat border definitions */
#win-wmp .window-controls button {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    color: #ffffff !important;
    font-weight: bold !important;
    transition: background-color 0.1s ease !important;
}

/* Golden-orange close accent action mapping */
#win-wmp .window-controls button.close-btn:hover {
    background-color: #e04343 !important;
    border-color: #a31c1c !important;
}

#win-wmp .window-controls button:hover:not(.close-btn) {
    background-color: rgba(255, 255, 255, 0.25) !important;
}





/* ==========================================
   MESSENGER-STYLED MUSIC PLAYER THEME
   ========================================== */

/* 1. Main Window Container Background */
#win-wmp .window-body, 
.wmp-main-content {
    background-color: #edf4fc !important; /* Classic Windows Messenger soft light blue */
}

.wmp-menu-bar span {
    color: #224477 !important;
    font-family: "Tahoma", sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
    padding: 2px 5px !important;
    border-radius: 2px !important;
}

.wmp-menu-bar span:hover {
    background-color: #cbe3ff !important;
    color: #003399 !important;
}

/* 3. Playlist Container (White display box with steel blue borders) */
.wmp-main-content ul,
.wmp-playlist-container,
#wmp-tracks-container {
    background-color: #ffffff !important;
    border: 1px solid #99bbe8 !important;
    border-radius: 2px !important;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* 4. Track List Items Styling */
.track-item {
    color: #334466 !important;
    border-bottom: 1px solid #f0f5fb !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
}

.track-item:hover {
    background-color: #eef5fd !important;
    color: #0055ea !important;
}

/* Active Track Style matches selected contacts in Messenger */
.track-item.active {
    background-color: #cbe3ff !important;
    color: #002277 !important;
    font-weight: bold !important;
    border-left: 3px solid #0055ea !important;
}

/* 5. Lower Hardware Panel Transformed to Messenger Footer Bar */
.wmp-control-panel {
    background: linear-gradient(to bottom, #f3f8fe, #dbebfa) !important;
    border-top: 1px solid #a3c1e8 !important;
    padding: 8px 10px !important;
}

/* 6. Hardware Round Buttons Transformed into Flat Messenger Rectangular Buttons */
.wmp-round-btn {
    width: auto !important;
    height: auto !important;
    min-width: 28px !important;
    border-radius: 3px !important; /* Flat corner accents instead of round hardware circles */
    border: 1px solid #7da2ce !important;
    background: linear-gradient(to bottom, #ffffff 0%, #eef5fd 100%) !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    color: #224477 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px !important;
}

/* Classic golden Messenger hover outline tracking */
.wmp-round-btn:hover {
    background: linear-gradient(to bottom, #fff4d8, #ffe49e) !important;
    border-color: #e6a300 !important;
    color: #664400 !important;
}

/* 7. Timeline Seek Bar styling */
#wmp-seek-bar {
    background-color: #ffffff !important;
    border: 1px solid #a3c1e8 !important;
    border-radius: 2px !important;
    height: 10px !important;
    outline: none !important;
}

/* 8. Spacing Fixes inside columns */
.wmp-seek-row {
    margin-bottom: 8px !important;
    align-items: center !important;
}

.wmp-buttons-row {
    padding-top: 2px !important;
}


