/* * AmiBlue.css - Amiga Workbench 1.3 Style */
:root {
  --amiga-blue: #0055AA;
  --amiga-white: #FFFFFF;
  --amiga-black: #000000;
  --amiga-orange: #FF8800;
  --amiga-gray: #AAAAAA;
  /* Top Bar is White with Blue Text */
  --top-bg: var(--amiga-white);
  --top-text: var(--amiga-blue);
}

body {
  background-color: var(--amiga-blue);
  color: var(--amiga-white);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  cursor: default;
}

/* --- Top Bar --- */
.ami-top-bar {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 24px;
  background-color: var(--top-bg);
  color: var(--top-text);
  border: 2px solid var(--amiga-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-weight: bold;
  z-index: 1000;
  font-size: 14px;
  white-space: pre;
}

/* Depth Gadget (Right side of top bar) */
.ami-depth-gadget {
  display: flex;
  gap: 0;
  margin-right: 2px;
}

.ami-depth-front,
.ami-depth-back {
  width: 22px;
  height: 18px;
  border: 1px solid var(--amiga-black);
  position: relative;
  background: var(--amiga-blue);
  margin-left: -1px;
  /* Overlap borders */
}

/* Depth Icons */
.ami-depth-front::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 10px;
  background: var(--amiga-white);
  box-shadow: 2px 2px 0 var(--amiga-black);
}

.ami-depth-back::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 12px;
  height: 10px;
  background: var(--amiga-white);
  box-shadow: -2px -2px 0 var(--amiga-black);
  z-index: 1;
}

.ami-depth-back::before {
  /* Partial overlap effect */
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 10px;
  background: var(--amiga-blue);
  border: 1px solid var(--amiga-black);
}

/* --- Windows --- */
.ami-window {
  position: absolute;
  background-color: var(--amiga-blue);
  /* Content bg logic */
  border: 2px solid var(--amiga-white);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  /* Removed padding */
}

.ami-header {
  height: 20px;
  /* Horizontal Stripes: 2 visible white lines approximation */
  background: linear-gradient(180deg,
      var(--amiga-blue) 0%,
      var(--amiga-blue) 25%,
      var(--amiga-white) 25%,
      var(--amiga-white) 35%,
      var(--amiga-blue) 35%,
      var(--amiga-blue) 65%,
      var(--amiga-white) 65%,
      var(--amiga-white) 75%,
      var(--amiga-blue) 75%);
  border: 2px solid var(--amiga-white);
  border-bottom: 2px solid var(--amiga-black);
  display: flex;
  align-items: center;
  position: relative;
  /* width: 100%; removed to allow proper fit with padding */
  margin-bottom: 2px;
  box-sizing: border-box;
}

/* Window Title */
.ami-title {
  background-color: var(--amiga-white);
  color: var(--amiga-blue);
  padding: 0 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
  position: relative;
  margin: 0 auto;
  /* Center text? No, usually leftish but flexible */
  /* In WB 1.3 title replaces stripes where it sits. If active, White bg, Blue text. */
  border: 1px solid var(--amiga-black);
}

/* Gadgets */
.ami-btn-close {
  width: 18px;
  height: 16px;
  background-color: var(--amiga-white);
  border: 1px solid var(--amiga-black);
  cursor: pointer;
  position: absolute;
  left: 2px;
  z-index: 5;
}

.ami-window-controls {
  position: absolute;
  right: 2px;
  display: flex;
  gap: 0;
  z-index: 5;
}

.ami-btn-front,
.ami-btn-back {
  width: 18px;
  height: 16px;
  background-color: var(--amiga-white);
  border: 1px solid var(--amiga-black);
  cursor: pointer;
  margin-left: -1px;
}

/* Close Icon Box */
.ami-btn-close::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 2px solid var(--amiga-black);
}

/* Front/Back Icons */
.ami-btn-front::after {
  /* Overlapping boxes */
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--amiga-black);
  border-right: 2px solid var(--amiga-black);
  /* Simple arrow for front/back? Actually 1.3 uses two boxes overlapping */
}

/* Let's ignore exact icon detail for front/back and just keep boxes for now or refine if requested */
.ami-btn-front::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 6px;
  background: var(--amiga-black);
  /* Approximation */
}


/* Window Content */
.ami-content {
  background-color: var(--amiga-blue);
  color: var(--amiga-white);
  padding: 5px;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--amiga-white);
}

/* Scrollbars - Visual Only */
.ami-scroll-y {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 18px;
  width: 22px;
  background: var(--amiga-white);
  border-left: 2px solid var(--amiga-black);
}

.ami-scroll-x {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 22px;
  height: 18px;
  background: var(--amiga-white);
  border-top: 2px solid var(--amiga-black);
}

.ami-resize-gadget {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 18px;
  background: var(--amiga-white);
  border-top: 2px solid var(--amiga-black);
  border-left: 2px solid var(--amiga-black);
}

.ami-resize-gadget::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 10px;
  border: 1px solid var(--amiga-black);
  box-shadow: inset 0 0 0 2px var(--amiga-white), inset 0 0 0 3px var(--amiga-black);
  background: var(--amiga-white);
}

.ami-scroll-thumb {
  background: var(--amiga-white);
  border: 1px solid var(--amiga-black);
  position: absolute;
}

.ami-scroll-y .ami-scroll-thumb {
  top: 2px;
  left: 2px;
  right: 2px;
  height: 30px;
}

.ami-scroll-x .ami-scroll-thumb {
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 40px;
}


/* --- Icons Layout --- */
.ami-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 20px;
  padding: 15px 10px;
}

.ami-desktop-icons {
  position: absolute;
  top: 40px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.ami-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  cursor: pointer;
}

.ami-icon-label {
  font-family: inherit;
  font-size: 12px;
  color: var(--amiga-white);
  text-shadow:
    1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
  margin-top: 6px;
  text-align: center;
  padding: 0 2px;
}

/* --- Improved Icon Graphics --- */

/* Icons are now inline SVGs */
.ami-icon svg {
  filter: drop-shadow(3px 3px 0px var(--amiga-black));
  display: block;
  /* Fix spacing */
}

/* Shell Text Style inside SVG is handled by SVG attributes, but good to ensure font availability if needed. */

/* About Window Specifics */
.ami-logo-text {
  font-family: impact, sans-serif;
  font-size: 32px;
  color: #44AAE6;
  background: linear-gradient(180deg, #FFFFFF 0%, #88CCFF 50%, #0055AA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0 var(--amiga-black);
  margin: 0;
  letter-spacing: 2px;
  transform: skewX(-10deg);
}

.ami-about-text {
  color: var(--amiga-white);
}

/* Button */
.ami-button {
  background: var(--amiga-blue);
  color: var(--amiga-white);
  border: 2px solid var(--amiga-white);
  padding: 4px 20px;
  font-family: inherit;
  font-weight: bold;
  box-shadow: 4px 4px 0 var(--amiga-black);
  outline: none;
}

.ami-button:active {
  box-shadow: 2px 2px 0 var(--amiga-black);
  transform: translate(2px, 2px);
}

/* Dock */
.ami-dock {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--amiga-blue);
  border-top: 2px solid var(--amiga-black);
  display: flex;
  justify-content: center;
  padding-top: 10px;
  gap: 20px;
  z-index: 100;
}