/*MOTYWY LUNA*/
:root {
    --blue-luna: #245edb;
    --silver-luna: #a2a2a2;
    --olive-luna: #728d3a;
}

body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; font-family: "Tahoma", sans-serif; }

.theme-blue { --main-bg: var(--blue-luna); --grad: linear-gradient(to bottom, #245edb, #1941a5); --taskbar-tray: #0975e2; }
.theme-silver { --main-bg: var(--silver-luna); --grad: linear-gradient(to bottom, #b2b2b2, #707070); --taskbar-tray: #8c8c8c; }
.theme-olive { --main-bg: var(--olive-luna); --grad: linear-gradient(to bottom, #a3c171, #6b8231); --taskbar-tray: #6b8231; }

/*PULPIT*/
.desktop {
    height: calc(100vh - 30px);
    background: #3a6ea5 url('bliss.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

/*OKNA SYSTEMOWE*/
.window { position: absolute; background: #ece9d8; border: 3px solid var(--main-bg); border-radius: 8px 8px 0 0; display: flex; flex-direction: column; box-shadow: 2px 2px 10px rgba(0,0,0,0.5); overflow: hidden; }
.window-header { background: var(--main-bg); padding: 4px 8px; color: white; display: flex; justify-content: space-between; align-items: center; cursor: move; }
.controls button { width: 21px; height: 21px; margin-left: 2px; cursor: pointer; border: 1px solid #fff; background: #e6e6e6; }
.close { background: #e04343 !important; color: white; }

/*FIREFOX & NAWIGACJA*/
.firefox-nav { background: #e1e1e1; display: flex; align-items: center; padding: 5px 10px; gap: 10px; border-bottom: 1px solid #999; }
.nav-buttons { font-size: 14px; cursor: default; }
.address-bar-container { flex-grow: 1; }
.address-bar-container input { width: 100%; padding: 2px 5px; border: 1px solid #7f9db9; font-size: 11px; }
.search-bar-container { display: flex; align-items: center; background: white; border: 1px solid #7f9db9; padding: 2px 5px; width: 150px; }
.search-bar-container input { border: none; outline: none; font-size: 11px; width: 100%; margin-left: 5px; }
.search-icon { cursor: pointer; font-size: 12px; }

/*UKŁAD MYSPACE*/
.myspace-container { background: white; color: black; font-family: Arial, sans-serif; height: 450px; overflow-y: auto; }
.myspace-header-nav { background: #003399; color: white; padding: 5px; font-size: 11px; display: flex; justify-content: space-between; }
.myspace-body { display: flex; padding: 15px; gap: 15px; }

/*Lewa kolumna (Zdjęcie, Kontakt)*/
.ms-left { width: 40%; }
.ms-username { font-size: 18px; margin: 0 0 10px 0; color: #000; }
.ms-profile-pic { border: 1px solid #ccc; padding: 5px; text-align: center; margin-bottom: 10px; }
.ms-profile-pic p { font-size: 11px; margin: 5px 0; }

.ms-contact-box { border: 1px solid #6699cc; margin-top: 10px; }
.ms-blue-header { background: #6699cc; color: white; font-weight: bold; padding: 3px 5px; font-size: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; padding: 5px; gap: 5px; }
.contact-grid a.ms-link { text-decoration: none; color: #369; font-weight: bold; }
.contact-grid a.ms-link:hover { text-decoration: underline; }

/*Prawa kolumna (Muzyka, Blog)*/
.ms-right { width: 60%; }
.ms-music-box { border: 1px solid #000; margin-bottom: 15px; }
.ms-music-header { background: #000; color: white; padding: 3px 5px; font-size: 12px; font-weight: bold; }

.section-title { background: #ffcc99; color: #f60; font-weight: bold; padding: 2px 5px; margin: 10px 0; font-size: 13px; }
.ms-blog-area { border: 1px solid #ccc; height: 120px; overflow-y: auto; padding: 5px; background: #fff; }
.post-item { border-bottom: 1px dashed #ccc; padding: 5px 0; font-size: 12px; }
.post-item small { color: #666; }
.post-form { margin-top: 10px; background: #f0f0f0; padding: 8px; border: 1px solid #ccc; }
.post-form textarea { width: 95%; height: 40px; font-size: 11px; margin-bottom: 5px; }
.post-form button { font-size: 11px; cursor: pointer; }

/*PASEK ZADAŃ*/
.taskbar { position: fixed; bottom: 0; width: 100%; height: 30px; background: var(--grad); display: flex; align-items: center; z-index: 9999; }
.start-button { background: linear-gradient(to bottom, #388e3c, #2e7d32); color: white; font-weight: bold; font-style: italic; border: none; height: 100%; padding: 0 15px; border-radius: 0 10px 10px 0; cursor: pointer; text-shadow: 1px 1px 1px #000; font-size: 16px; }

.active-tasks { display: flex; gap: 5px; padding-left: 10px; flex-grow: 1; }
.taskbar-item { background: rgba(255,255,255,0.3); color: white; padding: 2px 10px; font-size: 11px; border-radius: 3px; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); min-width: 100px; text-align: left; white-space: nowrap; overflow: hidden; }
.taskbar-item:hover { background: rgba(255,255,255,0.4); }

.system-tray { background: var(--taskbar-tray); height: 100%; display: flex; align-items: center; padding: 0 10px; color: white; font-size: 11px; margin-left: auto; gap: 10px; border-left: 1px solid rgba(255,255,255,0.3); }

/*MENU START*/
.start-menu { position: fixed; bottom: 30px; left: 0; width: 280px; background: white; border: 2px solid var(--main-bg); z-index: 10000; box-shadow: 2px -2px 10px rgba(0,0,0,0.3); }
.start-header { background: var(--grad); color: white; padding: 10px 15px; font-weight: bold; font-size: 14px; border-bottom: 1px solid #fff; }
.start-item { padding: 10px 15px; cursor: pointer; font-size: 12px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.start-item:hover { background: #316ac5; color: white; }

/*INNE APLIKACJE (IE, MEDIA CENTER)*/
.ie-content { background: #fff; height: 300px; overflow-y: auto; }
.address-bar { background: #f1f1f1; border-bottom: 1px solid #ccc; padding: 5px; font-size: 11px; color: #555; }
.social-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 30px; }
.social-icons a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #000; font-size: 11px; }
.social-icons img { width: 48px; height: 48px; margin-bottom: 5px; }

.media-center-bg { background: radial-gradient(circle, #003399 0%, #001a4d 100%); color: white; padding: 20px; height: 300px; }
.media-header { font-size: 20px; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.3); }
.movie-item { display: flex; justify-content: space-between; padding: 5px; background: rgba(255,255,255,0.1); margin-bottom: 5px; border-radius: 4px; font-size: 12px; }

.calendar-window { position: fixed; bottom: 35px; right: 5px; background: white; border: 2px solid var(--blue-luna); padding: 10px; z-index: 10001; box-shadow: -2px -2px 10px rgba(0,0,0,0.2); }
.calendar-table { border-collapse: collapse; font-size: 11px; }
.calendar-table th { padding: 5px; color: #888; }
.calendar-table td { padding: 5px; text-align: center; cursor: pointer; }
.calendar-table td:hover { background: #316ac5; color: white; }
/*STYLIZACJA WORDPAD*/
.wordpad-container {
    background: #f0f0e0; 
    display: flex;
    flex-direction: column;
}

.toolbar-xp {
    background: #ece9d8;
    border-bottom: 1px solid #808080;
    padding: 2px 10px;
    font-size: 11px;
    color: #000;
}

.document-area {
    background: white;
    margin: 10px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #7f9db9;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
    cursor: default; 
    user-select: text;
}

.document-area h1 {
    font-size: 18px;
    margin-top: 0;
}