/* ========== HEADER STYLES ========== */

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--header-bg, white);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: 0.3s;
}

body.dark .store-header {
  background: #1e1e1e;
  border-bottom-color: #333;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.header-icon-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark .header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
}

.brand-text p {
  margin: 0;
  font-size: 11px;
  color: #666;
  opacity: 0.8;
}

body.dark .brand-text p {
  color: #aaa;
}

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

.profile-btn {
  font-size: 24px !important;
  cursor: pointer !important;
}

/* ========== HAMBURGER MENU ========== */

.header-drawer {
  position: fixed;
  left: -100%;
  top: 70px;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 70px);
  background: white;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 99;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.header-drawer.active {
  left: 0;
}

body.dark .header-drawer {
  background: #1e1e1e;
  border-right-color: #333;
}

.menu-section {
  padding: 20px 0;
  border-bottom: 1px solid #f1f1f1;
}

body.dark .menu-section {
  border-bottom-color: #333;
}

.menu-header {
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.menu-content {
  display: flex;
  flex-direction: column;
}

.menu-link {
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.2s;
  display: block;
  font-size: 14px;
}

body.dark .menu-link {
  color: #ddd;
}

.menu-link:hover {
  background: #f5f5f5;
  border-left-color: #2563eb;
}

body.dark .menu-link:hover {
  background: #2a2a2a;
}

.logout-btn {
  color: #ef4444;
  font-weight: 600;
}

/* User Profile in Drawer */
.user-profile-drawer {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.drawer-username {
  font-weight: 600;
  color: #333;
}

body.dark .drawer-username {
  color: #fff;
}

/* ========== MODAL STYLES ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-box {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

body.dark .modal-box {
  background: #1e1e1e;
  color: #fff;
}

.modal-box h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.modal-subtitle {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
}

body.dark .modal-subtitle {
  color: #aaa;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== FORM STYLES ========== */

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

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

body.dark .form-group label {
  color: #fff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.2s;
  box-sizing: border-box;
}

body.dark .form-group input,
body.dark .form-group textarea {
  background: #2a2a2a;
  color: #fff;
  border-color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group input {
  flex: 1;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: 0.2s;
}

.toggle-password:hover {
  opacity: 0.7;
}

/* ========== BUTTON STYLES ========== */

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-danger {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  font-size: 14px;
  width: 100%;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ========== DEMO ACCOUNT BOX ========== */

.demo-account {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
}

body.dark .demo-account {
  background: #332701;
  border-color: #78350f;
  color: #fef3c7;
}

.demo-account p {
  margin: 4px 0;
}

/* ========== MODAL FOOTER ========== */

.modal-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.modal-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  transition: 0.2s;
  display: block;
}

body.dark .modal-link {
  color: #60a5fa;
}

.modal-link:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* ========== PROFILE BOX ========== */

.profile-content {
  margin: 20px 0;
}

.profile-avatar-section {
  text-align: center;
  margin-bottom: 25px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-avatar-section h3 {
  margin: 8px 0 0 0;
  font-size: 18px;
}

.profile-info {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

body.dark .profile-info {
  background: #2a2a2a;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

body.dark .info-item {
  border-bottom-color: #444;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #333;
}

body.dark .info-label {
  color: #fff;
}

.info-value {
  color: #666;
}

body.dark .info-value {
  color: #aaa;
}

.timer-section {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.timer-section h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  opacity: 0.9;
}

.timer-display {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* ========== CONTENT BOXES ========== */

.faq-content,
.announcement-content,
.karir-content,
.how-to-content,
.cs-content {
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

body.dark .faq-item {
  border-bottom-color: #444;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
}

body.dark .faq-item h4 {
  color: #60a5fa;
}

.faq-item p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

body.dark .faq-item p {
  color: #aaa;
}

.karir-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.karir-content li {
  margin-bottom: 6px;
}

.cs-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.cs-item {
  display: block;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #2563eb;
  text-align: center;
  transition: 0.2s;
  font-weight: 600;
  font-size: 13px;
}

body.dark .cs-item {
  background: #2a2a2a;
  color: #60a5fa;
}

.cs-item:hover {
  background: #e5e7eb;
}

body.dark .cs-item:hover {
  background: #333;
}

.how-to-content ol {
  margin: 15px 0;
  padding-left: 25px;
  font-size: 14px;
}

.how-to-content li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ========== NOTIFICATION ========== */

.notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  z-index: 2000;
  transition: bottom 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  text-align: center;
  font-weight: 600;
}

.notification.show {
  bottom: 30px;
}

.notification-error {
  background: #ef4444;
}

.notification-warning {
  background: #f59e0b;
}

.notification-info {
  background: #3b82f6;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
  .store-header {
    padding: 12px 16px;
  }

  .brand-text h1 {
    font-size: 14px;
  }

  .brand-text p {
    display: none;
  }

  .modal-box {
    padding: 25px 20px;
  }

  .header-drawer {
    max-width: 100%;
  }

  .profile-avatar-large {
    width: 60px;
    height: 60px;
  }
}

/* Dark mode scrollbar */
body.dark .modal-box::-webkit-scrollbar,
body.dark .header-drawer::-webkit-scrollbar {
  width: 6px;
}

body.dark .modal-box::-webkit-scrollbar-thumb,
body.dark .header-drawer::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

body.dark .modal-box::-webkit-scrollbar-track,
body.dark .header-drawer::-webkit-scrollbar-track {
  background: #2a2a2a;
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, a {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Tambahkan di akhir auth.css */

/* ========== HAMBURGER DRAWER STYLES ========== */

.header-drawer {
    position: fixed;
    top: 80px;
    left: 16px;
    width: 320px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 16px;
    display: none;
}

.header-drawer.show {
    display: block;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.dark .header-drawer {
    background: #1e1e1e;
    border: 1px solid #333;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    padding-left: 8px;
}

body.dark .menu-header {
    color: #94a3b8;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-link {
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
    display: block;
}

body.dark .menu-link {
    background: #2a2a2a;
    color: #e2e8f0;
    border-color: #404040;
}

.menu-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

body.dark .menu-link:hover {
    background: #333;
}

.user-profile-drawer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

body.dark .user-profile-drawer {
    background: #2a2a2a;
    border-color: #404040;
}

.drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.drawer-username {
    font-weight: 600;
    font-size: 15px;
}

body.dark .drawer-username {
    color: #fff;
}

/* Logout button */
.logout-btn {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
    font-weight: 600;
}

body.dark .logout-btn {
    background: #451a1a !important;
    color: #f87171 !important;
    border-color: #7f1d1d !important;
}

.logout-btn:hover {
    background: #fecaca !important;
}

body.dark .logout-btn:hover {
    background: #7f1d1d !important;
}