@import url('https://fonts.googleapis.com/css2?family=Tahoma:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  margin: 0;
  padding: 0;
  background: #ece9d8;
  color: #000;
  overflow-x: hidden;
}

.surface {
  background: #ece9d8;
  border: 2px outset #ece9d8;
}

/* Window title bar */
.window-title {
  background: linear-gradient(to bottom, #0054e3 0%, #1941a5 100%);
  color: white;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #316ac5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-button {
  width: 21px;
  height: 21px;
  background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
  border: 1px outset #ece9d8;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: 'Marlett', 'Webdings', sans-serif;
  line-height: 1;
}

.window-button:hover {
  background: linear-gradient(to bottom, #e3f2fd 0%, #bbdefb 100%);
  border-color: #316ac5;
}

.window-button:active {
  border: 1px inset #ece9d8;
  background: #d4d0c8;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.window-button.minimize::before {
  content: "0";
  font-family: 'Webdings';
}

.window-button.maximize::before {
  content: "1";
  font-family: 'Webdings';
}

.window-button.close::before {
  content: "r";
  font-family: 'Webdings';
  color: #000;
}

.window-button.close:hover {
  background: linear-gradient(to bottom, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.window-button.close:hover::before {
  color: white;
}

/* Windows XP Sidebar */
aside {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(to bottom, #0054e3 0%, #1941a5 100%);
  border-right: 2px inset #ece9d8;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 #316ac5;
}

aside h1 {
  color: white;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
  margin: 10px;
  font-size: 13px;
  font-weight: bold;
  background: rgba(255,255,255,0.1);
  padding: 5px;
  border-radius: 3px;
}

.tree-view {
  list-style: none;
  margin: 0;
  padding: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.tree-view h1 {
  font-size: 18px;
  margin-bottom: 8px;
  color: white;
}

.tree-view li {
  margin: 4px 0;
  padding-left: 20px;
}

.tree-view a {
  display: block;
  padding: 2px 4px;
  color: white !important;
  text-decoration: none !important;
  font-size: 16px;
  border-radius: 2px;
}

.tree-view a:link {
  color: white !important;
}

.tree-view a:visited {
  color: white !important;
}

.tree-view a:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.tree-view a:active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.2);
}

.tree-view a:focus {
  color: white !important;
  outline: 1px dotted white;
}

/* Main content area */
main {
  margin-left: 250px;
  padding: 0;
  background: white;
  min-height: calc(100vh - 100px);
  border: 2px inset #ece9d8;
  border-top: none;
}

.content-area {
  padding: 20px;
}

h1, h2 {
  color: #003c74;
  font-family: 'Tahoma', sans-serif;
}

h1 {
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 5px;
  background: #f0f0f0;
  padding: 8px;
  margin: 0 0 15px 0;
  border: 1px solid #c0c0c0;
}

h2 {
  font-size: 13px;
  margin: 15px 0 10px 0;
}

/* XP-style buttons */
button, input[type="button"], input[type="submit"], .xp-button {
  background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
  border: 1px outset #ece9d8;
  padding: 3px 8px;
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.1s ease;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, .xp-button:hover {
  background: linear-gradient(to bottom, #e3f2fd 0%, #bbdefb 100%);
  border-color: #316ac5;
}

button:active, input[type="button"]:active, input[type="submit"]:active, .xp-button:active {
  border: 1px inset #ece9d8;
  background: #d4d0c8;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

/* Links */
a {
  color: #0000ee;
  text-decoration: underline;
  transition: color 0.1s ease;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ee0000;
}

/* Images */
img {
  border: 2px inset #ece9d8;
  margin: 10px 0;
  transition: border-color 0.2s ease;
}

img:hover {
  border-color: #316ac5;
}

/* Footer */
footer {
  margin-left: 250px;
  background: #ece9d8;
  border-top: 2px inset #ece9d8;
  padding: 10px 20px;
  border-bottom: 2px outset #ece9d8;
}

footer main {
  margin-left: 0;
  background: #ece9d8;
  border: none;
  padding: 0;
  min-height: auto;
}

footer h2 {
  font-size: 11px;
  color: #000;
  margin: 5px 0;
}

footer p {
  font-size: 10px;
  margin: 5px 0;
}

/* Status bar */
.status-bar {
  background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
  border-top: 1px solid #c0c0c0;
  border-bottom: 1px outset #ece9d8;
  padding: 2px 5px;
  font-size: 10px;
  position: fixed;
  bottom: 0;
  left: 250px;
  right: 0;
  height: 22px;
  display: flex;
  align-items: center;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #d4d0c8;
  border: 1px inset #ece9d8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
  border: 1px outset #ece9d8;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #e3f2fd 0%, #bbdefb 100%);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(to bottom, #bbdefb 0%, #90caf9 100%);
  border: 1px inset #ece9d8;
}

/* Iframe styling */
iframe {
  border: 2px inset #ece9d8;
  background: white;
}

/* Animation for page transitions */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: fadeIn 0.3s ease-in;
}
