/* LUX | Gradient Outline Dashboard - Master Style from index.html (COMPLETE COPY) */

/* ============================================
   RESET & BASE — gradient-infused minimalism
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #030303;
  color: #ececec;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ============================================
   GRADIENT BACKGROUND — dynamic but subtle
   ============================================ */
.gradient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 201, 122, 0.03), transparent 50%),
              radial-gradient(circle at 85% 70%, rgba(0, 201, 122, 0.02), transparent 60%),
              linear-gradient(135deg, #030303 0%, #0a0a0a 100%);
}

/* ============================================
   OUTLINED SHAPES — no fill, clean geometric strokes
   ============================================ */
.outline-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(0, 201, 122, 0.25);
  background: transparent;
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
}

/* different shapes - circles & rectangles */
.shape-circle {
  border-radius: 50%;
}

.shape-square {
  border-radius: 24px;
}

.shape-diamond {
  transform: rotate(45deg);
  border-radius: 0;
}

/* positions and sizes */
.s1 {
  width: 280px;
  height: 280px;
  top: 10%;
  left: -100px;
  border-radius: 50%;
  border-width: 1.5px;
  border-color: rgba(0, 201, 122, 0.2);
  animation: floatShape 24s ease-in-out infinite;
}

.s2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: -60px;
  border-radius: 35px;
  border-width: 1px;
  border-color: rgba(0, 201, 122, 0.18);
  animation: floatShape 28s ease-in-out infinite reverse;
}

.s3 {
  width: 160px;
  height: 160px;
  top: 60%;
  left: 5%;
  border-radius: 50%;
  border-width: 1.2px;
  border-color: rgba(0, 201, 122, 0.22);
  animation: floatShape 20s ease-in-out infinite;
}

.s4 {
  width: 240px;
  height: 240px;
  bottom: 20%;
  right: 15%;
  transform: rotate(45deg);
  border-radius: 32px;
  border-width: 1px;
  border-color: rgba(0, 201, 122, 0.15);
  animation: floatShape 30s ease-in-out infinite;
}

.s5 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 20%;
  border-radius: 20px;
  border-width: 1.2px;
  border-color: rgba(0, 201, 122, 0.28);
  animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(20px, -20px) rotate(3deg);
  }
  66% {
    transform: translate(-15px, 15px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* additional floating line elements */
.gradient-line {
  position: fixed;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 201, 122, 0.3), transparent);
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.line-1 { top: 25%; left: 0; }
.line-2 { bottom: 30%; left: 0; }

/* ============================================
   TYPOGRAPHY — gradient accents
   ============================================ */
h1, h2, h3, h4, .stat-value, .price {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, #00c97a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a0a0a0;
}

.stat-label, .product-sales, .filter-badge, .meta-text {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b6b;
}

/* ============================================
   NAVIGATION — border-bottom gradient
   ============================================ */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(3, 3, 3, 0.3);
  backdrop-filter: blur(8px);
}

nav h1 {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ffffff, #00c97a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1rem;
  color: #9a9a9a;
  z-index: 1;
}

.search-box input {
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border-radius: 25px;
  border: 1px solid rgba(0,201,122,0.3);
  background: rgba(255,255,255,0.08);
  color: #ececec;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  min-width: 220px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #00c97a;
  box-shadow: 0 0 0 3px rgba(0,201,122,0.15);
  transform: scale(1.02);
}

.search-box input::placeholder {
  color: #9a9a9a;
}

.nav-links a {
  color: #9a9a9a;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 450;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.nav-links a:hover, .nav-link:hover, .role-link:hover {
  color: #00c97a !important;
  background: rgba(0,201,122,0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  transform: translateY(-1px);
}

.nav-link, .role-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.role-badge {
  background: linear-gradient(135deg, rgba(0,201,122,0.2), rgba(0,255,157,0.1));
  border: 1px solid rgba(0,201,122,0.4);
  color: #00c97a;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
}

.error-msg.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive nav */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .nav-links .search-input {
    min-width: 100%;
    order: -1;
  }
}

/* ============================================
   DASHBOARD CARDS — gradient borders on hover
   ============================================ */
