@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #4e54c8;
  --secondary: #8f94fb;
  --accent: #ff4b2b;
  --bg-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-light: #f8fafc;
  --text-dark: #1e293b;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f6;
  color: var(--text-dark);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
  border-radius: 1rem !important;
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  border-radius: 1.5rem !important;
  color: white !important;
}

/* Animated Backgrounds */
.bg-animated-gradient {
  background: linear-gradient(-45deg, #4e54c8, #8f94fb, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-animated-dark {
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Inputs & Buttons */
.modern-input {
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.modern-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(78, 84, 200, 0.25) !important;
  background: #fff !important;
}

.btn-modern {
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  transform: translateY(0);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Navbar */
.modern-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  padding: 1rem 0 !important;
}

.modern-navbar .navbar-brand {
  font-weight: 800;
  color: var(--primary) !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.modern-navbar .nav-link {
  font-weight: 500;
  color: #475569 !important;
  transition: all 0.2s ease;
}

.modern-navbar .nav-link:hover, .modern-navbar .nav-link.active {
  color: var(--primary) !important;
}

/* Dashboards and Layouts */
.dash-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.dash-header h1 {
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Tables */
.modern-table-wrapper {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.modern-table {
  margin-bottom: 0 !important;
}

.modern-table thead th {
  background-color: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em;
  padding: 1.25rem 1rem !important;
  border-top: none !important;
}

.modern-table tbody td {
  padding: 1.25rem 1rem !important;
  vertical-align: middle !important;
  color: #334155;
  border-bottom: 1px solid #f1f5f9 !important;
}

.modern-table tbody tr {
  transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Alerts */
.modern-alert {
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
}

/* Modals */
.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem;
}
.modal-header .modal-title {
  font-weight: 700;
}
.modal-body {
  padding: 1.5rem;
}
.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 1.5rem;
}
