/* notaprivatecloud.com - Modern Dark Theme */
:root {
  --primary: #a855f7;
  --primary-hover: #9333ea;
  --primary-light: rgba(168, 85, 247, 0.15);
  --primary-glow: rgba(168, 85, 247, 0.4);
  --surface: #1e1e2e;
  --surface-elevated: #262637;
  --background: #11111b;
  --on-surface: #cdd6f4;
  --on-surface-secondary: #a6adc8;
  --border: #313244;
  --border-light: #45475a;
  --hover: rgba(255, 255, 255, 0.05);
  --selected: rgba(168, 85, 247, 0.2);
  --danger: #f38ba8;
  --danger-hover: #eba0ac;
  --success: #a6e3a1;
  --warning: #f9e2af;
  --accent-blue: #89b4fa;
  --accent-teal: #94e2d5;
  --accent-pink: #f5c2e7;
  --accent-peach: #fab387;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-width: 260px;
  --header-height: 68px;
  --details-width: 320px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --gradient-surface: linear-gradient(180deg, #1e1e2e 0%, #181825 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global hidden attribute support */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  font-size: 14px;
  color: var(--on-surface);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ===== Buttons ===== */
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 28px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-full {
  width: 100%;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition);
}

.btn-text:hover {
  background: var(--primary-light);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--on-surface-secondary);
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--on-surface);
}

/* ===== Login Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-3);
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.login-icon .material-icons-outlined {
  font-size: 40px;
  color: white;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card p {
  color: var(--on-surface-secondary);
  margin-bottom: 32px;
}

.login-form {
  text-align: left;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 16px;
  padding-top: 24px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--on-surface);
  transition: all var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-surface-secondary);
  transition: all var(--transition);
  pointer-events: none;
  background: var(--surface-elevated);
  padding: 0 4px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: var(--primary);
}

.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 16px;
  min-height: 18px;
}

.hint {
  font-size: 12px;
  color: var(--on-surface-secondary);
  margin-top: 24px;
}

/* ===== App Container ===== */
.app-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "header header"
    "sidebar main";
  height: 100vh;
  overflow: hidden;
}

.app-container[hidden] {
  display: none;
}

/* ===== Header ===== */
.header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.logo .material-icons-outlined {
  font-size: 36px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-container {
  flex: 1;
  max-width: 720px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.search-box:focus-within {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box .material-icons-outlined {
  color: var(--on-surface-secondary);
}

.search-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--on-surface);
  outline: none;
}

.search-box input::placeholder {
  color: var(--on-surface-secondary);
}

.search-filters {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-2);
}

.search-filters[hidden] {
  display: none;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--on-surface-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-only {
  display: none;
}

/* ===== Sidebar ===== */
.sidebar {
  position: relative;
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.new-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  height: 56px;
  padding: 0 28px 0 20px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-1);
  transition: all var(--transition);
}

.new-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.new-button .material-icons-outlined {
  font-size: 22px;
  color: white;
}

.dropdown-menu {
  position: absolute;
  top: 88px;
  left: 16px;
  min-width: 220px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 8px 0;
  z-index: 200;
}

.dropdown-menu[hidden] {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  text-align: left;
  color: var(--on-surface);
  transition: background var(--transition);
}

.menu-item:hover {
  background: var(--hover);
}

.menu-item .material-icons-outlined {
  font-size: 20px;
  color: var(--on-surface-secondary);
}

.menu-item.danger {
  color: var(--danger);
}

.menu-item.danger .material-icons-outlined {
  color: var(--danger);
}

.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--on-surface-secondary);
  transition: all var(--transition);
}

.nav-item:hover {
  background: var(--hover);
  color: var(--on-surface);
}

.nav-item.active {
  background: var(--selected);
  color: var(--primary);
}

.nav-item.active .material-icons-outlined {
  color: var(--primary);
}

.nav-item .material-icons-outlined {
  font-size: 22px;
}

.storage-info {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.storage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.storage-label .material-icons-outlined {
  font-size: 16px;
  color: var(--primary);
}

.storage-label.private-storage {
  margin-top: 16px;
}

.storage-label.private-storage .material-icons-outlined {
  color: var(--warning);
}

.storage-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.storage-bar.private {
  background: var(--border);
}

.storage-bar.private .storage-used {
  background: linear-gradient(
    135deg,
    var(--warning) 0%,
    var(--accent-peach) 100%
  );
}

.storage-used {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width var(--transition);
}

.storage-text {
  font-size: 11px;
  color: var(--on-surface-secondary);
}

/* ===== Main Content ===== */
.main-content {
  grid-area: main;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  overflow-y: auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--on-surface);
  transition: background var(--transition);
}

.breadcrumb-item:hover {
  background: var(--hover);
}

.breadcrumb-separator {
  color: var(--on-surface-secondary);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 40px;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.selection-info[hidden],
.toolbar-actions[hidden] {
  display: none;
}

/* ===== Drop Zone ===== */
.drop-zone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  z-index: 50;
  backdrop-filter: blur(4px);
}

.drop-zone[hidden] {
  display: none;
}

.drop-zone-content {
  text-align: center;
  color: var(--primary);
}

.drop-zone-content .material-icons-outlined {
  font-size: 56px;
  margin-bottom: 12px;
}

/* ===== Loading Skeleton ===== */
.skeleton-card {
  height: 180px;
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    var(--surface-elevated) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== Empty State ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--on-surface-secondary);
}

.empty-state[hidden] {
  display: none;
}

.empty-state .material-icons-outlined {
  font-size: 96px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.empty-state h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--on-surface);
}

/* ===== Trash Actions ===== */
.trash-actions {
  margin-bottom: 16px;
}

