/* Pacific Hook UI Components */

/* ==================== AUTH MODAL ==================== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  z-index: 1;
  background: var(--ocean-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

[data-theme="light"] .auth-modal-content {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

.auth-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--steel);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-modal-close:hover {
  color: var(--sea-foam);
}

.auth-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-md);
}

[data-theme="light"] .auth-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: var(--space-sm);
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: calc(var(--space-md) * -1);
}

.auth-tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.auth-form .form-group {
  margin-bottom: var(--space-md);
}

.auth-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

[data-theme="light"] .auth-error {
  color: #dc2626;
}

.auth-forgot {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.875rem;
}

.auth-forgot a {
  color: var(--teal-light);
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--steel);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0, 0, 0, 0.1);
}

.auth-social {
  display: flex;
  gap: var(--space-md);
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sea-foam);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-social {
  background: white;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--storm);
}

/* ==================== ADMIN LOGIN MODAL ==================== */
.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.admin-login-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
  border: 2px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.2);
}

[data-theme="light"] .admin-login-content {
  background: white;
  border-color: var(--coral);
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.15);
}

.admin-login-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--steel);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.admin-login-close:hover {
  color: white;
}

.admin-login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.admin-login-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.admin-login-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.admin-login-header p {
  color: var(--steel);
  font-size: 0.875rem;
}

.admin-login-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-login-footer a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.admin-login-footer a:hover {
  color: var(--sea-foam);
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--ocean-medium);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 10001;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-error {
  border-left: 4px solid var(--danger);
}

.notification-info {
  border-left: 4px solid var(--teal-light);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.notification-icon {
  font-size: 1.25rem;
}

.notification-success .notification-icon { color: var(--success); }
.notification-error .notification-icon { color: var(--danger); }
.notification-info .notification-icon { color: var(--teal-light); }

[data-theme="light"] .notification {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==================== BOOKING MODAL ==================== */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.booking-modal-content {
  position: relative;
  background: var(--ocean-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 450px;
}

[data-theme="light"] .booking-modal-content {
  background: white;
}

.booking-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--steel);
  font-size: 1.5rem;
  cursor: pointer;
}

.booking-title {
  margin-bottom: var(--space-xl);
}

.booking-trip-info {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

[data-theme="light"] .booking-trip-info {
  background: rgba(0, 0, 0, 0.03);
}

.booking-price {
  color: var(--coral);
  font-weight: 700;
  font-size: 1.25rem;
}

.passenger-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.passenger-selector .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.25rem;
}

#passengerCount {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.booking-summary {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

[data-theme="light"] .booking-summary {
  background: rgba(0, 0, 0, 0.03);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.summary-total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: 1.125rem;
}

[data-theme="light"] .summary-total {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .booking-title {
  color: var(--storm);
}

[data-theme="light"] .booking-price {
  color: var(--teal-medium);
}

[data-theme="light"] .summary-row {
  color: var(--storm);
}

[data-theme="light"] .passenger-selector {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .passenger-selector .btn {
  background: white;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--storm);
}

/* Payment option rows - override inline styles */
[data-theme="light"] [style*="rgba(255,255,255,0.05)"],
[data-theme="light"] [style*="rgba(255, 255, 255, 0.05)"] {
  background: rgba(0, 0, 0, 0.03) !important;
  color: var(--storm);
}

[data-theme="light"] .booking-modal-close {
  color: var(--slate);
}

/* ==================== USER MENU ==================== */
.user-menu {
  display: none;
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--sea-foam);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-sm);
  background: var(--ocean-medium);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  min-width: 200px;
  display: none;
  overflow: hidden;
}

[data-theme="light"] .user-dropdown {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
}

.user-dropdown.active {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--sea-foam);
  transition: background 0.2s;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .user-dropdown a {
  color: var(--storm);
}

[data-theme="light"] .user-dropdown a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ==================== UTILITIES ==================== */
.btn-full {
  width: 100%;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-loader::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .auth-modal-content {
    margin: var(--space-md);
    padding: var(--space-xl);
  }

  .notification {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .booking-modal-content {
    margin: var(--space-md);
  }

  .admin-sidebar.mobile-open {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
  }

  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .admin-sidebar.mobile-open ~ .admin-sidebar-backdrop {
    display: block;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
