:root {
  --bg-color: #e0e5ec;
  --text-primary: #4a5568;
  --text-secondary: #a0aec0;
  --primary: #3182ce;
  --primary-hover: #2b6cb0;
  --success: #38a169;
  --danger: #e53e3e;
  --warning: #d69e2e;
  --card-bg: #e0e5ec;
  --border-color: transparent;
  
  /* Neumorphism Shadows */
  --neu-shadow: 8px 8px 16px rgba(163,177,198,0.5), -8px -8px 16px rgba(255,255,255, 0.7);
  --neu-shadow-hover: 12px 12px 20px rgb(163,177,198,0.7), -12px -12px 20px rgba(255,255,255, 0.6);
  --neu-shadow-inset: inset 6px 6px 10px 0 rgba(163,177,198, 0.7), inset -6px -6px 10px 0 rgba(255,255,255, 0.8);
  
  --sidebar-width: 280px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #2d3748;
  font-weight: 700;
}

/* Top Header */
.top-header {
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  box-shadow: var(--neu-shadow);
  margin-bottom: 1rem;
  border-radius: 0 0 20px 20px;
}

.top-header .nav-link {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s;
  font-weight: 500;
}

.top-header .nav-link:hover {
  color: var(--primary);
}

.search-bar input {
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  border: none;
  outline: none;
  width: 300px;
  background: var(--bg-color);
  box-shadow: var(--neu-shadow-inset);
  color: var(--text-primary);
  font-weight: 500;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: var(--neu-shadow);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}
.dot.online { background-color: var(--success); }
.dot.offline { background-color: var(--danger); }

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  position: sticky;
  top: 1rem;
  z-index: 100;
  box-shadow: var(--neu-shadow);
  border-radius: 20px;
  margin: 0 2rem;
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 1.5rem;
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--neu-shadow);
  transition: 0.3s;
}

.hamburger:active {
  box-shadow: var(--neu-shadow-inset);
}

.hamburger span {
  width: 20px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(163,177,198,0.5), -2px -2px 4px rgba(255,255,255,0.8);
  flex-grow: 1;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.icon-btn {
  background: var(--bg-color);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--neu-shadow);
  color: var(--text-primary);
  transition: 0.3s;
  font-size: 1.2rem;
}

.icon-btn:active {
  box-shadow: var(--neu-shadow-inset);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Sidebar Menu */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--neu-shadow);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  box-shadow: var(--neu-shadow);
  font-weight: bold;
}

.close-btn:active {
  box-shadow: var(--neu-shadow-inset);
}

.menu-section {
  padding: 1rem 1.5rem;
}

.menu-section ul {
  list-style: none;
}

.menu-section ul li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 15px;
  margin-bottom: 0.8rem;
  box-shadow: var(--neu-shadow);
}

.menu-section ul li a:hover, .menu-section ul li a.active-link {
  color: var(--primary);
  box-shadow: var(--neu-shadow-inset);
}

.menu-section ul li a.text-danger {
  color: var(--danger);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(163,177,198,0.5), -2px -2px 4px rgba(255,255,255,0.8);
}

.info-content {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--neu-shadow);
}
.info-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--primary); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--bg-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--neu-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neu-shadow-hover);
}

.product-image-placeholder {
  height: 150px;
  border-radius: 15px;
  box-shadow: var(--neu-shadow-inset);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.action-btn {
  background: var(--bg-color);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.3s;
  box-shadow: var(--neu-shadow);
  color: var(--text-primary);
}

.action-btn:active {
  box-shadow: var(--neu-shadow-inset);
}

.action-btn.love:hover, .action-btn.loved {
  color: var(--danger);
}

.action-btn.add-cart:hover {
  color: var(--primary);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.product-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(163,177,198,0.3);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  background: var(--bg-color);
  box-shadow: var(--neu-shadow);
  color: var(--primary);
}

.btn:active {
  box-shadow: var(--neu-shadow-inset);
}

.btn-primary {
  color: var(--primary);
}

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

.btn-block {
  width: 100%;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(224, 229, 236, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--neu-shadow-hover);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--neu-shadow);
  color: var(--danger);
  font-weight: bold;
}
.modal-close:active {
  box-shadow: var(--neu-shadow-inset);
}