.trash-actions[hidden] {
  display: none;
}

/* ===== File Grid ===== */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.file-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.file-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-light);
}

.file-card.selected {
  background: var(--selected);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.file-card.folder {
  background: var(--surface);
}

.file-thumbnail {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  overflow: hidden;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumbnail .material-icons-outlined {
  font-size: 56px;
  color: var(--on-surface-secondary);
}

.file-thumbnail.folder-icon .material-icons-outlined {
  color: var(--accent-peach);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.file-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon .material-icons-outlined {
  font-size: 24px;
}

.file-icon.folder .material-icons-outlined {
  color: var(--accent-peach);
}
.file-icon.image .material-icons-outlined {
  color: var(--danger);
}
.file-icon.video .material-icons-outlined {
  color: var(--accent-pink);
}
.file-icon.audio .material-icons-outlined {
  color: var(--warning);
}
.file-icon.pdf .material-icons-outlined {
  color: var(--danger);
}
.file-icon.doc .material-icons-outlined {
  color: var(--accent-blue);
}
.file-icon.sheet .material-icons-outlined {
  color: var(--success);
}
.file-icon.archive .material-icons-outlined {
  color: var(--on-surface-secondary);
}
.file-icon.code .material-icons-outlined {
  color: var(--primary);
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.file-meta {
  font-size: 12px;
  color: var(--on-surface-secondary);
}

.file-star {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-secondary);
  opacity: 0;
  transition: opacity var(--transition);
}

.file-card:hover .file-star,
.file-card.starred .file-star {
  opacity: 1;
}

.file-card.starred .file-star {
  color: #fbbc04;
}

/* ===== File List View ===== */
.file-list {
  display: flex;
  flex-direction: column;
}

.file-list[hidden] {
  display: none;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}

.file-row:hover {
  background: var(--hover);
}

.file-row.selected {
  background: var(--selected);
}

.file-row .file-icon {
  width: 24px;
}

.file-row .file-name {
  flex: 1;
  font-weight: 400;
}

.file-row .file-date,
.file-row .file-size {
  width: 120px;
  font-size: 13px;
  color: var(--on-surface-secondary);
}

/* ===== Details Panel ===== */
.details-panel {
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  width: var(--details-width);
  background: var(--surface);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.details-panel[hidden] {
  display: none;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.details-header h3 {
  font-size: 16px;
  font-weight: 500;
}

.details-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  overflow: hidden;
}

.details-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.details-preview .material-icons-outlined {
  font-size: 64px;
  color: var(--on-surface-secondary);
}

.details-info {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.details-row {
  margin-bottom: 16px;
}

.details-label {
  font-size: 12px;
  color: var(--on-surface-secondary);
  margin-bottom: 4px;
}

.details-value {
  font-size: 14px;
}

/* ===== Context Menu ===== */
.context-menu {
  position: fixed;
  min-width: 220px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 8px 0;
  z-index: 300;
}

.context-menu[hidden] {
  display: none;
}

/* ===== Preview Modal ===== */
.preview-container {
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.preview-header h3 {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-actions {
  display: flex;
  gap: 4px;
}

.preview-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: #1a1a1a;
}

.preview-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.preview-content pre {
  width: 100%;
  height: 100%;
  padding: 16px;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ===== Upload Progress ===== */
.upload-progress {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  z-index: 200;
}

.upload-progress[hidden] {
  display: none;
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
}

.upload-list {
  max-height: 200px;
  overflow-y: auto;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.upload-item:last-child {
  border-bottom: none;
}

.upload-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-item-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.upload-item-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s;
}

.upload-item .material-icons-outlined {
  font-size: 20px;
}

.upload-item .material-icons-outlined.success {
  color: var(--success);
}

/* ===== Dialog ===== */
.dialog-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dialog-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Private Dialog */
.private-dialog {
  text-align: center;
  padding: 32px;
}

.private-dialog h2 {
  margin-bottom: 8px;
}

.private-dialog p {
  color: var(--on-surface-secondary);
  margin-bottom: 24px;
}

.private-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--warning) 0%,
    var(--accent-peach) 100%
  );
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(249, 226, 175, 0.3);
}

.private-icon .material-icons-outlined {
  font-size: 36px;
  color: #11111b;
}

.private-dialog .input-group {
  text-align: left;
  margin-bottom: 8px;
}

.private-dialog .dialog-actions {
  justify-content: center;
  margin-top: 16px;
}

/* Private Nav Item */
.nav-item.private .material-icons-outlined {
  color: var(--warning);
}

.nav-item.private.active {
  background: rgba(249, 226, 175, 0.15);
  color: var(--warning);
}

.nav-item.private.active .material-icons-outlined {
  color: var(--warning);
}

.folder-tree {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
}

.folder-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.folder-tree-item:hover {
  background: var(--hover);
}

.folder-tree-item.selected {
  background: var(--selected);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 400;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface-elevated);
  color: var(--on-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.error {
  background: rgba(243, 139, 168, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.toast.success {
  background: rgba(166, 227, 161, 0.15);
  border-color: var(--success);
  color: var(--success);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .details-panel {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .mobile-only {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-2);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .header-left {
    min-width: auto;
  }

  .logo-text {
    display: none;
  }

  .details-panel {
    width: 100%;
    left: 0;
  }

  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .file-thumbnail {
    height: 100px;
  }

  .file-row .file-date {
    display: none;
  }

  .main-content {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .search-container {
    display: none;
  }

  .file-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .file-thumbnail {
    height: 80px;
  }

  .file-info {
    padding: 8px;
    gap: 8px;
  }

  .preview-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
