body {
  background: #0f1626;
  color: #fff;
  font-family: 'Saira', sans-serif;
  padding: 40px;
}

h1 {
  color: #d1b4ff;
  text-align: center;
  margin-bottom: 40px;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  background: #1c2541;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.projects-table th, 
.projects-table td {
  padding: 14px 16px;
  text-align: left;
}

.projects-table th {
  background: #203255;
}

tr:nth-child(even) { 
  background: #16213e; 
}

a.btn {
  display: inline-block;
  background: #182952;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s;
}

a.btn:hover {
  background: #8a91ff;
}

.actions {
  display: flex;
  gap: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.topbar .actions {
  display: flex;
  gap: 10px;
  align-items: center;
}


.topbar h1 {
  margin: 0;
}

img {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn-logout {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  background: #b33;
}

.alert-success {
  background: #14532d;
  color: #d1fae5;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

    /* 👇 Extra styling voor lees-meer tekst in tabel */
    .desc-cell {
      max-width: 300px;
      position: relative;
    }

    .desc-text {
      max-height: 60px;
      overflow: hidden;
      transition: max-height 0.3s ease;
      line-height: 1.4;
    }

    .desc-text.expanded {
      max-height: 1000px;
    }

    .read-more {
      background: none;
      border: none;
      color: #8b73a5;
      font-weight: 600;
      cursor: pointer;
      padding: 4px 0;
      display: inline-block;
      transition: color 0.3s;
    }

    .read-more:hover {
      color: #a78bfa;
    }

    /* Optionele fade voor ingekorte tekst */
    .desc-text::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 20px;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .desc-text.expanded::after {
      opacity: 0;
    }

    /* 🔧 Dashboard: geen fade effect bij beschrijving */
    .projects-table td p,
    .project-description::after {
    content: none !important;
    background: none !important;
    max-height: none !important;
    overflow: visible !important;
    }

    /* 📱 MOBIELVRIENDELIJKE DASHBOARD STYLING */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  body {
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .topbar .actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .projects-table th, 
  .projects-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .projects-table img {
    width: 70px;
    height: auto;
  }

  a.btn {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* Mobiel liggend en kleiner (max 768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .projects-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 8px;
  }

  .projects-table table {
    min-width: 600px;
  }

  .actions {
    flex-direction: column;
    gap: 6px;
  }

  a.btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .btn-logout {
    width: 100%;
    text-align: center;
  }
}

/* Klein mobiel (max 500px) */
@media (max-width: 500px) {
  body {
    padding: 15px;
  }

  .topbar {
    gap: 10px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .projects-table th, 
  .projects-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .alert-success {
    font-size: 14px;
    padding: 8px 12px;
  }

  .desc-cell {
    max-width: 200px;
  }

  .projects-table img {
    width: 60px;
  }
}

/* 📋 Extra: onder 400px verandert tabel in 'cards' */
@media (max-width: 400px) {
  .projects-table {
    border: none;
  }

  .projects-table thead {
    display: none;
  }

  .projects-table tr {
    display: block;
    background: #1c2541;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
  }

  .projects-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
  }

  .projects-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #a78bfa;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

