/* ==============================================================================
   CYPP Stock Pro - Custom Styling
   Designed for Mobile, iPad, and Desktop
   ============================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
}

body {
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Nav Buttons Desktop */
.nav-btn-desktop {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  color: #94a3b8;
  transition: all 0.2s ease;
  display: inline-flex;
  items-center: center;
}
.nav-btn-desktop:hover {
  color: #ffffff;
  background-color: #1e293b;
}
.nav-btn-desktop.active {
  color: #ffffff;
  background-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Mobile Bottom Nav */
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.25rem;
  color: #94a3b8;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}
.mobile-nav-btn.active {
  color: #38bdf8;
  background-color: rgba(2, 132, 199, 0.15);
}

/* Form Styles */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #0369a1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #d97706;
  color: #ffffff;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.btn-amber:hover {
  background-color: #b45309;
}

.qty-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: background-color 0.15s;
}
.qty-btn:hover {
  background-color: #e2e8f0;
}

/* Size Pills */
.size-pill {
  padding: 0.5rem 0;
  text-align: center;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: all 0.15s ease;
}
.size-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.size-pill.active {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* Filter Pills */
.filter-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}
.filter-pill.active {
  background-color: #0f172a;
  color: #ffffff;
}

/* KPI Card */
.kpi-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Toast */
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
