
:root {
  --blur-bg: url('../img/background.jpg');
  --folder-bg-light: rgba(255, 255, 255, 0.25);
  --folder-bg-dark: rgba(0, 0, 0, 0.35);
  --border-color-light: rgba(255, 255, 255, 0.4);
  --border-color-dark: rgba(255, 255, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
}

html[data-theme='dark'] {
  background-color: #121212;
  color: #e0e0e0;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--blur-bg) center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blur-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px) brightness(0.75);
  z-index: 0;
}

.folder {
  position: relative;
  background: var(--folder-bg-light);
  border: 1px solid var(--border-color-light);
  border-radius: 18px;
  box-shadow: 0 8px 20px var(--shadow);
  backdrop-filter: blur(40px) saturate(180%);
  width: 500px;
  padding: 20px;
  z-index: 1;
  animation: fadeIn 0.8s ease;
}

html[data-theme='dark'] .folder {
  background: var(--folder-bg-dark);
  border: 1px solid var(--border-color-dark);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red { background: #ff605c; }
.yellow { background: #ffbd44; }
.green { background: #00ca56; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 10px;
}

.item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
}

.item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.75);
}

.item img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 10px;
}

.footer-label {
  text-align: right;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #999;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.theme-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .folder {
    width: 90%;
  }
}
