/* PROJECTS PAGE - windows 95 desktop */

* {
  box-sizing: border-box;
}

body {
  background-color: #008080;
  color: #000000;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: 'Proggy Clean SZ', monospace;
  cursor: default;
}

a {
  color: #000000;
  text-decoration: none;
}

/* ======================== */
/*       BOOT SCREEN        */
/* ======================== */

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boot-fade 0.3s ease 2s forwards;
}

#boot-screen .boot-text {
  color: #aaaaaa;
  font-size: 0.95em;
  line-height: 1.8;
}

#boot-screen .boot-text p {
  margin: 0;
  animation: boot-type 0.1s ease both;
}

#boot-screen .boot-text p:nth-child(1) { animation-delay: 0s; }
#boot-screen .boot-text p:nth-child(2) { animation-delay: 0.4s; }
#boot-screen .boot-text p:nth-child(4) { animation-delay: 1s; }

.boot-cursor {
  animation: blink-cursor 0.5s step-end infinite;
}

@keyframes boot-type {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes boot-fade {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ======================== */
/*        DESKTOP           */
/* ======================== */

#desktop {
  width: 100%;
  height: calc(100vh - 32px);
  padding: 12px;
  position: relative;
}

/* ======================== */
/*      DESKTOP ICONS       */
/* ======================== */

#desktop-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  padding: 4px;
  text-align: center;
  color: #ffffff;
  font-size: 0.75em;
  text-shadow: 1px 1px 1px #000000;
  cursor: pointer;
}

.desktop-icon .icon-img {
  font-size: 2em;
  margin-bottom: 2px;
  text-shadow: none;
}

.desktop-icon:hover span,
.desktop-icon:focus span {
  background: #000080;
  color: #ffffff;
  outline: 1px dotted #ffffff;
}

.desktop-icon.disabled {
  opacity: 0.7;
}

/* ======================== */
/*     WIN95 WINDOW BASE    */
/* ======================== */

.window {
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  background: #c0c0c0;
  box-shadow: 2px 2px 0px #000000;
}

.window-inner {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  margin: 2px;
  display: flex;
  flex-direction: column;
}

/* ======================== */
/*        TITLE BAR         */
/* ======================== */

.title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 2px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 0.9em;
  user-select: none;
  min-height: 20px;
  cursor: grab;
}

.title-bar:active {
  cursor: grabbing;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 3px;
}

.title-bar-icon {
  font-size: 0.9em;
}

.title-bar-text {
  padding-left: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  font-size: 0.7em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  line-height: 1;
}

.ctrl-btn:active {
  border-color: #404040 #dfdfdf #dfdfdf #404040;
}

