/* LankaWheels Custom Premium Stylesheet */

:root {
  --primary-color: #0F4C81; /* Sapphire Blue */
  --primary-dark: #072A4A;
  --secondary-color: #00A86B; /* Emerald Green */
  --accent-color: #FFBF00; /* Amber Yellow */
  --bg-light: #F8FAFC;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Customizations */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

/* Theme Elements */
.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #E6AC00;
  border-color: #E6AC00;
}

/* Custom Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Buttons */
.btn {
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b3a63;
  border-color: #0b3a63;
}

/* Form Controls */
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

/* Badges */
.badge {
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.75rem;
}

.bg-success-light {
  background-color: rgba(0, 168, 107, 0.1);
  color: var(--secondary-color);
}

/* Spec Rows inside Details */
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-title {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-value {
  font-weight: 700;
  color: var(--primary-color);
}

/* Full-Screen & Split Auth Page Styles */
.auth-split-container {
  display: flex;
  min-height: calc(100vh - 180px);
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.auth-hero-side {
  flex: 1.2;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(16, 44, 87, 0.8) 100%), url('/images/login_bg.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-hero-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 191, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-form-side {
  flex: 1;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

/* Responsive adjustments for Auth split screens */
@media (max-width: 991.98px) {
  .auth-split-container {
    flex-direction: column;
    min-height: auto;
  }
  .auth-hero-side {
    display: none !important;
  }
  .auth-form-side {
    padding: 3rem 2rem;
  }
}

/* Fluid spacing and layout helpers */
.min-h-70vh {
  min-height: 70vh;
}

.vh-100-layout {
  min-height: calc(100vh - 180px);
}

/* Responsive Table wrappers and styling */
.table-responsive {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table th {
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 16px;
}

.table td {
  padding: 16px;
}

/* Text truncate line constraints */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

/* Responsive Carousel height limits */
.responsive-gallery-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 500px;
}

@media (max-width: 767.98px) {
  .responsive-gallery-img {
    max-height: 350px;
  }
}

/* Premium Category Tabs Selector styling */
.nav-category-pills {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--card-shadow);
}

.nav-category-pills .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-category-pills .nav-link:hover:not(.active) {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-category-pills .nav-link.active {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.2);
}

.badge-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.nav-category-pills .nav-link:not(.active) .badge-count {
  background-color: rgba(15, 76, 129, 0.08);
  color: var(--primary-color);
}