/* Landing Page UMKM - Custom Styles */
/* Most styling via Tailwind CDN, this handles custom/animation styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Pulse animation for WA button */
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float { animation: pulse-wa 2s infinite; }
.wa-float:hover { animation: none; }

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Testimonial carousel */
.carousel-container {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  overflow: hidden;
}

/* Star rating */
.star { color: #fbbf24; }
.star-empty { color: #e5e7eb; }

/* Admin styles */
.admin-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 24px;
  margin-bottom: 16px;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.admin-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  background: #2563eb;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-danger {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-danger:hover { background: #dc2626; }

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #e5e7eb; }

/* Responsive */
@media (max-width: 768px) {
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Admin sidebar mobile overlay */
@media (max-width: 1023px) {
  #sidebar {
    position: fixed !important;
    top: 56px !important;
    left: 0;
    z-index: 40;
    height: calc(100vh - 56px);
    overflow-y: auto;
  }
  #sidebar.hidden {
    display: none !important;
  }
}
