/* assets/style.css */
:root {
  --primary-color: #6366f1;
  /* Indigo */
  --secondary-color: #ec4899;
  /* Pink */
  --bg-color: #0f172a;
  /* Dark Slate */
  --text-color: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--bg-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 20%);
  color: var(--text-color);
  min-height: 100vh;
  padding: 20px;
}

/* Glassmorphism Utilities */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  margin-bottom: 0.5em;
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-info {
  background: #3b82f6;
  color: #fff;
}

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

.btn-block {
  width: 100%;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 15px;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #fff;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #1e293b;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.flex {
  display: flex;
  gap: 10px;
}

.justify-between {
  justify-content: space-between;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.bg-green {
  background: var(--success);
  color: #fff;
}

.bg-orange {
  background: var(--warning);
  color: #000;
}

.bg-red {
  background: var(--danger);
  color: #fff;
}

.bg-blue {
  background: #3b82f6;
  color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 1000;
    transition: 0.3s;
    background: var(--bg-color);
    border-right: 1px solid var(--glass-border);
  }

  .sidebar.active {
    left: 0;
  }

  .content-wrapper {
    margin-left: 0;
  }

  .glass-card {
    padding: 15px;
  }

  .flex-wrap {
    flex-wrap: wrap;
    gap: 15px !important;
  }

  /* Make date picker compact on small screens */
  input[type="date"] {
    padding: 8px;
    font-size: 0.8rem;
    max-width: 130px;
  }

  .mobile-toggle {
    display: block !important;
  }
}

/* Sidebar Layout */
.dashboard-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-wrapper {
  flex-grow: 1;
  width: 100%;
}

.mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 5px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-left: 4px solid var(--primary-color);
}