/* =========================================
   RESET
========================================= */

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

:root{

  --green:#2E7D5B;
  --blue:#4F7CFF;
  --orange:#F59E0B;
  --red:#EF4444;

  --bg:#F5F8F7;
  --card:#FFFFFF;

  --text:#1F2A2E;
  --muted:#6B7280;

  --border:#E5E7EB;

}

body{

  font-family:'Inter',sans-serif;

  background:var(--bg);

  color:var(--text);

}

/* =========================================
   PAGE
========================================= */

.assignments-page{

  max-width:1400px;

  margin:auto;

  padding:40px;

}

/* =========================================
   HEADER
========================================= */

.assignments-header{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:40px;

}

.eyebrow{

  color:var(--green);

  font-size:13px;

  font-weight:800;

  text-transform:uppercase;

  letter-spacing:1px;

  margin-bottom:8px;

}

.assignments-header h1{

  font-size:52px;

  margin-bottom:8px;

}

.assignments-header span{

  color:var(--muted);

}

.back-btn{

  text-decoration:none;

  background:var(--green);

  color:#fff;

  padding:14px 22px;

  border-radius:14px;

  font-weight:700;

}

/* =========================================
   STATS
========================================= */

.assignment-stats{

  display:grid;

  grid-template-columns:repeat(4,1fr);

  gap:20px;

  margin-bottom:40px;

}

.stat-card{

  background:#fff;

  padding:28px;

  border-radius:24px;

  text-align:center;

  border:1px solid var(--border);

  box-shadow:
  0 10px 30px rgba(0,0,0,.05);

}

.stat-card h2{

  font-size:42px;

  color:var(--green);

  margin-bottom:10px;

}

.stat-card p{

  color:var(--muted);

}

/* =========================================
   SEARCH + FILTER
========================================= */

.filter-section{

  display:flex;

  justify-content:space-between;

  align-items:center;

  gap:20px;

  margin-bottom:40px;

}

.filter-section input{

  flex:1;

  height:58px;

  border:none;

  border-radius:16px;

  background:#fff;

  border:1px solid var(--border);

  padding:0 20px;

  font-size:15px;

}

.filter-buttons{

  display:flex;

  gap:10px;

}

.filter-btn{

  border:none;

  background:#fff;

  border:1px solid var(--border);

  padding:12px 18px;

  border-radius:12px;

  cursor:pointer;

  font-weight:700;

}

.filter-btn.active{

  background:var(--green);

  color:#fff;

}

/* =========================================
   GRID
========================================= */

.assignments-grid{

  display:grid;

  grid-template-columns:
  repeat(2,1fr);

  gap:25px;

}

/* =========================================
   CARD
========================================= */

.assignment-card{

  background:#fff;

  border-radius:28px;

  padding:25px;

  border:1px solid var(--border);

  box-shadow:
  0 15px 40px rgba(0,0,0,.05);

  transition:.3s;

}

.assignment-card:hover{

  transform:
  translateY(-6px);

}

.assignment-top{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:20px;

}

.assignment-top small{

  color:var(--muted);

}

.assignment-card h3{

  font-size:28px;

  margin-bottom:14px;

}

.assignment-card p{

  color:var(--muted);

  line-height:1.8;

  margin-bottom:20px;

}

/* =========================================
   BADGES
========================================= */

.badge{

  padding:8px 14px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;

}

.pending{

  background:#FFF3DD;

  color:var(--orange);

}

.submitted{

  background:#EAF0FF;

  color:var(--blue);

}

.reviewed{

  background:#EAF6EF;

  color:var(--green);

}

/* =========================================
   META
========================================= */

.assignment-meta{

  display:flex;

  gap:12px;

  margin-bottom:20px;

  flex-wrap:wrap;

}

.assignment-meta span{

  background:#F5F7F9;

  padding:8px 14px;

  border-radius:12px;

  font-size:13px;

  font-weight:600;

}

/* =========================================
   UPLOAD
========================================= */

.upload-box{

  display:flex;

  align-items:center;

  justify-content:center;

  height:70px;

  border:2px dashed #C9D2DA;

  border-radius:16px;

  cursor:pointer;

  font-weight:700;

  color:var(--green);

}

.upload-box input{

  display:none;

}

/* =========================================
   BUTTONS
========================================= */

.view-btn{

  width:100%;

  height:52px;

  border:none;

  border-radius:14px;

  background:var(--green);

  color:#fff;

  font-weight:700;

  cursor:pointer;

}

/* =========================================
   FEEDBACK
========================================= */

.feedback-box{

  background:#F7FAF8;

  border-left:4px solid var(--green);

  padding:16px;

  border-radius:14px;

  margin-bottom:20px;

  line-height:1.7;

}

.feedback-box strong{

  display:block;

  margin-bottom:8px;

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

  .assignment-stats{

    grid-template-columns:
    repeat(2,1fr);

  }

  .assignments-grid{

    grid-template-columns:1fr;

  }

}

@media(max-width:768px){

  .assignments-page{

    padding:20px;

  }

  .assignments-header{

    flex-direction:column;

    align-items:flex-start;

    gap:20px;

  }

  .assignments-header h1{

    font-size:40px;

  }

  .filter-section{

    flex-direction:column;

  }

  .assignment-stats{

    grid-template-columns:1fr;

  }

  .filter-buttons{

    width:100%;

    overflow:auto;

  }

}

.selected-assignment{
  border:2px solid #2E7D5B;
}

.assignment-card{
  cursor:pointer;
}