/* =========================================================
   CAR AVAILABILITY PAGE
========================================================= */

.availability-page {
  padding: 105px 4% 50px;
  background: radial-gradient(circle at 10% 10%, rgba(108,43,217,.06), transparent 25%), radial-gradient(circle at 90% 20%, rgba(157,78,221,.05), transparent 25%), #f7f7fb;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.availability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  animation: fadeDown .6s ease both;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f0e9ff, #faf7ff);
  color: #6c2bd9;
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 9px;
  border: 1px solid #e7dcff;
}
/* ==========================================
   BOOKING REQUESTS
========================================== */

.booking-request-section {
  margin-top: 35px;
  margin-bottom: 35px;
}


.booking-request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}


  .booking-request-header h2 {
    margin: 6px 0;
    font-size: 26px;
    font-weight: 700;
  }


    .booking-request-header h2 span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      height: 30px;
      margin-left: 8px;
      padding: 0 8px;
      border-radius: 50px;
      background: #ff4d6d;
      color: #fff;
      font-size: 14px;
    }


  .booking-request-header p {
    margin: 0;
    color: #777;
  }


.booking-request-card {
  background: #fff;
  border-radius: 18px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.booking-table {
  margin-bottom: 0;
}


  .booking-table thead th {
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
  }


  .booking-table tbody td {
    padding: 16px;
    vertical-align: middle;
    font-size: 14px;
  }


  .booking-table tbody tr {
    transition: 0.2s ease;
  }


    .booking-table tbody tr:hover {
      transform: translateY(-1px);
    }


.booking-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.available-cars-swal {
  border-radius: 22px !important;
}

.available-cars-popup {
  max-height: 500px;
  overflow-y: auto;
  padding: 5px;
}

.popup-car-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 16px;
  text-align: left;
  background: #fff;
}

.popup-car-image {
  width: 180px;
  height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

  .popup-car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

.popup-car-info {
  flex: 1;
}

  .popup-car-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
  }

.popup-car-details {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: #666;
  font-size: 13px;
}

  .popup-car-details span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

.popup-car-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

  .popup-car-bottom strong {
    font-size: 20px;
    color: #6c2bd9;
  }

  .popup-car-bottom small {
    font-size: 12px;
    color: #777;
  }

.popup-book-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  background: #6c2bd9;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

  .popup-book-btn:hover {
    opacity: 0.9;
  }

@media (max-width: 600px) {

  .popup-car-card {
    flex-direction: column;
    align-items: stretch;
  }

  .popup-car-image {
    width: 100%;
    height: 150px;
  }

  .popup-car-bottom {
    gap: 10px;
  }
}

  .booking-status.pending {
    background: #fff3cd;
    color: #856404;
  }


.booking-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}


  .booking-actions button {
    border-radius: 8px;
  }
.availability-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

  .availability-header h1 span {
    color: #6c2bd9;
  }

.availability-header p {
  color: #64748b;
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 12px;
}

.add-car-btn {
  border: none;
  background: linear-gradient(135deg, #6c2bd9, #9d4edd);
  color: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 7px 18px rgba(108,43,217,.22);
  transition: all .3s ease;
}

  .add-car-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(108,43,217,.30);
  }
.available-cars-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.popup-car-card {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 8px;
  box-sizing: border-box;
}

.popup-car-image-wrapper {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

.popup-car-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 120px;
}

.popup-car-info {
  padding: 8px;
}

  .popup-car-info h3 {
    font-size: 16px;
    margin: 5px 0;
  }

.popup-car-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.popup-car-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.popup-price strong {
  font-size: 15px;
}

.popup-price small {
  font-size: 10px;
}

.popup-book-btn {
  font-size: 11px;
  padding: 6px 9px;
}

/* =========================================================
   SUMMARY CARDS
========================================================= */

.summary-row {
  margin-bottom: 22px;
}

.summary-card {
  background: rgba(255,255,255,.95);
  border-radius: 15px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(15,23,42,.045);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

  .summary-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    right: -25px;
    top: -25px;
    border-radius: 50%;
    background: rgba(108,43,217,.04);
  }

  .summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,.09);
  }

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: .3s;
}

