:root {
  --bg-dark: #0d0416;
  --win-bg: #1a0b2e;
  --border-color: #6b2cf5;
  --text-main: #e0d4fc;
  --accent-pink: #ff00ff;
  --accent-cyan: #00ffcc;
  --title-gradient: linear-gradient(90deg, #10002b 0%, #5a189a 100%);
}

.main-right-window {
    min-width: 100%;
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #240046;
    border-top: 2px solid #7b2cbf;
    border-left: 2px solid #7b2cbf;
    border-right: 2px solid #10002b;
    border-bottom: 2px solid #10002b;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

.window-top-bar {
  background-image: var(--title-gradient);
  color: #fff;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--win-bg);
  flex-shrink: 0;
}

.window-title {
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.win-btn {
    width: 2vh;
    height: 2vh;
    background-color: #9d4edd;
    border-top: 1px solid #e0aaff;
    border-left: 1px solid #e0aaff;
    border-right: 1px solid #240046;
    border-bottom: 1px solid #240046;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1vh;
    line-height: 1;
    font-weight: bold;
    margin-left: 5px;
}

.win-btn:active {
    border-color: #240046 #e0aaff #e0aaff #240046;
}

.win-btn:hover {
  background-color: #7b3dff;
  cursor: pointer;
}

.window-content-area {
  flex-grow: 1; 
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mini-window {
  width: 100%;
  border: 2px solid var(--border-color);
  background-color: var(--win-bg);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5); 
  display: flex;
  flex-direction: column;
  box-sizing: border-box; 
}

.mw-header {
  background-color: var(--border-color);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid var(--win-bg);
  transition: background-color 0.2s;
}

.mw-header:hover {
  background-color: #7b3dff;
}

.mw-toggle {
  background: #0d0416;
  color: var(--accent-pink);
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  font-size: 14px;
  line-height: 1;
}

.mw-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background-color: #150826;
}

.mw-content-inner {
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buttretro {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.2);
  cursor: pointer;
  font-weight: bold;
}

.buttretro:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.mini-window.active .mw-body {
  max-height: 120px; 
}
.mini-window.active .mw-toggle::before { content: "-"; }
.mw-toggle::before { content: "□"; }