@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Vibrant Modern Color Palette */
  --primary: #7c3aed;
  /* Vibrant Purple */
  --primary-hover: #6d28d9;
  /* Deep Purple */
  --primary-light: #a78bfa;
  /* Light Purple */
  
  --secondary: #06b6d4;
  /* Cyan */
  --secondary-hover: #0891b2;
  /* Dark Cyan */
  
  --accent: #ec4899;
  /* Pink */
  --accent-hover: #db2777;
  /* Deep Pink */
  
  --success: #10b981;
  /* Emerald */
  --success-hover: #059669;
  
  --danger: #ef4444;
  /* Red */
  --danger-hover: #dc2626;
  
  --warning: #f59e0b;
  /* Amber */
  --info: #3b82f6;
  /* Blue */

  /* Backgrounds */
  --bg-body: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-body-alt: #f8fafc;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-dark: rgba(255, 255, 255, 0.95);
  --bg-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Border & Shadows */
  --border-color: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.3);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-body-alt);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Navbar Styling */
.navbar {
  background: var(--bg-glass-dark) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

/* Card Styling with Glassmorphism */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl) !important;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(124, 58, 237, 0.2);
}

.card-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* Button Styling */
.btn {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: none;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
  color: white;
}

.btn-success:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
  color: white;
}

.btn-danger:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-success {
  color: var(--success);
  border: 1.5px solid var(--success);
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--success);
  color: white;
  border-color: var(--success);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--text-muted);
  color: white;
  border-color: var(--text-muted);
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border-color);
  padding: 0.5rem 0.875rem;
  transition: all 0.3s ease;
  background: white;
  font-size: 0.9rem;
}

.form-control-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Table Styling */
.table {
  font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(124, 58, 237, 0.02);
}

.table-dark {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
  color: white;
}

.table-dark th {
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-sm th,
.table-sm td {
  padding: 0.5rem;
}

/* Badge Styling */
.badge {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
}

.bg-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%) !important;
}

.bg-secondary {
  background: var(--text-muted) !important;
}

/* Utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
}

/* Responsive Container */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
}

/* Dashboard Specific Styles */
.h-85 {
  height: 85% !important;
}

.h-80 {
  height: 80% !important;
}

.product-list-container {
  height: calc(100vh - 480px);
  overflow-y: auto;
}

.cart-list-container {
  max-height: 22vh;
  overflow-y: auto;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
}

/* List Group */
.list-group-item {
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.list-group-item:hover {
  background-color: rgba(124, 58, 237, 0.05);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

/* Input Group */
.input-group {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 1200px) {
  body {
    font-size: 0.9rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  .product-list-container {
    height: calc(100vh - 450px);
  }
}

@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .product-list-container {
    height: 400px;
  }
  
  .cart-list-container {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .card {
    border-radius: var(--radius-lg) !important;
  }
  
  .card-body {
    padding: 0.75rem;
  }

  h5 {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .table {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.85rem;
  }
  
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
}

/* Logout Button Animation */
.logout-anim-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.logout-anim-btn:hover {
  width: 100px;
  background: var(--danger);
  color: white;
  box-shadow: var(--shadow-md);
}

.logout-anim-btn .logout-img {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.logout-anim-btn:hover .logout-img {
  opacity: 0;
  transform: translateX(-20px);
}

.logout-anim-btn .logout-label {
  position: absolute;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
}

.logout-anim-btn:hover .logout-label {
  opacity: 1;
  transform: translateX(0);
}

/* Empty State */
.empty-state-icon {
  font-size: 3rem;
  opacity: 0.5;
}

/* Glassmorphism Cards */
.dashboard-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Vertical Divider - Hidden on smaller screens */
.vr {
  opacity: 0.3;
}

@media (max-width: 992px) {
  .vr {
    display: none;
  }
} 
 