:root {
  --white: #ffffff;
  --black: #000000;
  --gold: #C5A059;
  --green: #10B981;
  --red: #EF4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--white);
  color: var(--black);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 3rem;
  z-index: 999;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* WhatsApp button - move up on mobile to avoid bottom nav bar */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
  }
}

/* Auth Pages Styles */
.auth-container {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
}

.auth-right {
  flex: 1;
  background: linear-gradient(135deg, var(--black) 0%, #333 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-right::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-right {
    min-height: 200px;
  }
}

/* Form Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Dashboard Styles */
.dashboard {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.carnet-card {
  background: linear-gradient(135deg, var(--black) 0%, #333 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.carnet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 50%);
  opacity: 0.1;
}

/* Admin Panel Styles */
.admin-container {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}

.admin-sidebar {
  width: 260px;
  background: var(--black);
  color: white;
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-content {
  margin-left: 260px;
  padding: 2rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  padding: 0 .75rem 1rem;
  color: #ccc;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold);
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table th {
  background: #f8f8f8;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.admin-table tr:hover {
  background: #fafafa;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-in 0.3s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--gold);
  color: white;
}

.btn-primary:hover {
  background-color: #b89748;
}

.btn-black {
  background-color: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background-color: #333;
}

.btn-danger {
  background-color: var(--red);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-success {
  background-color: var(--green);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .admin-content {
    margin-left: 0;
  }
}

/* Mobile Navigation - Bottom padding for mobile nav bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

/* Desktop Navigation - Force visibility and show menu */
@media (min-width: 769px) {
  #navbar-expanded {
    display: block !important;
  }

  #menu-center {
    display: flex !important;
  }

  /* Vertical centering when scrolled */
  #logo-top {
    align-items: center;
  }

  #menu-center {
    align-items: center;
  }
}