/* ==========================================================================
   DucNe Homelab Cloud - Dark Modern Liquid Glass Theme
   Designed for FileBrowser
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root, :root.dark {
  --blue: #38bdf8 !important;
  --dark-blue: #0284c7 !important;
  --red: #f43f5e !important;
  --dark-red: #be123c !important;
  --moon-grey: #1e293b !important;
  
  --icon-green: #10b981 !important;
  --icon-blue: #38bdf8 !important;
  --icon-orange: #fb923c !important;
  --icon-yellow: #facc15 !important;
  --icon-red: #f43f5e !important;
  --icon-violet: #a855f7 !important;
  
  --input-red: rgba(244, 63, 94, 0.2) !important;
  --input-green: rgba(16, 185, 129, 0.2) !important;
  --item-selected: rgba(56, 189, 248, 0.15) !important;
  
  --action: #38bdf8 !important;
  --background: #06080d !important;
  --surfacePrimary: rgba(11, 17, 32, 0.85) !important;
  --surfaceSecondary: rgba(30, 41, 59, 0.65) !important;
  --divider: rgba(255, 255, 255, 0.08) !important;
  
  --iconPrimary: #38bdf8 !important;
  --iconSecondary: #e2e8f0 !important;
  --iconTertiary: #64748b !important;
  
  --textPrimary: #94a3b8 !important;
  --textSecondary: #f8fafc !important;
  
  --hover: rgba(56, 189, 248, 0.08) !important;
  --borderPrimary: rgba(255, 255, 255, 0.08) !important;
  --borderSecondary: rgba(56, 189, 248, 0.3) !important;
  --dividerPrimary: rgba(255, 255, 255, 0.06) !important;
  --dividerSecondary: rgba(255, 255, 255, 0.12) !important;
}

/* Base Body Styles & Liquid Ambient Gradient */
html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  background-color: #06080d !important;
  color: #f1f5f9 !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
}

/* Loading Screen Animation */
#loading {
  background: #06080d !important;
}
#loading .spinner > div {
  background-color: #38bdf8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8) !important;
}

/* Top Sticky Header with Liquid Glass */
header {
  background: rgba(11, 17, 32, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}

header img {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
  transition: transform 0.2s ease;
}
header img:hover {
  transform: scale(1.05);
}

header title, header a {
  font-weight: 600 !important;
  color: #f8fafc !important;
}

/* Side Navigation Bar */
nav {
  background: rgba(8, 12, 22, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 1rem;
}

nav .action {
  border-radius: 10px !important;
  margin: 4px 10px !important;
  width: calc(100% - 20px) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

nav .action:hover, nav .action.active {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.12) !important;
  transform: translateX(3px);
}

nav .action i {
  color: #38bdf8 !important;
  margin-right: 8px;
}

/* Action buttons & toolbars */
.action {
  color: #e2e8f0 !important;
  transition: all 0.2s ease;
}
.action:hover {
  color: #38bdf8 !important;
}

/* Breadcrumbs bar */
.breadcrumbs {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 0.6rem 1rem !important;
  margin: 1rem 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.breadcrumbs a {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  transition: color 0.15s ease;
}
.breadcrumbs a:hover {
  color: #38bdf8 !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* File and Folder Listing Items */
.item {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  margin-bottom: 4px;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.item:hover {
  background: rgba(30, 41, 59, 0.65) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1) !important;
}

.item.active, .item[aria-selected="true"] {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2) !important;
}

/* File icons coloring */
.item i {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3));
}

/* Login Card & Dialogs */
.card {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  padding: 2rem !important;
}

.card-title h2, .card-title h3 {
  color: #f8fafc !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* Buttons */
.button, .button--blue {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  color: #04101e !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 0.65rem 1.4rem !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
  transition: all 0.2s ease !important;
}

.button:hover, .button--blue:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #7dd3fc 100%) !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px);
}

.button--flat {
  color: #38bdf8 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.button--flat:hover {
  background: rgba(56, 189, 248, 0.1) !important;
}

/* Form Inputs */
.input {
  background: rgba(6, 11, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #f8fafc !important;
  padding: 0.65rem 1rem !important;
  transition: all 0.2s ease !important;
}

.input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 15px rgba(56, 189, 248, 0.15) !important;
  outline: none !important;
}

/* Modals & Popups */
#modal-background {
  background-color: rgba(3, 7, 18, 0.8) !important;
  backdrop-filter: blur(8px) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #06080d;
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