/* inactive window */
.title-bar.inactive {
  background: linear-gradient(90deg, #808080, #b0b0b0);
}

/* ======================== */
/*        MENU BAR          */
/* ======================== */

.menu-bar {
  background: #c0c0c0;
  padding: 1px 0;
  border-bottom: 1px solid #808080;
  display: flex;
  gap: 0;
}

.menu-bar span {
  padding: 2px 8px;
  color: #000000;
  font-size: 0.85em;
  cursor: default;
}

.menu-bar span:hover {
  background: #000080;
  color: #ffffff;
}

/* ======================== */
/*        TOOLBAR           */
/* ======================== */

.toolbar {
  background: #c0c0c0;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid #808080;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  background: #c0c0c0;
  border: 1px solid transparent;
  font-size: 0.75em;
  color: #000000;
  cursor: default;
  padding: 0 4px;
}

.toolbar-btn:hover {
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
}

.toolbar-btn:active {
  border-color: #404040 #dfdfdf #dfdfdf #404040;
}

.toolbar-sep {
  width: 2px;
  height: 18px;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  margin: 0 3px;
}

/* ======================== */
/*       ADDRESS BAR        */
/* ======================== */

.address-bar {
  background: #c0c0c0;
  padding: 3px 4px;
  border-bottom: 1px solid #808080;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.address-bar-label {
  color: #000000;
  padding: 0 2px;
}

.address-bar-field {
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 1px 4px;
  color: #000000;
  flex: 1;
  font-family: 'Proggy Clean SZ', monospace;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.address-go {
  font-size: 0.85em;
  padding: 0 8px;
}

/* ======================== */
/*      EXPLORER BODY       */
/* ======================== */

.explorer-body {
  display: flex;
  border: 1px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  margin: 2px;
  background: #ffffff;
  min-height: 200px;
}

/* TREE PANE (left sidebar) */
.tree-pane {
  width: 160px;
  min-width: 160px;
  background: #ffffff;
  border-right: 2px solid;
  border-right-color: #c0c0c0;
  font-size: 0.85em;
  overflow: hidden;
}

.tree-header {
  background: #c0c0c0;
  padding: 2px 4px;
  font-size: 0.9em;
  border-bottom: 1px solid #808080;
  color: #000000;
}

.tree-content {
  padding: 4px;
}

.tree-item {
  padding: 1px 2px;
  white-space: nowrap;
  cursor: default;
}

.tree-item.indent {
  padding-left: 16px;
}

.tree-item.indent2 {
  padding-left: 32px;
}

.tree-item.active {
  background: #000080;
  color: #ffffff;
}

/* FILE PANE (right main area) */
.file-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-headers {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 0.8em;
  user-select: none;
}

.column-headers span {
  padding: 2px 6px;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #dfdfdf;
  cursor: default;
}

.col-name { flex: 2; }
.col-size { width: 70px; }
.col-type { width: 80px; }
.col-status { width: 70px; }

/* ======================== */
/*       FOLDER LIST        */
/* ======================== */

.folder-list {
  list-style: none;
  padding: 2px;
  margin: 0;
  flex: 1;
}

.folder-item {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9em;
}

.folder-item:hover {
  background: #000080;
  color: #ffffff;
}

.folder-item:hover .folder-status {
  color: #ffffff;
}

.folder-item.selected {
  background: #000080;
  color: #ffffff;
}

.folder-item.selected .folder-status {
  color: #ffffff;
}

.folder-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 4px;
}

.folder-name {
  flex: 2;
}

.folder-size {
  width: 70px;
  color: #808080;
  font-size: 0.9em;
}

.folder-type {
  width: 80px;
  color: #808080;
  font-size: 0.9em;
}

.folder-status {
  width: 70px;
  font-size: 0.85em;
  font-weight: bold;
}

.folder-status.live { color: #008000; }
.folder-status.wip { color: #808000; }
.folder-status.done { color: #808080; }

/* ======================== */
/*       STATUS BAR         */
/* ======================== */

.status-bar {
  background: #c0c0c0;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: #000000;
  margin: 2px;
}

.status-bar-field {
  border: 1px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 1px 6px;
}

/* ======================== */
/*    EXPLORER POSITION     */
/* ======================== */

#explorer {
  position: absolute;
  top: 30px;
  left: 110px;
  width: 600px;
  z-index: 10;
  animation: window-open 0.15s ease-out;
}

@keyframes window-open {
  from {
    transform: scale(0.95);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ======================== */
/*    PROPERTIES DIALOG     */
/* ======================== */

.props-window {
  width: 380px;
  position: absolute;
  animation: window-open 0.12s ease-out;
}

.props-window .title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
}

.props-body {
  background: #c0c0c0;
  padding: 8px;
}

/* TAB STRIP */
.tab-strip {
  display: flex;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.tab {
  padding: 3px 12px;
  background: #c0c0c0;
  border: 1px solid #808080;
  border-bottom: none;
  margin-right: 1px;
  font-size: 0.85em;
  cursor: default;
  position: relative;
  top: 1px;
}

.tab.active {
  background: #c0c0c0;
  border-color: #404040;
  border-bottom: 1px solid #c0c0c0;
  z-index: 2;
  font-weight: bold;
}

/* TAB CONTENT */
.tab-content {
  background: #c0c0c0;
  border: 1px solid #404040;
  padding: 12px;
}

.props-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #808080;
}

.props-icon {
  font-size: 2.2em;
}

.props-filename {
  font-weight: bold;
  font-size: 1em;
}

.props-field {
  display: flex;
  margin-bottom: 3px;
  font-size: 0.9em;
}

.props-label {
  width: 75px;
  color: #000000;
  flex-shrink: 0;
}

.props-value {
  color: #000000;
}

.props-divider {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #dfdfdf;
  margin: 8px 0;
}

.props-description {
  font-size: 0.9em;
  line-height: 1.5;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 6px 8px;
  margin: 8px 0;
}

/* TECH TAGS */
.props-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.tech-tag {
  display: inline-block;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  padding: 1px 8px;
  font-size: 0.8em;
  color: #000000;
  font-family: 'Proggy Clean SZ', monospace;
}

/* DIALOG BUTTONS */
.props-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
}

.win-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  padding: 3px 20px;
  font-family: 'Proggy Clean SZ', monospace;
  font-size: 0.85em;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 75px;
}

.win-btn:hover {
  color: #000000;
}

.win-btn:active {
  border-color: #404040 #dfdfdf #dfdfdf #404040;
}

.win-btn:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.win-btn.primary {
  border: 3px solid #000000;
  border-color: #000000;
  position: relative;
}

.win-btn.primary::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border: 1px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
}

/* ======================== */
/*        TASKBAR           */
/* ======================== */

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: #c0c0c0;
  border-top: 2px solid;
  border-top-color: #dfdfdf;
  display: flex;
  align-items: center;
  padding: 2px 2px;
  z-index: 9998;
  font-size: 0.85em;
}

#start-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  padding: 2px 6px;
  font-family: 'Proggy Clean SZ', monospace;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

#start-btn:active {
  border-color: #404040 #dfdfdf #dfdfdf #404040;
}

.start-flag {
  font-size: 1.1em;
}

.taskbar-divider {
  width: 2px;
  height: 22px;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  margin: 0 3px;
}

#taskbar-items {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow: hidden;
}

.taskbar-item {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  padding: 2px 8px;
  font-size: 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.taskbar-item.active {
  border-color: #404040 #dfdfdf #dfdfdf #404040;
  background: #b0b0b0;
  font-weight: bold;
}

.systray {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  padding: 1px 8px;
  height: 22px;
  margin-left: auto;
}

.systray-icon {
  font-size: 0.85em;
}

.systray-clock {
  color: #000000;
  font-size: 0.95em;
  min-width: 65px;
  text-align: center;
}

/* ======================== */
/*      LOADING / ERROR     */
/* ======================== */

.loading {
  color: #808080;
  text-align: center;
  padding: 2rem;
  margin: 0;
}

.error {
  color: #ff0000;
  text-align: center;
  padding: 2rem;
  margin: 0;
}

/* ======================== */
/*      BLINKING CURSOR     */
/* ======================== */

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* DRAGGING STATE */
body.dragging {
  cursor: grabbing !important;
  user-select: none;
}

body.dragging * {
  cursor: grabbing !important;
}
