/* ============================================
   Modern Admin Dashboard Styles
   ============================================ */

/* Global Styles */
* {
  font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.modern-dashboard {
  background-color: #f4f6f9;
}

/* ============================================
   Login Page Styles
   ============================================ */

body.modern-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.modern-login::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
  top: -50%;
  left: -50%;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  z-index: 1;
  position: relative;
}

.login-logo {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

.login-logo .logo-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-logo .logo-icon i {
  font-size: 40px;
  color: white;
}

.login-logo h2 {
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-logo p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.login-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.login-card .card-body {
  padding: 40px;
}

.login-card .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.login-card .form-control {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.login-card .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.login-card .input-group-text {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #667eea;
}

.login-card .input-group-prepend + .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.login-card .input-group-append .btn {
  border-radius: 0 10px 10px 0;
  border-left: none;
  border: 2px solid #e0e0e0;
}

.btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.login-footer {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

/* ============================================
   Dashboard Layout Styles
   ============================================ */

.modern-navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}

.modern-navbar .navbar-nav .nav-link {
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modern-navbar .navbar-nav .nav-link:hover {
  background: #f8f9fa;
  color: #667eea;
}

.modern-sidebar {
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.brand-link-modern {
  padding: 1.2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-image-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  transition: all 0.3s ease;
}

.brand-link-modern:hover .brand-image-wrapper {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.brand-icon {
  font-size: 24px;
  color: white;
}

.modern-sidebar .user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.modern-sidebar .user-panel .info a {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.modern-sidebar .nav-link {
  border-radius: 8px;
  margin: 2px 8px;
  transition: all 0.3s ease;
}

.modern-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.modern-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.modern-sidebar .nav-link.active i {
  color: #ffc107;
}

.modern-sidebar .nav-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 1rem 1rem 0.5rem;
  margin-top: 1rem;
}

/* Sidebar Scrolling */
.modern-sidebar .sidebar {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  /* Firefox Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar Styling for Sidebar (Webkit browsers) */
.modern-sidebar .sidebar::-webkit-scrollbar {
  width: 6px;
}

.modern-sidebar .sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.modern-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.modern-sidebar .sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.modern-footer {
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   Dashboard Stats Cards
   ============================================ */

.stats-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stats-card.primary::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stats-card.success::before {
  background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
}

.stats-card.warning::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.info::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card .card-body {
  padding: 1.5rem;
}

.stats-card .stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 1rem;
}

.stats-card.primary .stats-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card.success .stats-icon {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stats-card.warning .stats-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.info .stats-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
}

.stats-card p {
  color: #6c757d;
  margin: 0.5rem 0 0;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   Content Header
   ============================================ */

.content-header {
  background: white;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.content-header h1 {
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  font-size: 1.75rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.card-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

/* ============================================
   Tables
   ============================================ */

.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: #f8f9fa;
}

.table thead th {
  border: none;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
  border: none;
  border-radius: 10px;
  border-left: 4px solid;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Utility Classes
   ============================================ */

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.dropzone {
  background: white;
  border-radius: 5px;
  border: 2px dashed rgb(0, 135, 247);
  border-image: none;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .login-card .card-body {
    padding: 30px 20px;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
}
