/* ==========================================================================
   01. Reset & Global Styles
   ========================================================================== */
.sm-01,
.sm-01 *,
.sm-01 *::before,
.sm-01 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sm-01 ::selection {
  background: #7c3aed;
  color: #fff;
}

.sm-01 {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --menu-bg: #1a1033;
  --accent: #7c3aed;
  --accent2: #a78bfa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(124, 58, 237, 0.2);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --menu-w: 280px;
  --duration: 0.4s;
  
  background-attachment: fixed;
  background-image: url("../img/wallpaper.jpg"), linear-gradient(135deg, #1a1033 0%, #0f172a 55%, #312e81 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  height: 100vh;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

html, body {
  background-image: url(../img/wallpaper.jpg);
  margin: 0;
}


/* ==========================================================================
   02. Navigation & Sidebar
   ========================================================================== */
.sm-01__toggle {
  height: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.sm-01__burger {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 42px;
  justify-content: center;
  left: 20px;
  position: absolute;
  top: 20px;
  transition: background .2s, border-color .2s;
  width: 42px;
  z-index: 50;
}

.sm-01__burger:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.sm-01__burger span {
  background: var(--text);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform var(--duration), opacity var(--duration);
  transform-origin: center;
  width: 20px;
}

.sm-01__toggle:checked ~ .sm-01__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sm-01__toggle:checked ~ .sm-01__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.sm-01__toggle:checked ~ .sm-01__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sm-01__nav {
  background: hsl(0 0% 0% / var(--glass-frost, 0.15));
  -webkit-backdrop-filter: var(--filter-id, blur(16px)) saturate(var(--glass-saturation, 1.4));
  backdrop-filter: var(--filter-id, blur(16px)) saturate(var(--glass-saturation, 1.4));
  border-right: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, .25), inset -4px 0 16px rgba(17, 17, 26, .15), 4px 0 32px rgba(0, 0, 0, .37);
  display: flex;
  flex-direction: column;
  height: 100%;
  left: 0;
  padding: 80px 0 24px;
  position: absolute;
  top: 0;
  transform: translateX(-100%);
  transition: transform var(--duration) cubic-bezier(.4, 0, .2, 1);
  width: var(--menu-w);
  z-index: 40;
}

.sm-01__toggle:checked ~ .sm-01__nav {
  transform: translateX(0);
}

.sm-01__brand {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 24px 24px;
}

.sm-01__logo {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.sm-01__brand-name {
  font-size: 16px;
  font-weight: 700;
}

.sm-01__brand-sub {
  color: var(--muted);
  font-size: 11px;
}

.sm-01__links {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}

.sm-01__link {
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 14px;
  margin-bottom: 4px;
  padding: 13px 16px;
  text-decoration: none;
  transition: all .2s;
}

.sm-01__link:hover {
  background: rgba(124, 58, 237, .15);
  color: var(--text);
}

.sm-01__link--active {
  background: rgba(124, 58, 237, .2);
  color: var(--text);
}

.sm-01__link-icon {
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  transition: background .2s;
  width: 36px;
}

.sm-01__link:hover .sm-01__link-icon,
.sm-01__link--active .sm-01__link-icon {
  background: var(--accent);
}

.sm-01__nav-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px 0;
}

.sm-01__avatar {
  align-items: center;
  display: flex;
  gap: 12px;
}

.sm-01__avatar-img {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.sm-01__avatar-name {
  font-size: 13px;
  font-weight: 600;
}

.sm-01__avatar-role {
  color: var(--muted);
  font-size: 11px;
}


/* ==========================================================================
   03. Explorer & Content Area
   ========================================================================== */
.explorer__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding: 80px 24px 24px 80px;
}

.explorer__toolbar {
  align-items: center;
  background: hsl(0 0% 0% / .25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.explorer__breadcrumbs {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

.explorer__breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.explorer__breadcrumbs a:hover {
  color: var(--text);
}

.explorer__breadcrumbs .sep {
  color: var(--muted);
  opacity: .6;
}

.explorer__actions {
  display: flex;
  gap: 10px;
}

.explorer__btn {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.explorer__btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.explorer__btn--gdrive {
  border-color: rgba(66, 133, 244, .4);
}

.explorer__btn--mediafire {
  border-color: rgba(0, 112, 255, .4);
}

.explorer__btn i {
  margin-right: 8px;
}

.explorer__search {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex: 1;
  gap: 10px;
  max-width: 340px;
  min-width: 220px;
  padding: 8px 14px;
}

.explorer__search input {
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: 0;
  width: 100%;
}

.explorer__search i {
  color: var(--muted);
  font-size: 13px;
}

.explorer__section-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.explorer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}


/* ==========================================================================
   04. Cards & File Items
   ========================================================================== */
.file-item {
  background: hsl(0 0% 0% / .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  transition: background .2s, transform .2s, border-color .2s;
}

.file-item:hover {
  background: rgba(124, 58, 237, .15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.file-item__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.file-item__icon {
  align-items: center;
  background: rgba(124, 58, 237, .15);
  border-radius: 10px;
  display: flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.file-item__badge {
  background: rgba(124, 58, 237, .2);
  color: var(--accent2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  text-transform: uppercase;
}

.file-item__title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__info {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.file-item--static:hover {
  background: hsl(0 0% 0% / .2);
  border-color: var(--border);
  transform: none;
}

.file-item__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.file-item__value {
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}

.file-item__value a {
  color: var(--accent2);
  font-family: monospace;
  font-size: 12px;
  text-decoration: none;
}

.file-item__value a:hover {
  text-decoration: underline;
}

.sm-01__card {
  background: hsl(0 0% 0% / var(--glass-frost, 0.15));
  -webkit-backdrop-filter: var(--filter-id, blur(16px)) saturate(var(--glass-saturation, 1.3));
  backdrop-filter: var(--filter-id, blur(16px)) saturate(var(--glass-saturation, 1.3));
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, .35), inset 0 0 10px 4px rgba(255, 255, 255, .12), inset 0 4px 16px rgba(17, 17, 26, .05), inset 0 8px 24px rgba(17, 17, 26, .05), 0 12px 32px rgba(0, 0, 0, .3);
  padding: 32px;
  text-align: center;
}

.sm-01__heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sm-01__subhead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.sm-01__btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  transition: opacity .2s ease;
}

.sm-01__btn:hover {
  opacity: .9;
}


/* ==========================================================================
   05. Notifications & Stack
   ========================================================================== */
.notice-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  position: fixed;
  right: 20px;
  top: 20px;
  width: calc(100% - 40px);
  z-index: 100;
}

.notice-item {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
}

.notice-item__inner {
  overflow: hidden;
}

.notice-container {
  background: hsl(0 0% 0% / var(--glass-frost, 0.25));
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, .25), inset 0 0 10px 2px rgba(255, 255, 255, .08), 0 10px 25px rgba(0, 0, 0, .4);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  line-height: 1.4;
  opacity: 1;
  padding: 14px 16px;
  position: relative;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1), margin .4s cubic-bezier(.4, 0, .2, 1);
}

.notice-container--warning {
  border-left: 3px solid #f59e0b;
}

.notice-container--owner {
  border-left: 3px solid #ef4444;
}

.mac-controls {
  align-items: center;
  display: flex;
  gap: 6px;
}

.mac-close-toggle {
  display: none;
}

.mac-dot {
  align-items: center;
  border-radius: 50%;
  color: transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 8px;
  height: 11px;
  justify-content: center;
  transition: filter .15s ease;
  user-select: none;
  width: 11px;
}

.mac-dot:hover {
  color: rgba(0, 0, 0, .6);
  filter: brightness(.85);
}

.mac-dot--close {
  background: #ff5f56;
  border: .5px solid #e0443e;
}

.mac-dot--minimize {
  background: #ffbd2e;
  border: .5px solid #dea123;
}

.mac-dot--zoom {
  background: #27c93f;
  border: .5px solid #1aab29;
}

.notice-body {
  align-items: center;
  display: flex;
  gap: 10px;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 16px;
}

#close-warning:checked + .notice-item,
#close-owner:checked + .notice-item {
  grid-template-rows: 0fr;
}

#close-warning:checked + .notice-item .notice-container,
#close-owner:checked + .notice-item .notice-container {
  margin-bottom: -12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(.92);
}


/* ==========================================================================
   06. Details & Utilities
   ========================================================================== */
.detail__icon {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  display: flex;
  font-size: 42px;
  height: 88px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 88px;
}

.detail__chip {
  display: inline-block;
  margin-bottom: 12px;
}

.detail__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.detail__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail__pager .spacer {
  flex: 1;
}

.hidden {
  display: none !important;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
}


/* ==========================================================================
   07. Media Queries
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .sm-01__nav,
  .sm-01__burger span,
  .notice-item,
  .notice-container {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .explorer__content {
    padding: 76px 14px 16px;
  }
  .explorer__search {
    max-width: none;
  }
}