:root {
    --xp-blue: #295cd0;
    --xp-light-blue: #3a6ea5;
    --xp-gray: #d4d0c8;
}
header h1, header h2 {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    font-size: 0px;
}

html {
    width: 100%;
    margin: 0;
}

body {
    margin: 0;
    background: url('images/wallpaper.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Tahoma', sans-serif;
    color: white;
}


section {
    display: wrap;
    flex-wrap: row;
    margin: 4px;
}

footer {
    position: fixed;
    bottom: 0;
    height: 32px;
    width: 100%;
    background: var(--xp-blue);
    display: flex;
    justify-content: space-between;
    color: white;
    border-top: 2px solid var(--xp-light-blue);
}

ol {
    list-style-type: none;
}

li {
    color: black;
}


/* INICIO DA AREA DE TRABLAHO */

.clippy-container {
    position: fixed;
    bottom: 32px;
    right: 20px;
    display: block;
    align-items: flex-end;
    gap: 8px;
    width: 280px;
    animation: fadeIn 0.6s ease-out;
    font-family: "Tahoma", sans-serif;
    z-index: 9999;
}

.clippy-img {
    width: 70px;
    height: auto;
    margin: 4px 0 4px 78%;
}

.clippy-message {
    position: relative;
    flex: 1;
    background: #ece9d8;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    color: #222;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

#close-clippy {
    position: absolute;
    top: 3px;
    right: 4px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

#close-clippy:hover {
    color: red;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


.work-space-apps {
    width: 64px;
    height: 64px;
    background: none;
    margin: 4px 4px 12px 4px;
    border: solid 1px rgba(0, 0, 0, 0);
    padding: 6px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
}

.work-space-apps:hover {
    background: rgba(0, 0, 0, 0.250);
    border: solid 1px blue;
}

.work-space-icons {
    width: 32px;
    height: 32px;
}
a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: blue;
    text-decoration: underline;
}

/* FIM DA AREA DE TRABLAHO */

/* INICIO DAS JANELAS */

/* ===== FILE EXPLORER WINDOW ===== */
.file-explorer-window {
    position: absolute;
    top: 64px;
    left: 32px;
    width: 0px;
    height: 0px;
    border: 0px solid none;
    background: none;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    transition: ease 0.1s;
}

/* ==== TITLE BAR ==== */
.file-explorer-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    color: white;
    font-weight: bold;
    font-size: 0px;
    padding: 0px;
    height: 0px;
}

.file-explorer-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-explorer-buttons {
    display: flex;
    gap: 2px;
}

.explorer-btn {
    width: 0px;
    height: 0px;
    border: 0px solid rgba(0,0,0,0);
    background: none;
    cursor: pointer;
    font-size: 0px;
    font-weight: bold;
    color: black;
}

.explorer-btn:hover {
    color: black;
}

/* ==== MENU BAR ==== */
.file-explorer-menu-bar {
    background: none;
    color: black;
    font-size: 0px;
    padding: 0px 0px;
    display: flex;
    gap: 12px;
    border-bottom: 0px solid none;
}

.file-explorer-menu-bar span {
    cursor: default;
    padding: 0 4px;
    border-radius: 2px;
}

.itemInsideExplorer {
    width: 96px;
    height: 96px;
    background: none;
    margin: 4px 4px 12px 4px;
    border: solid 1px rgba(0, 0, 0, 0);
    padding: 6px;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    color: black;
}

.itemInsideExplorer:hover {
    background: rgba(0, 0, 0, 0.250);
    border: solid 1px blue;
}

.itemInsideExplorerIcon {
    width: 64px;
    height: 64px;
}

/* ==== MAIN AREA ==== */
.file-explorer-main {
    flex: 1;
    display: flex;
    height: 100%;
}

/* SIDE BAR */
.file-explorer-side-bar {
    width: 0px;
    background: none;
    border-right: 0px solid rgba(0,0,0,0);
    padding: 0px;
}

.file-explorer-side-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-explorer-side-bar li {
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 2px;
}

.file-explorer-side-bar li:hover {
    background: #316ac5;
    color: white;
}

/* BODY AREA */
.file-explorer-body {
    flex: 1;
    background: rgba(0,0,0,0);
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
}

