/* Modern responsive stylesheet for Saree & Dhoti Store */
:root{
  --bg:#fafafa;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#8b1d1d; /* maroon */
  --success:#16a34a;
  --danger:#dc2626;
  --shadow: 0 6px 18px rgba(17,24,39,0.06);
  --radius:10px;
  --max-width:1100px;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; background:var(--bg); color:#111827}
a{color:var(--accent);text-decoration:none}
.container{max-width:var(--max-width);margin:0 auto;padding:18px}

/* Header */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.logo-link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link:hover .logo {
  color: #a82a2a;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-actions a {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.navbar {
  display: flex;
  gap: 30px;
  padding: 12px 18px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar a {
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  background: #f5f5f5;
  color: #333;
  margin-top: 60px;
  border-top: 3px solid var(--accent);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 18px;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-logo h2 {
  margin: 0;
  font-size: 22px;
  color: var(--accent);
}

.trust-badge {
  font-size: 13px;
  color: #666;
  margin: 8px 0 0 0;
  font-weight: 500;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
}

.footer-column h4 {
  margin: 0 0 15px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 10px 0;
  line-height: 1.5;
}

.footer-column a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--accent);
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-links a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
}

.contact-info {
  margin-top: 15px;
  font-size: 13px;
}

.contact-info p {
  margin: 6px 0;
  line-height: 1.4;
}

.contact-info a {
  color: #555;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent);
  font-weight: 600;
}

.footer-divider {
  height: 1px;
  background: #ddd;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-badges {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.badge-icon {
  font-size: 40px;
  flex: 0 0 50px;
  text-align: center;
}

.badge-text {
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.badge-text strong {
  color: var(--accent);
  font-size: 14px;
  display: block;
  margin-bottom: 3px;
}

.footer-bottom {
  text-align: center;
  padding: 15px 18px;
  background: #e5e5e5;
  color: #666;
  font-size: 13px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #ddd;
}

/* Responsive footer */
@media (max-width:1000px){
  .footer-columns{grid-template-columns:repeat(2,1fr);gap:20px}
  .footer-badges{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media (max-width:600px){
  .footer-top{padding:20px 18px}
  .footer-columns{grid-template-columns:1fr}
  .footer-badges{grid-template-columns:1fr}
  .badge{flex-direction:column;text-align:center}
  .badge-icon{flex:1}
}

/* Nav */
nav{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid #eee;box-shadow:var(--shadow)}
nav a{color:#111827;font-weight:600}

/* Buttons */
button{background:var(--accent);color:#fff;border:0;padding:8px 12px;border-radius:8px;cursor:pointer;font-weight:600}
button.secondary{background:#fff;color:var(--accent);border:1px solid rgba(139,29,29,0.12)}
button.ghost{background:transparent;color:var(--accent);border:0}
button:disabled{opacity:.6;cursor:not-allowed}

/* Forms */
input,textarea,select{width:100%;padding:10px;border:1px solid #e5e7eb;border-radius:8px;margin:6px 0;font-size:14px}
textarea{min-height:90px}
label{display:block;font-size:13px;color:var(--muted);margin-top:8px}
.form-row{display:flex;gap:10px}
.form-row > *{flex:1}

/* Product grid */
#products{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.product{background:var(--card);padding:14px;border-radius:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.product img{width:100%;height:180px;object-fit:cover;border-radius:8px}
.product h3{margin:0;font-size:18px}
.product p{margin:0;color:var(--muted)}
.product .price{font-weight:800;font-size:16px;color:#111827}
.product .actions{display:flex;gap:8px;margin-top:8px}

/* stock badge */
.stock{font-weight:700;color:var(--success)}
.stock.out{color:var(--danger)}

/* Cart */
#cartItems .cart-row{display:flex;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #f3f4f6}
#cartItems img{width:60px;height:60px;object-fit:cover;border-radius:6px}

/* Admin product list */
#productList .product{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:center}
#productList input[type=file]{padding:6px}

/* Orders */
#orders > div{background:var(--card);padding:12px;border-radius:10px;box-shadow:var(--shadow);margin-bottom:12px}

/* Timeline */
.timeline{display:flex;gap:6px;margin-top:8px}
.timeline span{padding:6px 8px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}
.timeline .active{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Utilities */
.muted{color:var(--muted)}
.row{display:flex;gap:12px;align-items:center}
.center{text-align:center}
.card{background:var(--card);padding:14px;border-radius:12px;box-shadow:var(--shadow)}

/* ===== Mobile Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  #products { grid-template-columns: repeat(2, 1fr) }
  .navbar { gap: 20px }
}

@media (max-width: 600px) {
  /* Header Styles */
  nav { flex-wrap: wrap; padding: 10px 16px }
  
  .hamburger {
    display: flex;
    margin-right: 10px;
  }
  
  .navbar {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  
  .navbar.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .navbar a {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    font-size: 15px;
  }
  
  .navbar a:last-child {
    border-bottom: none;
  }
  
  .navbar a:hover {
    background: #f9fafb;
    padding-left: 24px;
  }
  
  /* Compact Header */
  .header-top {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
  }
  
  .logo-img {
    height: 45px !important;
  }
  
  .brand-name {
    font-size: 20px !important;
  }
  
  .brand-tagline {
    font-size: 9px !important;
  }
  
  .header-actions {
    gap: 10px;
  }
  
  .header-actions a {
    font-size: 13px;
  }
  
  .cart-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .login-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Banner */
  #banner {
    height: 180px;
    margin: 8px 0 12px;
    border-radius: 8px;
  }
  
  .slide {
    font-size: 18px;
    padding: 16px;
  }
  
  /* Products */
  #products {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  
  .product {
    padding: 12px;
    gap: 6px;
  }
  
  .product img {
    height: 160px;
    border-radius: 6px;
  }
  
  .product h3 {
    font-size: 16px;
  }
  
  .product .price {
    font-size: 15px;
  }
  
  .product .actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
  
  .product .actions button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Forms */
  .form-row { flex-direction: column }
  nav { padding: 10px 16px }
  .navbar { flex-direction: column; gap: 10px }
  .header-top { flex-direction: row; gap: 8px; text-align: left; padding: 12px 16px; }
  .header-actions { justify-content: flex-end; flex-wrap: wrap; }
  
  /* Container */
  .container {
    padding: 14px;
  }
  
  h1 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  /* Buttons - Touch Friendly */
  button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  button:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  
  /* Links - Touch Friendly */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    touch-action: manipulation;
  }
  
  /* Cart Page */
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
    background: var(--card);
    border-radius: 10px;
    margin-bottom: 12px;
    gap: 10px;
  }
  
  .cart-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
  }
  
  .cart-item span {
    font-size: 15px;
    font-weight: 600;
  }
  
  .cart-item strong {
    font-size: 16px;
    color: var(--accent);
  }
  
  .cart-item .btn-remove {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    background: var(--danger);
  }
  
  .cart-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .cart-actions a,
  .cart-actions button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  #total {
    font-size: 20px;
    text-align: center;
    padding: 16px 0;
  }
  
  /* Footer Mobile */
  .footer-top { padding: 24px 16px }
  .footer-columns { 
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-column {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
  }
  
  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .footer-column h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .footer-column h4::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
  }
  
  .footer-column.collapsed h4::after {
    transform: rotate(45deg);
  }
  
  .footer-column ul {
    display: none;
  }
  
  .footer-column.collapsed ul {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .footer-badges {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
  }
  
  .badge {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  
  .badge-icon {
    flex: 0 0 40px;
    font-size: 32px;
  }
  
  .badge-text {
    font-size: 12px;
  }
  
  .footer-bottom {
    padding: 14px 16px;
    font-size: 12px;
  }
  
  /* Forms Mobile */
  input, textarea, select {
    padding: 14px 12px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  label {
    font-size: 14px;
    font-weight: 600;
  }
  
  /* Login Page */
  .login-card {
    padding: 24px 20px;
    margin: 16px;
    border-radius: 10px;
  }
  
  .login-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input {
    padding: 14px;
    font-size: 16px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  /* Checkout */
  .checkout-form {
    padding: 0;
  }
  
  /* Search Box */
  .search-box {
    flex-direction: column;
    margin: 14px 0;
  }
  
  .search-box input {
    max-width: 100%;
    width: 100%;
  }
  
  .search-box button {
    width: 100%;
  }
  
  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
  }
  
  /* Better touch feedback for all interactive elements */
  * {
    -webkit-tap-highlight-color: rgba(139, 29, 29, 0.1);
  }
  
  /* Scrollbar styling for mobile */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }
}

/* small helpers */
.small{font-size:13px;color:var(--muted)}
.card-compact{padding:8px}

/* improve default anchors and lists */
ul{padding-left:18px}

/* Admin table-like list */
.admin-table{width:100%;border-collapse:collapse}
.admin-table td, .admin-table th{padding:8px;border-bottom:1px solid #f3f4f6}

/* Search box */
.search-box {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.search-box input {
  flex: 1;
  max-width: 300px;
}

.search-box button {
  padding: 10px 20px;
}

/* Checkout button */
.btn-checkout {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 15px;
  text-decoration: none;
}

.btn-checkout:hover {
  opacity: 0.9;
}

.cart-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.btn-clear {
  background: var(--danger);
}

.btn-remove {
  background: var(--danger);
  padding: 4px 8px;
  font-size: 12px;
}

#banner {
  width: 100%;
  height: 280px;
  background: #f7f7f7;
  margin: 10px 0 20px;
  overflow: hidden;
  border-radius: 10px;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
  color: white;
}
/* ===== Admin Dashboard Cards ===== */

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Icon */
.card-icon {
  font-size: 36px;
  background: rgba(255,255,255,0.2);
  padding: 15px;
  border-radius: 50%;
}

/* Text */
.card-info h4 {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.card-info p {
  font-size: 22px;
  font-weight: bold;
  margin-top: 4px;
}

/* Color themes */
.card.sales {
  background: linear-gradient(135deg, #0f9d58, #34a853);
}

.card.orders {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.card.items {
  background: linear-gradient(135deg, #f9ab00, #fbbc04);
}

.card.customers {
  background: linear-gradient(135deg, #8e24aa, #ab47bc);
}

.card.stock {
  background: linear-gradient(135deg, #d93025, #ea4335);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* ===== Cart Button in Header ===== */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.cart-btn:hover {
  background: #a82a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 29, 29, 0.3);
}

.cart-btn .cart-icon {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ===== Login Page Styles ===== */
.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 20px auto;
  border: 1px solid #e5e7eb;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 29, 29, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions button {
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #a82a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 29, 29, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(139, 29, 29, 0.05);
  transform: translateY(-2px);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
}

.form-footer a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #a82a2a;
  text-decoration: underline;
}

/* Login Link in Header */
.login-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-link:hover {
  background: rgba(139, 29, 29, 0.1);
}
/* LOGO AREA */
.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

/* BRAND TEXT */
.brand-text {
  display: flex;
  flex-direction: column;
}

/* VOGANT Logo Text */
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

/* ===== Advanced Analytics Dashboard ===== */

.analytics-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  min-width: 150px;
}

.custom-dates {
  display: flex;
  gap: 10px;
  align-items: center;
}

.custom-dates input {
  min-width: 140px;
}

.export-btn {
  background: #22c55e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
}

.export-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.export-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.export-buttons .export-btn {
  padding: 8px 14px;
  font-size: 13px;
}

.export-buttons .export-csv {
  background: #22c55e;
}

.export-buttons .export-excel {
  background: #3b82f6;
}

.export-buttons .export-pdf {
  background: #ef4444;
}

.export-buttons .export-csv:hover { background: #16a34a; }
.export-buttons .export-excel:hover { background: #2563eb; }
.export-buttons .export-pdf:hover { background: #dc2626; }

/* Analytics Cards */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-3px);
}

.analytics-card .card-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.analytics-card.revenue .card-icon { background: rgba(16, 185, 129, 0.1); }
.analytics-card.orders .card-icon { background: rgba(59, 130, 246, 0.1); }
.analytics-card.gst .card-icon { background: rgba(245, 158, 11, 0.1); }
.analytics-card.aov .card-icon { background: rgba(139, 92, 246, 0.1); }
.analytics-card.customers .card-icon { background: rgba(236, 72, 153, 0.1); }
.analytics-card.items .card-icon { background: rgba(20, 184, 166, 0.1); }

.analytics-card .card-content h4 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.analytics-card .card-value {
  margin: 4px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.card-change {
  font-size: 12px;
  font-weight: 600;
}

.card-change.positive { color: #22c55e; }
.card-change.negative { color: #ef4444; }
.card-change.neutral { color: var(--muted); }

.card-change small {
  font-weight: 400;
  color: var(--muted);
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.chart-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-container.full-width {
  grid-column: 1 / -1;
}

.chart-container h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #374151;
}

.chart-container canvas {
  max-height: 300px;
}

/* Analytics Tables */
.analytics-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.analytics-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #374151;
}

.top-products-table-wrapper {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.analytics-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
}

.analytics-table td {
  font-size: 14px;
  color: #111827;
}

.rank-badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Customer Stats Grid */
.customer-stats-grid,
.payment-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.customer-stat-card,
.payment-stat-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.customer-stat-card h4,
.payment-stat-card h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* Low Stock Alerts */
.low-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.low-stock-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid;
}

.low-stock-card .stock-info h4 {
  margin: 0;
  font-size: 14px;
  color: #111827;
}

.low-stock-card .stock-count {
  margin: 4px 0 0 0;
  font-size: 14px;
  font-weight: 600;
}

.low-stock-card .stock-count.critical { color: #dc2626; }
.low-stock-card .stock-count.warning { color: #f59e0b; }

.low-stock-card .stock-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.low-stock-card .stock-badge.critical {
  background: #fef2f2;
  color: #dc2626;
}

.low-stock-card .stock-badge.warning {
  background: #fffbeb;
  color: #f59e0b;
}

.no-alerts {
  text-align: center;
  color: #22c55e;
  padding: 20px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container.full-width {
    grid-column: 1;
  }
  
  .analytics-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .export-btn {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .analytics-cards {
    grid-template-columns: 1fr;
  }
  
  .analytics-card {
    padding: 16px;
  }
  
  .analytics-card .card-value {
    font-size: 20px;
  }
}
