.mpt-modern-project-table,
.mpt-modern-project-table * {
  box-sizing: border-box;
}

.mpt-modern-project-table {
  width: 100%;
  max-width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: #162033;
  background: #f4f8ff;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 0;
}


.mpt-table-head {
  display: grid;
  grid-template-columns: var(--mpt-template, repeat(var(--mpt-columns), minmax(0, 1fr)));
  background: linear-gradient(135deg, #0f5fe8 0%, var(--mpt-primary) 60%, #2f8bff 100%);
  color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(30, 121, 254, 0.22);
  margin-bottom: 12px;
}

.mpt-table-head div {
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.25;
  border-right: 1px solid rgba(255,255,255,0.18);
  word-break: normal;
  overflow-wrap: normal;
}


.mpt-table-head div:last-child {
  border-right: none;
}

.mpt-table-row {
  display: grid;
  grid-template-columns: var(--mpt-template, repeat(var(--mpt-columns), minmax(0, 1fr)));
  background: #ffffff;
  border: 1px solid rgba(30, 121, 254, 0.12);
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(15, 60, 120, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mpt-table-row:last-child {
  margin-bottom: 0;
}

.mpt-table-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 60, 120, 0.13);
  border-color: color-mix(in srgb, var(--mpt-accent) 45%, transparent);
}

.mpt-table-row > div {
  min-height: 78px;
  padding: 14px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border-right: 1px solid rgba(30, 121, 254, 0.11);
  word-break: normal;
  overflow-wrap: anywhere;
}


.mpt-table-row > div:last-child {
  border-right: none;
}

.mpt-table-row > div:nth-child(2) {
  font-weight: 700;
  color: #102a4c;
}

.mpt-progress {
  width: 100%;
  height: 30px;
  background: #e8f2ff;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(30, 121, 254, 0.25);
  position: relative;
}

.mpt-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--mpt-primary) 0%, #2f8bff 45%, var(--mpt-accent) 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  animation: mptFillProgress 2s ease-out forwards;
}

.mpt-progress-fill span {
  position: relative;
  z-index: 2;
}

.mpt-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: mptShine 1.8s linear infinite;
  animation-delay: 2s;
}

@keyframes mptFillProgress {
  from { width: 0%; }
  to { width: var(--mpt-progress-width); }
}

@keyframes mptShine {
  from { left: -45%; }
  to { left: 115%; }
}

@media screen and (max-width: 1100px) {
  .mpt-modern-project-table {
    padding: 14px;
  }

  .mpt-table-head div,
  .mpt-table-row > div {
    font-size: 11.5px;
    padding: 12px 7px;
  }
}

@media screen and (max-width: 768px) {
  .mpt-modern-project-table {
    padding: 12px;
    background: #f4f8ff;
    border-radius: 18px;
    overflow: hidden !important;
  }

  .mpt-table-head {
    display: none;
  }

  .mpt-table-row {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 121, 254, 0.18);
    box-shadow: 0 10px 26px rgba(15, 60, 120, 0.09);
  }

  .mpt-table-row:last-child {
    margin-bottom: 0;
  }

  .mpt-table-row:last-child {
  margin-bottom: 0;
}

.mpt-table-row:hover {
    transform: none;
  }

  .mpt-table-row > div {
    width: 100%;
    min-height: auto;
    padding: 14px 15px;
    border-right: none;
    border-bottom: 1px solid rgba(30, 121, 254, 0.12);
    display: block;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    background: #ffffff;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .mpt-table-row > div:first-child {
    background: linear-gradient(135deg, var(--mpt-primary) 0%, #2f8bff 100%);
    color: #ffffff;
    font-weight: 900;
  }

  .mpt-table-row > div:last-child {
    border-bottom: none;
    background: #f8fbff;
  }


  .mpt-table-row > div.mpt-highlight-amount-cell {
    color: var(--mpt-primary) !important;
    font-weight: 900 !important;
    background: #f8fbff !important;
  }


  .mpt-table-row > div::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 7px;
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    color: var(--mpt-primary);
    text-transform: uppercase;
    letter-spacing: 0.28px;
    line-height: 1.25;
  }

  .mpt-table-row > div:first-child::before {
    color: #ffffff;
    opacity: 0.85;
  }

  .mpt-progress {
    height: 30px;
  }
}

@media screen and (max-width: 480px) {
  .mpt-modern-project-table {
    padding: 10px;
  }

  .mpt-table-row > div {
    font-size: 12.5px;
    padding: 12px;
    gap: 10px;
  }

  .mpt-table-row > div::before {
    font-size: 10.8px;
    margin-bottom: 6px;
  }
}


/* Dar Elementor kolonlarında da mobil kart görünümüne geçsin */
@container (max-width: 768px) {
  .mpt-table-head {
    display: none;
  }

  .mpt-table-row {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 121, 254, 0.18);
    box-shadow: 0 10px 26px rgba(15, 60, 120, 0.09);
  }

  .mpt-table-row:last-child {
    margin-bottom: 0;
  }

  .mpt-table-row:last-child {
  margin-bottom: 0;
}

.mpt-table-row:hover {
    transform: none;
  }

  .mpt-table-row > div {
    width: 100%;
    min-height: auto;
    padding: 14px 15px;
    border-right: none;
    border-bottom: 1px solid rgba(30, 121, 254, 0.12);
    display: block;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    background: #ffffff;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .mpt-table-row > div:first-child {
    background: linear-gradient(135deg, var(--mpt-primary) 0%, #2f8bff 100%);
    color: #ffffff;
    font-weight: 900;
  }

  .mpt-table-row > div:last-child {
    border-bottom: none;
    background: #f8fbff;
  }


  .mpt-table-row > div.mpt-highlight-amount-cell {
    color: var(--mpt-primary) !important;
    font-weight: 900 !important;
    background: #f8fbff !important;
  }


  .mpt-table-row > div::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 7px;
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    color: var(--mpt-primary);
    text-transform: uppercase;
    letter-spacing: 0.28px;
    line-height: 1.25;
  }

  .mpt-table-row > div:first-child::before {
    color: #ffffff;
    opacity: 0.85;
  }

  .mpt-progress {
    height: 30px;
  }
}
