/* Skynet Files - Custom UI Enhancement */

/* Smooth & modern look */
* {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Better sidebar */
#sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}

#sidebar .action {
  color: #94a3b8 !important;
  font-weight: 500;
}

#sidebar .action:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #0ea5e9 !important;
}

#sidebar .active {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #0ea5e9 !important;
  border-left: 3px solid #0ea5e9;
}

/* Better header */
#header {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* File listing rows */
#listing .item {
  border-radius: 8px !important;
  margin: 2px 4px !important;
  padding: 8px 12px !important;
}

#listing .item:hover {
  background: rgba(14, 165, 233, 0.08) !important;
}

#listing .item.selected {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

/* Cards in grid view */
#listing .item.card {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  overflow: hidden !important;
}

#listing .item.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2) !important;
}

/* Login page */
#login {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%) !important;
}

#login .card {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

#login input {
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #e2e8f0 !important;
  padding: 12px 16px !important;
}

#login input:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

#login button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action buttons */
button, .button {
  border-radius: 8px !important;
  font-weight: 500 !important;
}

/* Shell/editor overlay */
#editor-container, #shell {
  border-radius: 12px !important;
  overflow: hidden;
}

/* Search bar */
#search input {
  border-radius: 20px !important;
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#search input:focus {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: #0ea5e9 !important;
}

/* Toast notifications */
.toast {
  border-radius: 10px !important;
  backdrop-filter: blur(8px) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Info prompt / dialogs */
.prompt {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

/* Share dialog improvements */
.share__list .share__item {
  border-radius: 8px !important;
  padding: 12px !important;
}