.summary-card:hover .summary-icon {
  transform: rotate(-5deg) scale(1.08);
}

.summary-icon.purple {
  background: #f0e9ff;
  color: #6c2bd9;
}

.summary-icon.green {
  background: #e9f9ef;
  color: #16a34a;
}

.summary-icon.red {
  background: #fff0f0;
  color: #dc2626;
}

.summary-icon.orange {
  background: #fff5e7;
  color: #ea580c;
}

.summary-card span {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.summary-card h2 {
  margin: 1px 0 0;
  font-size: 23px;
  font-weight: 700;
  color: #1e293b;
}


/* =========================================================
   FILTER
========================================================= */

.filter-card {
  background: rgba(255,255,255,.95);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  border: 1px solid #eee;
  box-shadow: 0 5px 18px rgba(15,23,42,.04);
}

.search-box {
  flex: 1;
  position: relative;
}

  .search-box i {
    position: absolute;
    left: 14px;
    top: 13px;
    color: #94a3b8;
    font-size: 13px;
  }

  .search-box input,
  .filter-select,
  .date-filter {
    width: 100%;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0 13px;
    outline: none;
    font-family: inherit;
    font-size: 11px;
    color: #475569;
    background: #fff;
  }

  .search-box input {
    padding-left: 38px;
  }

    .search-box input:focus,
    .filter-select:focus,
    .date-filter:focus {
      border-color: #6c2bd9;
      box-shadow: 0 0 0 3px rgba(108,43,217,.06);
    }


/* =========================================================
   CAR CARD
========================================================= */

/* =========================================================
   PREMIUM GRADIENT CAR CARD
========================================================= */

.availability-card {
  position: relative;
  background: linear-gradient( 145deg, rgba(255,255,255,0.98) 0%, rgba(248,245,255,0.96) 45%, rgba(241,235,255,0.95) 100% );
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(108,43,217,.12);
  box-shadow: 0 10px 30px rgba(108,43,217,.08), 0 2px 8px rgba(15,23,42,.04);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .3s ease;
  animation: cardReveal .7s cubic-bezier(.2,.8,.2,1) both;
  isolation: isolate;
}

  /* Top colored line */

  .availability-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg,#6c2bd9,#9d4edd,#ff4d6d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
  }
  /* Animated background glow */

  .availability-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -75px;
    top: -75px;
    border-radius: 50%;
    background: linear-gradient( 135deg, rgba(108,43,217,.20), rgba(157,78,221,.08), rgba(255,77,109,.12) );
    filter: blur(2px);
    z-index: -1;
    animation: floatingGlow 6s ease-in-out infinite;
  }


  .availability-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -80px;
    bottom: -80px;
    border-radius: 50%;
    background: linear-gradient( 135deg, rgba(255,77,109,.12), rgba(108,43,217,.10) );
    z-index: -1;
    animation: floatingGlow2 7s ease-in-out infinite;
  }


  .availability-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(108,43,217,.25);
    box-shadow: 0 25px 55px rgba(108,43,217,.16), 0 8px 20px rgba(15,23,42,.08);
  }

.card-gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient( 90deg, #6c2bd9, #9d4edd, #ff4d6d, #6c2bd9 );
  background-size: 300% 100%;
  animation: gradientMove 4s linear infinite;
  z-index: 5;
}
/* =========================================================
   CARD TOP
========================================================= */

.car-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 15px 0;
}

.status-badge {
  padding: 5px 9px;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
}

  .status-badge i {
    font-size: 6px;
    margin-right: 4px;
  }

  .status-badge.booked {
    background: #fff0f0;
    color: #dc2626;
  }

  .status-badge.available {
    background: #eaf9ef;
    color: #16a34a;
  }

  .status-badge.maintenance {
    background: #fff5e7;
    color: #ea580c;
  }

.more-btn {
  border: none;
  background: #f8fafc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #64748b;
  transition: .25s;
}

  .more-btn:hover {
    background: #f0e9ff;
    color: #6c2bd9;
    transform: rotate(90deg);
  }


