*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: 'Roboto', sans-serif;
}

h1{
    background-image: linear-gradient(to right, #b91c1c, 80% , #ef4444);
    background-clip: text;
    color: transparent; 
    font-size: 1.5rem;   
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ddd;
    background-color: white;
}

header button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
}

nav{
    width: 250px;
    min-width: 250px;
    height: 100%;
    min-height: 100vh;
    border-right: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    background-color: white;
}

.listItem {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #4b5563;
    padding: 0.9rem 1.5rem;
    margin: 4px 12px;
    width: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
a{
    text-decoration: none;
}

.listItem:hover {
    background-color: #fef2f2;
    color: #dc2626;
    transform: none;
}

.listItem.active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

main{
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.searchHeader {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 350px;
    transition: all 0.2s ease;
}

.searchHeader:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.searchHeader input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 0.95rem;
    color: #334155;
    font-weight: normal;
}

.voortgang-main{
   width: 100%;
   background-color: #f8fafc; /* Standard background */
   padding: 2rem;
   overflow-y: auto;
}

.container {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.container h2 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.container p {
    color: #6b7280;
}

.projectenlijst {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #f1f5f9; /* Subtle border */
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.project .info h3 {
  margin: 0;
  font-weight: 700;
  color: #1e293b; /* Dark text */
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.project .info p {
  margin: 4px 0;
  color: #4b5563;
  font-size: 14px;
}

.project .deadline {
  font-size: 13px;
  color: #ef4444; /* Red for deadline visibility */
  font-weight: 500;
  margin-top: 8px !important;
}

.status {
  text-align: right;
  min-width: 150px;
}

.label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-voltooid { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.label-bezig { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; } /* Red for active */
.label-bijna { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

.progressbar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626); /* Red gradient */
  border-radius: 999px;
}

.samenvatting {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.samenvatting .box {
  flex: 1;
  min-width: 200px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}

.samenvatting .box:hover {
    transform: translateY(-2px);
}

.samenvatting .box:nth-child(1) { border-bottom-color: #059669; }
.samenvatting .box:nth-child(2) { border-bottom-color: #dc2626; } /* Red */
.samenvatting .box:nth-child(3) { border-bottom-color: #94a3b8; }

.samenvatting .box h4 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}

.samenvatting .box p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    
    header { padding: 1rem; }
    .searchHeader { display: none; }
    
    nav {
        position: absolute;
        left: -100%;
        top: 70px;
        width: 100%;
        z-index: 1000;
        transition: 0.3s ease;
        height: calc(100vh - 70px);
        border-right: none;
    }
    nav.nav-active { left: 0; }
    
    .voortgang-main { padding: 1rem; }
    
    .project {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .status {
        width: 100%;
        text-align: left;
    }
    
    .progressbar { width: 100%; }

    .samenvatting {
        flex-direction: column;
    }
}