/* XP Window - Friendly Version */
.xp-window {
  background: white; /* Clean interior */
  border: 4px solid #245EDC; /* Thicker, friendlier border */
  border-radius: var(--radius-window);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xp-window-title {
  background: linear-gradient(180deg, #245EDC 0%, #3E80ED 15%, #245EDC 100%);
  color: white;
  padding: 8px 12px; /* More breathing room */
  font-family: var(--font-header);
  font-weight: bold;
  font-size: 15px;
  /* Top corners round to match container */
  /* border-radius: 8px 8px 0 0;  Removed to let overflow handle it naturally with parent radius */
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  height: 36px;
}

.xp-window-content {
    padding: 16px;
    background: #FFF;
    flex: 1;
    position: relative;
    /* Soft gradient background for content area sometimes looks nice */
    background: linear-gradient(to bottom, #FFF 0%, #F5F7FA 100%);
}

/* Panel variant (like system properties) */
.xp-panel {
    background: #F0F2F5;
    border-radius: var(--radius-panel);
    border: 1px solid #D8DCE5;
    padding: 15px;
}

.xp-window-controls {
    display: flex;
    gap: 6px;
}

.xp-control-btn {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 6px; /* Rounded squares */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
    line-height: 1;
    transition: transform 0.1s;
    padding: 0; /* Reset button padding */
    font-family: inherit;
}

.xp-control-btn:active {
    transform: scale(0.95);
}

.xp-control-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.xp-close-btn {
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5253 100%);
    border-color: #ff9f9f;
}

.xp-min-btn, .xp-max-btn {
    background: linear-gradient(180deg, #54a0ff 0%, #2e86de 100%);
    border-color: #a2d2ff;
}