/* Modern Custom Styling for Cybernetics ODL Centre with Windows Explorer Style Sidebar */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0f172a;
  --primary-blue: #0284c7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --bg-slate: #f8fafc;
  --sidebar-bg: #ffffff;
  --border-slate: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-slate);
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism & Header */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Windows Explorer Tree Directory Styling */
.tree-node {
  position: relative;
  transition: all 0.15s ease-in-out;
}

.tree-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
  text-align: left;
}

.tree-item-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.tree-item-btn.active {
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

.tree-sub-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.15s ease;
  position: relative;
}

.tree-sub-item-btn::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 1px;
  background-color: #cbd5e1;
}

.tree-sub-item-btn:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.tree-sub-item-btn.active {
  background-color: #f0fdf4;
  color: #15803d;
  font-weight: 700;
}

.tree-sub-item-btn.active::before {
  background-color: #16a34a;
  height: 2px;
}

/* Card Hover Animations */
.resource-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  border-color: #cbd5e1;
}

/* List Row View (Windows Explorer List Mode) */
.resource-row {
  transition: all 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}
.resource-row:hover {
  background-color: #f8fafc;
}

/* View Mode Switcher Active */
.view-btn.active {
  background-color: #0f172a;
  color: #ffffff;
}

/* Admin Glowing Pulse */
.admin-badge-pulse {
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
}

/* Modal Backdrop Blur */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