/* Loader */
.loader {
  border: 4px solid var(--bg-color);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
  box-shadow: var(--neu-shadow);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 -10px 20px rgba(163,177,198,0.2);
  margin-top: 4rem;
  border-radius: 30px 30px 0 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: 0.3s;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  box-shadow: var(--neu-shadow);
  font-weight: 600;
}

.social-links a:hover {
  color: var(--primary);
  box-shadow: var(--neu-shadow-inset);
}

.social-links img {
  width: 24px;
  height: 24px;
}

.copyright {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Utilities */
.hidden { display: none !important; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.8rem; font-weight: 600; color: var(--text-primary); padding-left: 0.5rem; }
.form-control { 
  width: 100%; 
  padding: 1rem 1.5rem; 
  border: none; 
  border-radius: 15px; 
  outline: none; 
  background: var(--bg-color);
  box-shadow: var(--neu-shadow-inset);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
}
.form-control:focus {
  box-shadow: inset 8px 8px 12px 0 rgba(163,177,198, 0.8), inset -8px -8px 12px 0 rgba(255,255,255, 0.9);
}

.table-container { 
  background: var(--bg-color); 
  border-radius: 20px; 
  padding: 1.5rem; 
  box-shadow: var(--neu-shadow); 
  overflow-x: auto; 
}
table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
th, td { padding: 1.2rem; text-align: left; }
th { font-weight: 700; color: var(--text-primary); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
tbody tr {
  background: var(--bg-color);
  box-shadow: var(--neu-shadow);
  border-radius: 12px;
  transition: 0.3s;
}
tbody tr:hover {
  transform: scale(1.01);
}
td:first-child { border-radius: 12px 0 0 12px; }
td:last-child { border-radius: 0 12px 12px 0; }

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-color);
}
.admin-sidebar {
  width: 280px;
  background: var(--bg-color);
  padding: 2rem 1.5rem;
  box-shadow: 10px 0 20px rgba(163,177,198,0.2);
  z-index: 10;
}
.admin-sidebar h2 { margin-bottom: 2.5rem; padding-left: 1rem; color: var(--primary); text-shadow: 1px 1px 2px rgba(163,177,198,0.5); }
.admin-menu { display: flex; flex-direction: column; gap: 1rem; }
.admin-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: var(--neu-shadow);
  transition: 0.3s;
}
.admin-menu a:hover, .admin-menu a.active {
  color: var(--primary);
  box-shadow: var(--neu-shadow-inset);
}
.admin-main { flex: 1; padding: 3rem; background: var(--bg-color); overflow-y: auto;}

@media (max-width: 768px) {
  .top-header { flex-direction: column; gap: 1.5rem; border-radius: 0; }
  .navbar { margin: 0; border-radius: 0; }
  .top-menu { display: none; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 2rem 1.5rem; box-shadow: none; border-bottom: 2px solid rgba(163,177,198,0.3); }
  .admin-main { padding: 1.5rem; }
  .search-bar input { width: 100%; }
}

/* Testimonials Photo 1 Style */
.testi-card {
  border-radius: 15px;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  box-shadow: var(--neu-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.4);
  background-color: #f1f5f9; /* Default soft bg */
}
.testi-quote-icon {
  font-size: 4rem;
  color: rgba(0,0,0,0.05);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: serif;
  font-weight: 800;
  line-height: 1;
}
.testi-card p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d3748;
}
.testi-user-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}
.testi-user-details h4 {
  margin: 0;
  font-size: 1rem;
  color: #2d3748;
}
.testi-role {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(163,177,198,0.3);
  margin-top: 0.3rem;
}
.testi-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}
