/* Hide scrollbar for Chrome, Safari and Opera */
.custom-card-container::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.custom-card-container,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

* {
  margin: 0;
  padding: 0;
  white-space: normal;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cards-container::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.cards-container,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* --- Card Container --- */
.cardProjet {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif !important;
  background: #ffffff !important;
  border-radius: 15px !important;
  height: auto !important;
  min-height: fit-content !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  overflow: visible !important;
  display: block !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
  padding: 25px !important;
  flex: 1 1 calc(33.333% - 14px) !important;
  min-width: 430px !important;
  max-width: 430px !important;
}

.cardProjet:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  outline: none !important;
}

/* --- Header --- */
.cardProjet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cardProjet-title {
  font-size: 21px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  flex: 1;
  margin-right: 16px;
  min-height: 56px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Arrow Button --- */
.cardProjet-arrow-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cardProjet-arrow-button:hover {
  /* background: #c8e6c9; */
  transform: scale(1.05);
}

.cardProjet-arrow-button:active {
  transform: scale(0.95);
}

.cardProjet-icon {
  width: 60% !important;
  height: 60% !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  filter: brightness(0) invert(1);
}

/* --- Info Text --- */
.cardProjet-code {
  color: #64748b;
  font-size: 18px;
  margin-bottom: 10px;
}

.cardProjet-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 5px 10px !important;
  border-radius: 60px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  justify-content: center !important;
  /* background: #4caf50 !important; */
  color: white !important;
}

/* --- Budget Info --- */
.cardProjet-budget-info {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardProjet-budget-label {
  color: #a0a0a2;
  font-size: 15px;
  font-weight: 400;
}

.cardProjet-budget-amount {
  color: #2d3748;
  font-size: 15px;
  font-weight: 650;
}

/* --- Utilization Section --- */
.cardProjet-utilization-section {
  margin-top: 20px;
}

.cardProjet-utilization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cardProjet-utilization-label {
  color: #64748b;
  font-size: 14px;
}

.cardProjet-utilization-percentage {
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
}

/* --- Progress Bar --- */
.cardProjet-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.cardProjet-progress-fill {
  height: 100%;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .cardProjet {
    flex: 1 1 calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    min-width: 430px !important;
    margin: 0 auto !important;
  }
}
