/* Clickable card styles */
.clickable-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.clickable-card:hover {
  transform: translateY(-2px);
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  overflow-y: auto; /* Allows modal scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.card-style-modal {
  background-color: #fff;
  margin: 2% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}
.close:hover {
  color: #666;
}

/* Modal Header - Matches Card Style */
.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap; /* Allows wrapping on small screens */
}
.stat-card-icon {
  margin-right: 15px;
}
.modal-header-text {
  flex: 1;
  min-width: 150px; /* Prevents squeezing on small screens */
}
.no-sales {
  pointer-events: none;
  cursor: default;
}
.modal-header-text h4 {
  margin: 0;
  color: #333;
  font-size: clamp(16px, 2vw, 18px); /* Responsive font size */
}
.modal-subtitle {
  margin: 5px 0 0;
  color: #666;
  font-size: clamp(12px, 1.8vw, 14px); /* Responsive font size */
}

/* Leaderboard Rows */
.leaderboard-content {
  max-height: 65vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 15px;
  margin-right: 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.2s;
  flex-wrap: wrap; /* Allows wrapping on small screens */
}
.leaderboard-row:hover {
  background-color: #f0f0f0;
}

.leaderboard-rank {
  width: 30px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(14px, 1.8vw, 16px);
}
.leaderboard-agent {
  flex: 1;
  font-weight: 500;
  min-width: 120px; /* Prevents squeezing */
  font-size: clamp(14px, 1.8vw, 16px);
  padding: 2px 0;
}
.leaderboard-sales {
  width: auto;
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: #2e7d32;
  font-size: clamp(14px, 1.8vw, 16px);
}
.deals-text {
  font-size: clamp(10px, 1.6vw, 12px);
  color: #666;
  font-weight: normal;
}

/* Trophy Colors */

.ph-trophy.trophy-0 { color: #FFD700; } /* Gold */
.ph-trophy.trophy-1 { color: #C0C0C0; } /* Silver */
.ph-trophy.trophy-2 { color: #CD7F32; } /* Bronze */

/* Top Agent Highlight */
.top-agent {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding-left: 8px;
}

/* Scrollbar styling */
.leaderboard-content::-webkit-scrollbar {
  width: 4px;
}
.leaderboard-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.leaderboard-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.leaderboard-content::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
  .card-style-modal {
    margin: 10px auto;
    padding: 15px;
    width: 95%;
  }
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-card-icon {
    margin-bottom: 10px;
  }
  .leaderboard-row {
    padding: 8px 10px;
  }
  .leaderboard-rank {
    width: 25px;
  }
  .leaderboard-sales {
    min-width: 50px;
  }
}

@media (max-width: 350px) {
  .leaderboard-agent {
    min-width: 100%;
    margin-top: 5px;
  }
  .leaderboard-sales {
    text-align: left;
    margin-top: 5px;
    padding-left: 35px; /* Aligns with rank */
  }
}
#leading-sales-card {
  position: relative;
  overflow: hidden;
  cursor: pointer; /* Add pointer cursor to indicate it's clickable */
  transition: transform 0.2s ease; /* Add subtle tap feedback */
}

#leading-sales-card .stat-card-info-container {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#leading-sales-card .stat-card-details {
  flex: 1;
  text-align: center; 
  margin-left: -32px; 
  padding-right: 32px;
}

#leading-sales-card .stat-card-icon {
  font-size: 32px;
  margin-right: 15px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: start;
}

/* Animation Classes */
#leading-sales-card.scroll-animate {
  animation: cardBounce 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#leading-sales-card.scroll-animate #leading-sales-trophy {
  animation: trophyShine 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#leading-sales-card.scroll-animate #leading-sales-name {
  animation: nameColorShift 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#leading-sales-card.scroll-animate::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, rgba(255,215,0,0) 70%);
  animation: goldPulse 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 0;
}

#leading-sales-card.scroll-animate::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
      radial-gradient(circle at 10% 20%, gold 0%, transparent 3%),
      radial-gradient(circle at 90% 30%, gold 0%, transparent 3%),
      radial-gradient(circle at 50% 80%, gold 0%, transparent 3%),
      radial-gradient(circle at 30% 50%, gold 0%, transparent 3%),
      radial-gradient(circle at 70% 10%, gold 0%, transparent 3%);
  animation: confettiFall 3.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  z-index: 1;
}

/* Keyframes */
@keyframes trophyShine {
  0% { 
    color: #333; 
    transform: scale(1); 
  }
  20% { 
    color: #d4af37;
    transform: scale(1.05);
  }
  40% { 
    color: #ffd700;
    transform: scale(1.12);
  }
  70% { 
    color: gold; 
    text-shadow: 0 0 15px rgba(255,215,0,0.8); 
    transform: scale(1.18); 
  }
  80% { 
    color: gold; 
    text-shadow: 0 0 10px rgba(255,215,0,0.7); 
    transform: scale(1.12); 
  }
  90% { 
    color: #333; 
    text-shadow: 0 0 10px rgba(255,215,0,0.6); 
    transform: scale(1.08); 
  }
  100% { 
    color: #333; 
    transform: scale(1.00); 
  }
}

