/* LUX Enhanced - Extends index-design.css (Master Gradient Outline) */
@import url('index-design.css');

/* Legacy overrides & additions for compatibility */
:root {
  --lux-bg: #030303;
  --lux-green: #00c97a;
}


/* EDGE LIGHT */
.edge-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.edge-light::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(from 0deg, transparent, transparent, rgba(0, 201, 122, 0.45), transparent, transparent);
  animation: rotateEdge 22s linear infinite;
  filter: blur(35px);
  opacity: 0.6;
}

.edge-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #050505;
  border-radius: 28px;
}

@keyframes rotateEdge {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* FLOATING SHAPES - Outline gradient green */
.shape {
  position: fixed;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  background-clip: padding-box;
  background: linear-gradient(135deg, #00c97a 0%, #00b268 50%, #00995a 100%) border-box;
  filter: blur(8px);
  opacity: 0.7;
  animation: float 16s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.shape.s1 { width:180px; height:180px; top:15%; left:80%; }
.shape.s2 { width:110px; height:110px; top:70%; left:5%; animation-delay:2s; }
.shape.s3 { width:75px; height:75px; top:40%; left:20%; animation-delay:5s; }
.shape.s4 { width:220px; height:220px; bottom:5%; right:5%; animation-delay:7s; }

@keyframes float {
  0%,100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-28px) translateX(10px); }
}

/* NAV */
nav {
  position: relative;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  background: rgba(5,5,5,0.4);
}

nav h1 {
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 1.7rem;
  background: linear-gradient(135deg, #ffffff 0%, #00c97a 50%, #00b268 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links a {
  color: #aaa;
  margin-left: 32px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: #00c97a;
}

/* DASHBOARD */
.dashboard {
  position: relative;
  z-index: 10;
  padding: 40px 64px 30px 64px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: rgba(12,12,12,0.75);
  backdrop-filter: blur(4px);
  border-radius: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  text-align: center;
}

.stat-card:hover {
  border-color: rgba(0, 201, 122, 0.2);
  box-shadow: 0 0 20px rgba(0, 201, 122, 0.2);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  color: #00c97a;
  margin-bottom: 16px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.stat-label {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PRODUCTS */
.products {
  position: relative;
  z-index: 10;
  padding: 0 64px 80px 64px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.products h3 {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.3px;
}

.filter-badge {
  background: rgba(0,201,122,0.12);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  color: #00c97a;
  border: 1px solid rgba(0,201,122,0.2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 32px;
}

/* CARD HOVER GLOW */
.card {
  position: relative;
  padding: 24px 20px;
  border-radius: 28px;
  background: #0c0c0c;
  overflow: hidden;
  transition: 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background: conic-gradient(from 0deg, transparent, transparent, rgba(0, 201, 122, 0.25), transparent, transparent);
  animation: rotateCard 20s linear infinite;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #0c0c0c;
  border-radius: 26px;
  z-index: 1;
}

.card:hover::before { opacity: 1; }

.card * { position: relative; z-index: 3; }

@keyframes rotateCard {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-preview {
  height: 170px;
  background: linear-gradient(145deg, #121212, #080808);
  border-radius: 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #2c2c2c;
  transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.03);
}

.card:hover .card-preview {
  color: #00c97a;
  background: linear-gradient(145deg, #141414, #0a0a0a);
}

.card h5 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.price {
  color: #00c97a;
  font-weight: 600;
  font-size: 1.2rem;
}

.sales-count {
  font-size: 12px;
  color: #6a6a6a;
  margin-top: 6px;
}

/* BUTTONS */
.btn {
  background: linear-gradient(135deg, #00c97a, #00b268);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,201,122,0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #aaa;
}

.btn-secondary:hover { 
  border-color: #00c97a; 
  color: #00c97a; 
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ddd;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(12,12,12,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #f5f5f5;
  font-size: 1rem;
  transition: border-color 0.25s;
}

.form-group input:focus {
  outline: none;
  border-color: #00c97a;
  box-shadow: 0 0 0 3px rgba(0,201,122,0.1);
}

/* Responsive */
@media (max-width: 1000px) {
  nav, .dashboard, .products { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 650px) {
  .stats-row { grid-template-columns: 1fr; }
  nav { padding: 20px; flex-wrap: wrap; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 10px; }