/* ===== FIREFOX WINDOW ===== */
.firefox-window {
    position: absolute;
    top: 48px;
    left: 2vw;
    width: 0px;
    height: 0px;
    border: 0px solid none;
    background: none;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    transition: ease 0.1s;
    color: black
}

/* ==== FIREFOX TITLE BAR ==== */
.firefox-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    color: white;
    font-weight: bold;
    font-size: 0px;
    padding: 0px;
    height: 0px;
}

.firefox-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.firefox-buttons {
    display: flex;
    gap: 2px;
}

.firefox-btn {
    width: 0px;
    height: 0px;
    border: 0px solid rgba(0,0,0,0);
    background: none;
    cursor: pointer;
    font-size: 0px;
    font-weight: bold;
    color: black;
}

.firefox-btn:hover {
    color: black;
}

.firefox-menu-bar {
    background: none;
    color: black;
    font-size: 0px;
    padding: 0px 0px;
    display: flex;
    gap: 12px;
    border-bottom: 0px solid none;
}

.firefox-menu-bar span {
    cursor: default;
    padding: 0 4px;
    border-radius: 2px;
}

/* ---------- INSTALLER STYLES (retro-modern) ---------- */
.installer-window {
    position: absolute;
    top: 120px;
    right: 12vw;
    width: 0px;
    height: 0px;
    border: 2px solid none;
    background: var(--xp-gray);
    z-index: 50;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: transform .12s ease, opacity .12s ease;
}

/* Title bar */
.installer-title-bar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background: linear-gradient(to bottom, #3a6ea5, #0a246a);
    color: #fff;
    height: 28px;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 13px;
}