/* =========================================================
   CAR IMAGE
========================================================= */

.car-photo {
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  background: linear-gradient(180deg,#fff,#faf9ff);
}

  .car-photo img {
    max-width: 82%;
    max-height: 125px;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease;
    filter: drop-shadow(0 10px 10px rgba(15,23,42,.12));
    animation: carFloat 4s ease-in-out infinite;
  }


.availability-card:hover .car-photo img {
  transform: scale(1.10) translateY(-7px);
  filter: drop-shadow(0 18px 18px rgba(108,43,217,.20));
}

.availability-card:hover .car-photo img {
  transform: scale(1.07) translateY(-3px);
  filter: drop-shadow(0 13px 13px rgba(108,43,217,.15));
}


/* =========================================================
   CAR INFO
========================================================= */

.car-info {
  padding: 4px 15px 15px;
}

  .car-info h3 {
    font-size: 17px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
  }

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  font-size: 9px;
  margin-bottom: 12px;
}

  .car-meta span {
    background: #f8fafc;
    padding: 4px 6px;
    border-radius: 5px;
  }

  .car-meta i {
    color: #6c2bd9;
    margin-right: 3px;
  }


/* =========================================================
   BOOKING INFO
========================================================= */

.booking-info {
  background: linear-gradient(135deg,#faf8ff,#f7f3ff);
  border: 1px solid #eee5ff;
  border-radius: 9px;
  padding: 10px;
}

.booking-title {
  color: #6c2bd9;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 7px;
}

.booking-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}

  .booking-time strong {
    color: #1e293b;
  }

  .booking-time span {
    color: #64748b;
  }

  .booking-time i {
    color: #9d4edd;
    margin: 0 2px;
  }


/* =========================================================
   AVAILABLE NOW
========================================================= */

