/* Custom Glassmorphism, Theme Variables & Modern UI Animations */

:root {
  --primary-cyan: #06b6d4;
  --primary-indigo: #6366f1;
}

/* Light Theme Overrides */
html:not(.dark) {
  background-color: #f8fafc;
  color: #0f172a;
}

html:not(.dark) body {
  background-color: #f1f5f9;
  color: #1e293b;
}

html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(203, 213, 225, 0.7);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

html:not(.dark) .glass-subcard {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(203, 213, 225, 0.6);
}

html:not(.dark) .glass-modal {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.9);
  color: #0f172a;
}

html:not(.dark) aside#sidebarNav {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.8);
}

html:not(.dark) #sideNavName,
html:not(.dark) h1 span,
html:not(.dark) h2,
html:not(.dark) h3 {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-300,
html:not(.dark) .text-slate-400 {
  color: #475569 !important;
}

html:not(.dark) .nav-item {
  color: #475569;
}

html:not(.dark) .nav-item:hover,
html:not(.dark) .nav-item.active {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2 !important;
}

html:not(.dark) .form-input {
  background: rgba(248, 250, 252, 0.95);
  border-color: #cbd5e1;
  color: #0f172a;
}

html:not(.dark) .skill-tag {
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.25);
}

/* Glassmorphism Styles (Dark Default) */
.glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.15);
}

.glass-subcard {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.glass-modal {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Primary and Secondary Buttons */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Form Input Elements */
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* Tags and Badges */
.skill-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-tag:hover {
  transform: scale(1.05);
  border-color: rgba(6, 182, 212, 0.5);
}

/* Filter Buttons */
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px -2px rgba(6, 182, 212, 0.4);
}

/* Navigation Item Styling */
.nav-item.active {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee !important;
  border-left: 3px solid #06b6d4;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

/* Toast Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
