:root {
  --background: #0f172a; /* Tema gelap ala TikTok / Slate 900 */
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #fe2c55; /* TikTok Red */
  --accent-secondary: #25f4ee; /* TikTok Cyan */
  --border-color: #334155;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

/* Product Card */
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(37, 244, 238, 0.15);
}
.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #000;
}
.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 15px;
}
.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  width: 100%;
}
.btn-primary {
  background: var(--accent-primary);
  color: white;
}
.btn-primary:hover {
  background: #e0284d;
  box-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
}

/* Admin Styles */
.admin-container {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: white;
  font-size: 1rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}
.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  background: rgba(255,255,255,0.05);
}
.btn-danger {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-danger:hover {
  background: var(--accent-primary);
  color: white;
}
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}