.available-now {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: linear-gradient(135deg,#effbf3,#f7fff9);
  border: 1px solid #d8f4e1;
}

  .available-now > i {
    color: #16a34a;
    font-size: 20px;
  }

  .available-now small {
    display: block;
    font-size: 8px;
    color: #94a3b8;
  }

  .available-now strong {
    display: block;
    font-size: 10px;
    color: #16a34a;
  }


/* =========================================================
   MAINTENANCE
========================================================= */

.maintenance-info {
  background: #fffaf2;
  border-color: #ffedd5;
}

  .maintenance-info .booking-title {
    color: #ea580c;
  }

  .maintenance-info p {
    font-size: 9px;
    color: #64748b;
    margin: 0;
  }


/* =========================================================
   NEXT AVAILABILITY
========================================================= */

.next-availability {
  margin-top: 9px;
  padding: 10px;
  border-radius: 9px;
  background: #f7f8fc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: .3s;
}

.availability-card:hover .next-availability {
  background: #f4f1ff;
}

.next-availability small {
  display: block;
  color: #94a3b8;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .6px;
}

.next-availability strong {
  display: block;
  color: #1e293b;
  font-size: 10px;
  margin-top: 2px;
}

.next-availability span {
  color: #6c2bd9;
  font-size: 8px;
}

.next-availability > i {
  color: #6c2bd9;
  font-size: 18px;
}

.available-box {
  background: #effbf3;
  border: 1px solid #dcf5e4;
}

  .available-box strong {
    color: #16a34a;
  }

  .available-box span {
    color: #64748b;
  }

  .available-box > i {
    color: #16a34a;
  }


/* =========================================================
   BUTTONS
========================================================= */

.card-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.schedule-btn,
.update-btn {
  height: 35px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 9px;
  cursor: pointer;
  transition: all .25s ease;
}

.schedule-btn {
  flex: 1;
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
}

  .schedule-btn:hover {
    border-color: #6c2bd9;
    color: #6c2bd9;
    background: #faf8ff;
    transform: translateY(-2px);
  }

.update-btn {
  padding: 0 15px;
  border: none;
  background: linear-gradient(135deg,#6c2bd9,#9d4edd);
  color: white;
  box-shadow: 0 5px 12px rgba(108,43,217,.18);
}

  .update-btn:hover {
    background: #5920bd;
    transform: translateY(-2px);
  }


/* =========================================================
   MODAL
========================================================= */

.availability-modal {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

  .availability-modal .modal-header {
    padding: 19px 22px;
    border-bottom: 1px solid #eee;
  }

.modal-tag {
  color: #6c2bd9;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.availability-modal h4 {
  margin: 3px 0 0;
  font-size: 18px;
  color: #1e293b;
  font-weight: 700;
}

.availability-modal .modal-body {
  padding: 22px;
}

.form-group {
  margin-bottom: 15px;
}

  .form-group label {
    display: block;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 5px;
  }

.form-control {
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
}

textarea.form-control {
  height: auto;
}

.form-control:focus {
  border-color: #6c2bd9;
  box-shadow: 0 0 0 3px rgba(108,43,217,.08);
}

.modal-footer {
  padding: 12px 22px 18px;
  border-top: 1px solid #eee;
}

.cancel-modal {
  border: 1px solid #e2e8f0;
  background: white;
  padding: 9px 17px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.save-availability {
  border: none;
  background: #6c2bd9;
  color: white;
  padding: 9px 17px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}
.status-badge {
  position: relative;
  padding: 6px 10px;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  transition: all .3s ease;
}


  .status-badge i {
    font-size: 6px;
    margin-right: 4px;
    animation: statusPulse 1.8s ease-in-out infinite;
  }


.availability-card:hover .status-badge {
  transform: scale(1.05);
}
.summary-card {
  background: linear-gradient( 135deg, rgba(255,255,255,.98), rgba(248,245,255,.95) );
  border: 1px solid rgba(108,43,217,.10);
  box-shadow: 0 8px 25px rgba(108,43,217,.07);
  transition: transform .35s ease, box-shadow .35s ease;
}


  .summary-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 18px 38px rgba(108,43,217,.14);
  }
.next-availability {
  background: linear-gradient( 135deg, rgba(248,248,255,.95), rgba(241,235,255,.90) );
  border: 1px solid rgba(108,43,217,.10);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}


.availability-card:hover .next-availability {
  transform: translateX(3px);
  background: linear-gradient( 135deg, #f8f5ff, #eee7ff );
  box-shadow: 0 5px 15px rgba(108,43,217,.08);
}
/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   PREMIUM ANIMATIONS
========================================================= */

@keyframes cardReveal {

  0% {
    opacity: 0;
    transform: translateY(35px) scale(.96);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@keyframes carFloat {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}


@keyframes floatingGlow {

  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-18px, 15px) scale(1.15);
  }
}


@keyframes floatingGlow2 {

  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(15px, -12px) scale(1.12);
  }
}


@keyframes gradientMove {

  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


@keyframes statusPulse {

  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(1.35);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
}


/* Swift */
.col-xl-4:nth-child(1) .availability-card {
  background: linear-gradient( 145deg, #ffffff 0%, #f5f0ff 55%, #eee5ff 100% );
}


/* Verna */
.col-xl-4:nth-child(2) .availability-card {
  background: linear-gradient( 145deg, #ffffff 0%, #effcf5 55%, #e4f8ec 100% );
}


/* Seltos */
.col-xl-4:nth-child(3) .availability-card {
  background: linear-gradient( 145deg, #ffffff 0%, #fff2f5 55%, #ffe8ee 100% );
}


/* Innova */
.col-xl-4:nth-child(4) .availability-card {
  background: linear-gradient( 145deg, #ffffff 0%, #fff8ed 55%, #ffefd8 100% );
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 768px) {

  .availability-page {
    padding: 95px 15px 35px;
  }

  .availability-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

    .availability-header h1 {
      font-size: 27px;
    }

  .add-car-btn {
    width: 100%;
  }

  .filter-card {
    flex-direction: column;
  }

  .car-photo {
    height: 145px;
  }

    .car-photo img {
      max-height: 130px;
    }
}