/* Up box */
.installer-up-box {
    display:flex;
    gap:12px;
    align-items:center;
    padding: 8px;
    background: transparent;
}
.installer-my-computer-icon { width:48px; height:48px; margin-left:6px; }
.installer-up-text { font-size: 13px; color: #000; }

/* Body pages */
.installer-body { flex:1; padding: 12px; overflow:auto; color:#000; }
.installer-page { display:block; }
.hidden { display:none !important; }

.installer-terms-box textarea {
    width: calc(100% - 12px);
    height: 120px;
    resize: none;
    padding:6px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

/* buttons */
.installer-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px;
    background: linear-gradient(#f0f0f0, #e0e0e0);
    border-top: 1px solid #aaa;
}
.installer-flat-btn {
    background: #e9e9e9;
    border: 2px solid #666;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
}
.installer-flat-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.installer-primary-btn {
    background: linear-gradient(#316ac5, #0a246a);
    color: white;
    border: 2px solid #06386a;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
}

/* progress */
.progress-wrapper { display:flex; align-items:center; gap:8px; margin-top:10px; }
.progress-bar {
    width: 80%;
    height: 16px;
    background: #ddd;
    border: 1px solid #999;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.progress-fill {
    height:100%;
    width:0%;
    background: linear-gradient(90deg,#5fb0ff,#1b76ff);
    transition: width .3s linear;
}
#installer-progress-percent { width:40px; font-size:12px; }

/* small helpers */
.installer-accept { display:block; margin-top:10px; font-size:13px; }
#installer-finished-msg { margin-top:10px; font-weight:bold; color:green; }

/* FIM DAS JANELAS */



/* INICIO DA BARRA */

#start-button {
    position: fixed;
    bottom: 0;
    left: 0;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-family: "Tahoma", sans-serif;
    width: 96px;
}

#start-button img {
    width: 20px;
    height: 20px;
}

#start-menu {
    position: fixed;
    bottom: 32px;
    left: 0;
    width: 340px;
    height: 400px;
    background: linear-gradient(to bottom, #e8ecf3, #d6e0f2);
    border: 2px solid #355c91;
    border-radius: 8px px 0 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    font-family: "Tahoma", sans-serif;
    z-index: 999;
}

.hidden { display: none; }

.start-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: linear-gradient(to right, #3a6ea5, #4a7dc0);
    color: white;
}

.start-header img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
}

.start-header span{
    cursor: pointer;
}

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

.left-menu, .right-menu {
    list-style: none;
    padding: 10px;
    margin: 0;
    flex: 1;
}

.left-menu li, .right-menu li {
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.left-menu li:hover, .right-menu li:hover {
    background-color: #c9d7f3;
    border-radius: 4px;
}

.start-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #d6e0f2;
    border-top: 1px solid #9ca3af;
}

.start-footer button {
    background: linear-gradient(to bottom, #fff, #d8e4fa);
    border: 1px solid #9ca3af;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
}

.start-footer button:hover {
    background: #c7d8f0;
}

.menu-icons {
    width: 32px;
}

.start-body a {
    text-decoration: none;
}

.start-body li:hover {
    color: blue;
}

/* === PANEL ITEMS === */

.apps-panel {
    position: absolute;
    left: 98px;
    width: 512px;
    display: flex;
    transition: 0.2s;
}

.panel-icons {
    width: 28px;
    text-align: center;
    cursor: pointer;
    margin: 1px 1px 1px 2px;
    transition: 0.2s;
}

.panel-items {
    height: 28px;
    transition: 0.2s;
}

.panel-items:hover {
    background: rgba(0, 0, 0, 0.250);
}

.menu-panel-icon {
    z-index: 9;
    width: 100%;
    height: 32px;
    margin-left: -8px;
    cursor: pointer;
    transition: 0.2s;
}

.tools-panel {
    display: flex;
    transition: 0.2s;
}

.date-panel {
    font-size: 12px;
    text-align: center;
}

/* FIM DA BARRA */



/* ===== FIREFOX RETRÔ ===== */

.firefox-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #3a6ea5, #0a246a);
  color: white;
  padding: 0px 0px;
  font-family: Tahoma, sans-serif;
  font-size: 0px;
  height: 24px;
  border-bottom: 1px solid #002c6a;
}

.firefox-browser {
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
  background: #ece9d8;
}

.firefox-toolbar {
  background: #d4d0c8;
  padding: 0px;
  display: flex;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid #aaa;
}

.nav-btn {
  background: #ece9d8;
  border: 0px solid #888;
  font-size: 0px;
  cursor: pointer;
  padding: 0px 0px;
}

.nav-btn:hover {
  background: #bcd;
}

#firefox-url {
  flex: 1;
  border: 0px solid #666;
  padding: 0px;
  background: #fff;
  font-family: 'Courier New', monospace;
  font-size: 0px;
}

.firefox-content {
  flex: 1;
  padding: 10px;
  background: none;
  color: black;
  overflow-y: auto;
}

/* ==== PORTFÓLIO RETRÔ === */
.retro-page {
  font-family: "Comic Sans MS", cursive;
  background: url('images/bg_retro.gif');
  padding: 20px;
  border: 2px solid #0000aa;
  box-shadow: 4px 4px 0 #888;
}

.retro-page h1 {
  color: red;
  text-shadow: 1px 1px yellow;
  text-align: center;
  animation: blink 1s infinite;
}

.retro-page p {
  color: black;
  font-size: 14px;
  margin-bottom: 12px;
}

.retro-link {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: blue;
}

.retro-link:hover {
  text-decoration: underline;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

/* notepad ================ */

/* ===== NOTEPAD RETRÔ ===== */
.notepad-window {
  position: absolute;
  top: 120px;
  left: 120px;
  width: 0;
  height: 0;
  border: 0 solid transparent;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: 0.1s;
  border-radius: 3px;
  overflow: hidden;
  color: black;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.notepad-title-bar {
  background: linear-gradient(to bottom, #3a6ea5, #0a246a);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  font-size: 13px;
  padding: 2px 6px;
}

.notepad-buttons button {
  width: 22px;
  height: 20px;
  background: #d4d0c8;
  border: 1px solid #003366;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
}

.notepad-btn.close {
  background: red;
  color: white;
}

.notepad-menu-bar {
  background: #ece9d8;
  border-bottom: 1px solid #aaa;
  padding: 3px 6px;
  font-size: 12px;
  color: black;
}

.notepad-textarea {
  flex: 1;
  border: none;
  resize: none;
  outline: none;
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 8px;
  background: white;
  color: black;
}