@keyframes cardBounce {
  0% { transform: translateY(0); }
  20% { transform: translateY(-25px); }
  40% { transform: translateY(0); }
  55% { transform: translateY(-12px); }
  70% { transform: translateY(0); }
  80% { transform: translateY(-6px); }
  90% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

@keyframes nameColorShift {
  0% { color: inherit; }
  20% { color: #d4af37; }
  40% { color: #ffd700; }
  100% { color: #000000; }
}

@keyframes goldPulse {
  0% { opacity: 0; transform: scale(0.5); }
  20% { opacity: 0.5; }
  40% { opacity: 0.3; }
  60% { opacity: 0.15; }
  100% { opacity: 0; transform: scale(1.5); }
}

@keyframes confettiFall {
  0% { transform: translateY(-100%); opacity: 1; }
  60% { opacity: 0.9; }
  80% { opacity: 0.5; }
  100% { transform: translateY(100%); opacity: 0; }
}
.dashboard {
  width: 80%;
}

.dashboard-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age {
  padding-bottom: 2rem;
}

.stats-con {
  display: flex;
  flex-wrap: wrap; /* This enables wrapping */
  gap: 20px; /* Optional: adds space between cards */
  justify-content: flex-start; /* Optional: aligns items to the left */
}

.stat-card {
  flex: 1 1 270px; /* Grow, shrink, and set base width */
  min-width: 250px; /* Prevents too narrow cards */
  height: 150px;
  border-radius: 12px;
  padding-top: 18px;
  padding-left: 15px;
  background-color: #e9e9e9;
  transition: transform 0.2s ease-in-out;
}

/* #mediaSize{
  display: none;
} */
/* .stats-con {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.stat-card {
  border-radius: 12px;
  height: 150px;
  width: 40%;
  background-color: #e9e9e9;
  padding-top: 23px;
  padding-left: 23px;
  display: flex;
  align-items: start;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
} */
.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card-icon {
  font-size: 32px; /* Small icon size */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
  color: #333;
}

.stat-card-info-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  /* padding: 10px; */
  /* border: 1px solid red; */
}

.stat-card-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.stat-card-details h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.stat-card-details h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 5px 0;
}

.stat-card-details p {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin: 0;
}

.chart-container {
  background-color: #e9e9e9;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}
.chart-container h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #333;
}
.chart-container canvas {
  width: 100%;
  height: 350px;
}

.latest-applications {
  border-radius: 10px;
  padding: 20px;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
}
table tr th {
  border-radius: 0;
}
table tr th:first-child {
  border-top-left-radius: 6px;
}
table tr th:last-child {
  border-top-right-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stat-card {
    width: 45%;
    /* padding: 20px; */
    height: 140px;
  }
}

@media (max-width: 768px) {
  .stat-card {
    width: 100%;
    padding: 12px 0 15px 15px;
    /* padding-top: 10px;
    padding-left: 15px;
    padding-bottom: 5rem; */
  }

  .dashboard-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stats {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
  }

  .dash-header {
    width: 100%;
    display: flex;
    justify-content: start;
  }

  .stats-con {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .stat-card-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stat-card-details h3 {
    font-size: 1.5em !important;
  }

  .stat-card-details h4,
  .stat-card-details p {
    font-size: 1em !important;
  }
}

@media (min-width: 2560px) {
  .stat-card {
    width: 30%;
    height: 180px;
  }

  .dashboard {
    max-width: 1800px;
  }

  .stat-card-icon {
    font-size: 40px;
  }

  .stat-card-details h3 {
    font-size: 40px;
  }

  .stat-card-details p {
    font-size: 15px;
  }
  .stat-card-details h4 {
    font-size: 32px;
  }
}
table th,
table td {
  padding: 10px;
  text-align: left;
  font-size: 16px;
}

a {
  height: 50%;
}

.before-land {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing {
  width: 100%;
  height: 100vh;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
}

/* .stats {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
} */

@media screen and (max-width: 950px) {
  .stats-con {
    display: flex;
    flex-wrap: wrap; /* This enables wrapping */
    gap: 20px; /* Optional: adds space between cards */
    justify-content: flex-start; /* Optional: aligns items to the left */
  }

  .stat-card {
    flex: 1 1 300px; /* Grow, shrink, and set base width */
    min-width: 250px; /* Prevents too narrow cards */
    border-radius: 10px;
    padding: 20px;
  }

  #mediaSize {
    display: block;
  }

  #mediaSize1 {
    display: none;
  }
}

@media screen and (min-width: 1926px) and (max-width: 2650px) {
  .stats-con {
    display: flex;
    flex-wrap: wrap; /* This enables wrapping */
    gap: 20px; /* Optional: adds space between cards */
    justify-content: flex-start; /* Optional: aligns items to the left */
  }

  .stat-card {
    flex: 1 1 500px; /* Grow, shrink, and set base width */
    min-width: 200px; /* Prevents too narrow cards */
    border-radius: 10px;
    /* height: 190px; */
    padding: 20px;
  }
}

@media screen and (min-width: 1441px) and (max-width: 1926px) {
  .stats-con {
    display: flex;
    flex-wrap: wrap; /* This enables wrapping */
    gap: 20px; /* Optional: adds space between cards */
    justify-content: flex-start; /* Optional: aligns items to the left */
  }

  .stat-card {
    flex: 1 1 370px; /* Grow, shrink, and set base width */
    min-width: 200px; /* Prevents too narrow cards */
    border-radius: 10px;
    /* height: 190px; */
    padding: 20px;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .stats-con {
    display: flex;
    flex-wrap: wrap; /* This enables wrapping */
    gap: 20px; /* Optional: adds space between cards */
    justify-content: flex-start; /* Optional: aligns items to the left */
  }

  .stat-card {
    flex: 1 1 350px; /* Grow, shrink, and set base width */
    min-width: 250px; /* Prevents too narrow cards */
    border-radius: 10px;
    padding: 20px;
  }
}
@media (min-width: 820px) and (max-width: 1180px) {
  .stat-card-details h4 {
    font-size: 0.9em;
  }
}
@media (min-width: 894px) and (max-width: 1300px) {
  .vehicle-content-wrapper,
  .income-content-wrapper {
    /* background-color: red; */
    display: flex;
    flex-wrap: wrap;
    height: 100%;
  }

  .breakdown-wrapper,
  .income-breakdown-wrapper {
    width: 700px !important;
  }
  .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-card {
    min-width: 100px;
  }
}

@media (min-width: 894px) and (max-width: 1500px) {
  .income-container,
  .fleet-container {
    width: 100% !important;
  }
}
@media (max-width: 579px) {
  .stats {
    height: -moz-fit-content;
    height: fit-content;
    gap: 1rem;
    width: 100%;
  }
  .overview {
    height: -moz-fit-content;
    height: fit-content;
  }
  .stat-card {
    height: 50%;
  }
}
@media (min-width: 579px) and (max-width: 893px) {
  .stats {
    height: -moz-fit-content;
    height: fit-content;
    flex-wrap: wrap;
  }
  .overview {
    height: -moz-fit-content;
    height: fit-content;
  }
  .vehicle-content-wrapper,
  .income-content-wrapper {
    /* background-color: red; */
    display: flex;
    flex-wrap: wrap;
    height: 100%;
  }

  .breakdown-wrapper,
  .income-breakdown-wrapper {
    width: 700px !important;
  }
  .income-container,
  .fleet-container {
    width: 100% !important;
  }
}
@media (min-width: 480px) and (max-width: 893px) {
  .stats {
    gap: 1.3rem;
  }
  .stats .stat-card {
    max-width: 100%;
  }
  .dashboard-table-container {
    width: 100%;
    padding: 0px;
  }
  .vehicle-content-wrapper,
  .income-content-wrapper {
    /* background-color: red; */
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
  }

  .breakdown-wrapper,
  .income-breakdown-wrapper {
    width: 700px !important;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .stat-card{
    height:135px !important;
  }

  #leading-sales-card{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }

  
}


@media (min-width: 377px) and (max-width: 464px) {
  .chart-container {
    width: 87.5%;
  }

  .vehicle-content-wrapper,
  .income-content-wrapper {
    /* background-color: red; */
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
  }

  .dash-header h2 {
    font-size: 2em !important;
  }

  .fleet-con h2 {
    font-size: 1.7em !important;
  }
}
@media (max-width: 700px) {
  .vehicle-content-wrapper,
  .income-content-wrapper {
    /* background-color: red; */
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
  }

  .vehicle-wrapper {
    padding: 0 !important;
  }

  .breakdown-wrapper,
  .income-breakdown-wrapper {
    width: 500px !important;
  }
  .income-container h2 {
    width: 100%;
    display: flex;
    justify-content: start;
  }
  .fleet-container h2 {
    width: 100%;
    display: flex;
    justify-content: start;
  }
}
@media (max-width: 480px) {
  .dashboard-content {
    font-size: 13px;
  }
  .dashboard-table-container {
    width: 100%;
    padding: 0px;
  }
  .stats {
    display: flex;
    justify-content: center;
    width: 99.5%;
  }
  .stats .stat-card {
    max-width: 100%;
    height: 100px;
  }

  .hidden {
    display: none;
  }
} /*# sourceMappingURL=style.css.map */
