/* =====================================================
   CloudVault - Cloud Data Storage Platform
   Modern Glassmorphism Design
   ===================================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Dark Theme */
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Spacing */
  --sidebar-width: 280px;
  --header-height: 80px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 6px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(34, 211, 238, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-sidebar {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-xs);
  transition: var(--transition);
}

.close-sidebar:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.close-sidebar svg {
  width: 20px;
  height: 20px;
}

/* Navigation */
.nav-menu {
  flex: 1;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active .nav-link {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  color: var(--text-primary);
}

.nav-item.active .nav-link::before {
  height: 60%;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-link span {
  flex: 1;
}

.badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Storage Info */
.storage-info {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 24px 0;
}

.storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.storage-header span:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.storage-usage {
  color: var(--accent);
  font-weight: 700;
}

.storage-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.storage-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  position: relative;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.storage-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  margin-top: auto;
}

.user-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-xs);
  transition: var(--transition);
}

.user-menu-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.user-menu-btn svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 280px;
  padding: 14px 16px 14px 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.notification-btn {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.notification-btn svg {
  width: 20px;
  height: 20px;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: notificationPulse 1.5s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.add-file-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border: none;
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.add-file-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.add-file-btn svg {
  width: 18px;
  height: 18px;
}

/* Section Title */
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Quick Access */
.quick-access {
  margin-bottom: 48px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-access-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.quick-access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.quick-access-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--glass-shadow);
}

.quick-access-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-icon.folder {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(99, 102, 241, 0.1) 100%
  );
  color: var(--primary-light);
}

.card-icon.image {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.2) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  color: var(--secondary);
}

.card-icon.video {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.2) 0%,
    rgba(34, 211, 238, 0.1) 100%
  );
  color: var(--accent);
}

.card-icon.audio {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  color: var(--success);
}

.card-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.card-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  padding: 4px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
}

.view-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.view-btn svg {
  width: 18px;
  height: 18px;
}

/* Files Grid */
.files-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* File Card */
.file-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.5s ease-out backwards;
}

.file-card:nth-child(1) {
  animation-delay: 0.05s;
}
.file-card:nth-child(2) {
  animation-delay: 0.1s;
}
.file-card:nth-child(3) {
  animation-delay: 0.15s;
}
.file-card:nth-child(4) {
  animation-delay: 0.2s;
}
.file-card:nth-child(5) {
  animation-delay: 0.25s;
}
.file-card:nth-child(6) {
  animation-delay: 0.3s;
}
.file-card:nth-child(7) {
  animation-delay: 0.35s;
}
.file-card:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.file-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.file-card:hover::before {
  opacity: 1;
}

.file-preview {
  width: 100%;
  height: 100px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview svg {
  width: 40px;
  height: 40px;
}

.file-preview.pdf {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(239, 68, 68, 0.1) 100%
  );
  color: #ef4444;
}

.file-preview.doc {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
  color: #3b82f6;
}

.file-preview.xls {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  color: #10b981;
}

.file-preview.ppt {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2) 0%,
    rgba(245, 158, 11, 0.1) 100%
  );
  color: #f59e0b;
}

.file-preview.video {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.2) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  color: #ec4899;
}

.file-preview.zip {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  color: #8b5cf6;
}

.file-preview.mp3 {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.2) 0%,
    rgba(34, 211, 238, 0.1) 100%
  );
  color: #22d3ee;
}

.file-preview.image {
  background: var(--bg-tertiary);
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-card:hover .file-menu {
  opacity: 1;
}

.file-menu:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.file-menu svg {
  width: 16px;
  height: 16px;
}

/* List View */
.files-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.files-grid.list-view .file-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

.files-grid.list-view .file-preview {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  margin-right: 16px;
  flex-shrink: 0;
}

.files-grid.list-view .file-info {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.files-grid.list-view .file-name {
  flex: 1;
}

.files-grid.list-view .file-menu {
  position: static;
  opacity: 1;
}

/* =====================================================
   MOBILE TOGGLE
   ===================================================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 200;
  position: fixed;
  top: 20px;
  left: 20px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet */
@media (max-width: 1200px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .files-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Mobile / Small Tablet */
@media (max-width: 992px) {
  .files-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-input {
    width: 200px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Mobile Toggle */
  .mobile-toggle {
    display: flex;
  }

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    background: var(--bg-secondary);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .close-sidebar {
    display: flex;
  }

  /* Overlay */
  .overlay {
    display: block;
  }

  /* Main Content */
  .main-content {
    margin-left: 0;
    padding: 80px 20px 30px;
  }

  /* Header */
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1;
    min-width: 200px;
  }

  .search-input {
    width: 100%;
  }

  .add-file-btn span {
    display: none;
  }

  .add-file-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

  /* Page Title */
  .page-title {
    font-size: 1.5rem;
  }

  /* Quick Access */
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quick-access-card {
    padding: 16px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }

  .card-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Files Grid */
  .files-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .file-card {
    padding: 14px;
  }

  .file-preview {
    height: 80px;
  }

  .file-preview svg {
    width: 32px;
    height: 32px;
  }

  .file-name {
    font-size: 0.85rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .quick-access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }

  .header-right {
    gap: 10px;
  }

  .search-box {
    min-width: 100%;
  }

  .notification-btn {
    display: none;
  }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