.dashboard {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 3rem 1.5rem 3rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(8, 8, 8, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(0, 201, 122, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.9rem;
  opacity: 0.9;
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #f0f0f0, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 400;
  color: #8a8a8a;
  letter-spacing: 0.06em;
}

/* insight grid */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.chart-panel, .top-products-panel {
  background: rgba(8, 8, 8, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 1.75rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  position: relative;
}

.chart-panel::before, .top-products-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 201, 122, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.chart-panel:hover::before, .top-products-panel:hover::before {
  opacity: 1;
}

.chart-panel h3, .top-products-panel h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b0b0b0;
  letter-spacing: 0.05em;
}

.chart-panel h3 i, .top-products-panel h3 i {
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.8rem;
}

canvas {
  max-height: 240px;
  width: 100%;
}

/* product list */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  transition: all 0.2s;
}

.product-item:hover {
  border-bottom-color: rgba(0, 201, 122, 0.2);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product-badge {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(0, 201, 122, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 201, 122, 0.05), transparent);
}

.product-badge i {
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.7rem;
}

.product-name {
  font-weight: 470;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
  color: #e0e0e0;
}

.product-revenue {
  font-weight: 500;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f0f0f0, #c0c0c0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-sales {
  font-size: 0.65rem;
  color: #7a7a7a;
  margin-top: 0.15rem;
  text-align: right;
}

/* ============================================
   PRODUCT SECTION — gradient outlined cards
   ============================================ */
.products-section {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 4rem 3rem;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.products-header h3 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.2px;
  color: #c0c0c0;
}

.filter-badge {
  background: transparent;
  font-size: 0.65rem;
  color: #6a6a6a;
  border: none;
  padding: 0;
  letter-spacing: 0.05em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.35s ease;
  cursor: default;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 201, 122, 0.4), rgba(0, 201, 122, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: transparent;
  transform: translateY(-3px);
  background: rgba(12, 12, 12, 0.6);
}

.card-preview {
  height: 180px;
  background: rgba(5, 5, 5, 0.6);
  border-radius: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(0, 201, 122, 0.15);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover .card-preview {
  border-color: rgba(0, 201, 122, 0.4);
  background: rgba(8, 8, 8, 0.8);
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-preview img {
  transform: scale(1.05);
}

.card-preview i {
  background: linear-gradient(135deg, #4a4a4a, #6a6a6a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s;
}

.card:hover .card-preview i {
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
  color: #eaeaea;
  line-height: 1.4;
  padding: 0 0.2rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.2rem 0 0.3rem;
  padding: 0 0.2rem;
}

.sales-count {
  font-size: 0.7rem;
  color: #7a7a7a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0 0.2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.sales-count i {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* footer gradient */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.02);
  font-size: 0.7rem;
  color: #6a6a6a;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, transparent, rgba(0, 201, 122, 0.02));
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  nav, .dashboard, .products-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .s1, .s2, .s3, .s4, .s5 {
    opacity: 0.5;
  }
}

@media (max-width: 550px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .nav-links {
    gap: 1.5rem;
  }
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00c97a, #00ff9d);
  border-radius: 10px;
}

/* ============================================
   ADDITIONAL UTILITIES (FORMS, BUTTONS) - From existing CSS
   ============================================ */
.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;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,201,122,0.4);
}

.btn-login {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 16px;
  background: linear-gradient(135deg, #00c97a 0%, #00ff9d 50%, #00c97a 100%);
  box-shadow: 0 8px 20px rgba(0,201,122,0.3);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(0px) scale(0.98);
}

.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-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;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #00c97a;
  box-shadow: 0 0 0 3px rgba(0,201,122,0.1);
}

/* Login form container */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
}

.error-msg {
  background: linear-gradient(135deg, rgba(255,71,87,0.2), rgba(255,55,66,0.2));
  border: 1px solid rgba(255,71,87,0.3);
  color: #ffcccc;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

/* PRODUCTS HEADER */
.products-header h2, .dashboard h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #c0c0c0;
  margin-bottom: 1rem;
}
