@import '../responsive.css';
/* Base Styles */
:root {
  --primary: #E05E1A;    /* Orange color */
  --secondary: #1A2942;  /* Dark blue color */
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.5;
}

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08); /* Thin outline under navbar */
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: nowrap !important;
  gap: 1rem;
}

/* Prevent navbar children from expanding to full width on small screens */
.navbar nav > * { flex: 0 0 auto !important; }

@media (min-width: 640px) {
  .navbar nav {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar nav {
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar nav {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .logo {
    font-size: 1.2rem;
    gap: 0;
  }
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.875rem;
    gap: 0;
  }
  
  .logo span {
    margin-left: -0.4rem;
  }
}

.car-icon {
  color: var(--secondary);
  font-size: 1.5rem;
}

.logo-icon {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
}

.logo-full {
  height: 1.2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 480px) {
  .car-icon {
    font-size: 2rem;
  }
  
  .logo-icon {
    height: 2rem;
  }
  
  .logo-full {
    height: 1.4rem;
  }
}

@media (min-width: 768px) {
  .car-icon {
    font-size: 3rem;
  }
  
  .logo-icon {
    height: 3rem;
  }
  
  .logo-full {
    height: 2.2rem;
  }
}

.logo span {
  color: var(--primary);
  margin-left: -0.3rem;
}

.desktop-menu {
  display: flex;
  gap: 2rem;
  margin-left: -210px;
}

.desktop-menu a {
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
}

.desktop-menu a:hover {
  color: var(--primary);
}

.desktop-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 50px;
  background-color: var(--primary);
  transition: background-color 0.2s;
}

.user-menu-button span{
    font-size: 1rem;
    color: white;
}

.user-menu-button i{
    color: white;
}

.user-menu-button:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background-color: var(--white);
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  z-index: 100;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--gray-100);
}

.dropdown-item i {
  color: var(--gray-600);
  width: 1rem;
  text-align: center;
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0.5rem 0;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-danger {
  background-color: #dc3545;
  color: var(--white);
  border: 1px solid #dc3545;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #4c31a0;
}

.btn-text {
  color: var(--secondary);
  background: transparent;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-text:hover {
  text-decoration: underline;
}

.full-width {
  width: 100%;
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* Desktop/Mobile Only Classes */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
  }

  .user-menu-button .user-name {
    display: block !important;
  }
}

/* Animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Settings Page */
.settings-page {
  padding-top: 10rem;
  min-height: 100vh;
  padding-bottom: 6rem;
}

/* Settings Content */
.settings-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.settings-section {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-section.danger-section,
.settings-section.danger-zone {
  border: 2px solid #dc3545;
  border-radius: 1rem;
  background: #fff5f5;
}

.settings-section.danger-zone .section-header h2 {
  color: #dc3545;
}

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.danger-section .section-header {
  border-bottom-color: var(--danger);
}

.danger-section .section-header h2 {
  color: var(--danger);
}

/* Setting Items */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.setting-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-info {
  flex: 1;
}

.setting-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.setting-info p {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.4;
}

   /* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

/* Modal Content – match app modal look */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 28px 36px;
  border: none;
  width: 92%;
  max-width: 500px; /* same visual width as profile modals */
  border-radius: 16px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.28s ease;
  border-top: 6px solid var(--primary); /* orange accent like reference */
}

.modal-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Inputs and form spacing to align with reference */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 600;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: var(--gray-500);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.15);
}

.modal-content small {
  color: var(--gray-600);
}

/* Close Button styled as subtle circular icon */
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  background: #F3F4F6;
  color: var(--gray-700);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.close:hover {
  background: #E5E7EB;
  color: var(--secondary);
}

/* Payment Method Styling */
.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  gap: 12px;
}

.card-logo {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.payment-method p {
  flex-grow: 1;
  margin: 0;
  font-size: 16px;
  color: #333;
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}


/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Select Dropdown */
.setting-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  background-color: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  min-width: 150px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.setting-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(224, 94, 26, 0.1);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.25rem;
}

.footer-logo-icon i {
  color: var(--secondary);
  font-size: 2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.contactinfo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

/* Set current year for footer copyright */
#current-year:after {
  content: attr(data-year);
}

@media (min-width: 1024px) {
  .navbar nav {
    max-width: 1500px;
    margin: 0 auto;
  }
}