/* === DIGITAL LAB REPORTS - UNIFIED CSS SYSTEM === */

/* --- CSS Variables (Design System) --- */
/* --- CSS Variables (Design System Pro Max) --- */
:root {
  /* Colors (HSL) */
  --primary-hue: 265;
  --secondary-hue: 215;
  
  --primary-accent: hsl(var(--primary-hue), 85%, 60%);    /* #8B5CF6 (Vivid Purple) */
  --primary-dark: hsl(var(--primary-hue), 85%, 45%);      /* Darker Purple for active states */
  --secondary-accent: hsl(var(--secondary-hue), 95%, 60%); /* #3B82F6 (Electric Blue) */
  
  --base-background: hsl(220, 30%, 97%); /* Cool Grey-White */
  
  /* Text */
  --primary-text: hsl(220, 40%, 20%);
  --secondary-text: hsl(220, 20%, 45%);
  --muted-text: hsl(220, 15%, 60%);
  
  /* System */
  --success-color: hsl(150, 80%, 40%);
  --danger-color: hsl(350, 80%, 55%);
  --warning-color: hsl(35, 90%, 55%);
  
  /* Glassmorphism Tokens */
  --glass-bg: hsla(0, 0%, 100%, 0.7);
  --glass-border: 1px solid hsla(0, 0%, 100%, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --glass-blur: blur(12px);
  
  /* Typography */
  --font-family-display: 'Outfit', sans-serif;
  --font-family-body: 'Instrument Sans', sans-serif;
  
  /* Spacing & Layout */
  --border-radius: 24px;       /* Increased for modern look */
  --border-radius-small: 12px;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Body Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--base-background);
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,0) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,0) 0, transparent 50%);
  color: var(--primary-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}

/* Animated Background Blobs (Optional - can be added via pseudo-elements or div) */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsla(var(--primary-hue), 85%, 75%, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  animation: float 20s infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, hsla(var(--secondary-hue), 85%, 75%, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: float 25s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(10deg); }
}

/* --- Layout & Container --- */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- Header (Hero Style) --- */
.main-header {
  padding: 6rem 2rem;
  text-align: center;
  background: transparent; /* Rely on body gradient */
  position: relative;
  z-index: 10;
}
.main-header h1 {
  font-family: var(--font-family-display);
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-text) 0%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  animation: fadeDown 0.8s ease-out;
}
.main-header p {
  font-size: 1.5rem;
  color: var(--secondary-text);
  font-weight: 500;
  animation: fadeUp 0.8s ease-out 0.2s backwards;
}

/* --- Header Card (Detail Pages) --- */
.header-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

.header-card h1 {
  font-family: var(--font-family-display);
  font-size: 2.5rem; /* Reduced from 5rem */
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.header-card p {
  font-size: 1.1rem;
  color: var(--secondary-text);
  max-width: 800px;
}

.header-card .header-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* --- Animations --- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Stagger List Animations */
.experiment-list-item,
.class-list-item,
.report-card,
.student-tag {
  animation: fadeUp 0.5s ease-out backwards;
}

.experiment-list-item:nth-child(1) { animation-delay: 0.1s; }
.experiment-list-item:nth-child(2) { animation-delay: 0.15s; }
.experiment-list-item:nth-child(3) { animation-delay: 0.2s; }
.experiment-list-item:nth-child(4) { animation-delay: 0.25s; }
/* Add more if needed or use JS for dynamic delay */

/* --- Cards --- */
/* --- Cards (Glassmorphism) --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 2rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Optional: Card Border Gradient via pseudo-element for extra pop */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -5px rgba(31, 38, 135, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.card h2 {
  font-family: var(--font-family-display);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
  display: flex;
  align-items: center;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  margin-bottom: 0;
}

.card h2 i {
  /* For icons in headings */
  margin-right: 1rem;
  font-size: 2rem;
}
/* --- class link --- */
.class-link,
.class-link:visited,
.class-link:hover,
.class-link:active {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}
/* --- Form Elements (Modern) --- */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius-small);
  background: white; /* Clean white for contrast */
  font-size: 1rem;
  font-family: var(--font-family-body);
  transition: var(--transition-base);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-accent);
  background: white;
  box-shadow: 0 0 0 4px hsla(var(--primary-hue), 85%, 60%, 0.15);
  transform: translateY(-1px);
}

/* Custom Select Dropdown Arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.2rem;
}

/* --- Buttons (Modern Pill & Glow) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 2rem; /* Adjusted vertical padding */
  border: none;
  border-radius: 50px; /* Pill shape */
  cursor: pointer;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn i {
  font-size: 1.1em;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px hsla(var(--primary-hue), 80%, 60%, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-accent) 20%, var(--primary-dark) 100%);
  box-shadow: 0 8px 25px hsla(var(--primary-hue), 80%, 60%, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--primary-text);
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border for white button */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn-secondary:hover {
  background: #f8f9fa;
  color: var(--primary-dark);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger-color);
  box-shadow: 0 4px 15px hsla(350, 80%, 60%, 0.4);
}
.btn-danger:hover {
  box-shadow: 0 8px 25px hsla(350, 80%, 60%, 0.6);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-color);
  box-shadow: 0 4px 15px hsla(150, 80%, 40%, 0.4);
}
.btn-success:hover {
  box-shadow: 0 8px 25px hsla(150, 80%, 40%, 0.6);
  transform: translateY(-2px);
}

/* "Glow" effect on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after {
  opacity: 1;
}

/* --- List Styles --- */
ul {
  list-style-type: none;
}
.experiment-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background-color: #fafaff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.experiment-list-item:hover {
  background-color: #f4f0ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.experiment-list-item a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  font-family: var(--font-family-display);
  flex-grow: 1;
}
.experiment-actions .btn-icon {
  color: #868e96;
}
.experiment-actions .btn-icon:hover {
  color: var(--danger-color);
  background-color: #fbe9e7;
}

.class-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background-color: #fafaff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.class-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #868e96;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}
.btn-icon:hover {
  color: var(--primary-accent);
  background-color: #e9e3f5;
}
.btn-icon.delete-class:hover {
  color: var(--danger-color);
  background-color: #fbe9e7;
}

.filter-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-tag {
  background-color: #f1f3f5;
  color: var(--secondary-text);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background-color: #e9ecef;
}

.filter-tag.active {
  background-color: var(--primary-accent);
  color: white;
  font-weight: 700;
}

/* --- Report Card --- */
.report-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  transition: all 0.3s ease;
}

/* Submitted report cards */
.report-card.submitted {
  border-left: 4px solid var(--success-color);
  background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.report-card.submitted:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

/* Unsubmitted report cards */
.report-card.unsubmitted {
  border-left: 4px solid var(--warning-color);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  position: relative;
}

.report-card.unsubmitted:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.2);
}

.report-card.unsubmitted .unsubmitted-message {
  padding: 1rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

.report-card.unsubmitted .unsubmitted-message p {
  margin: 0.5rem 0;
  color: var(--warning-color);
  font-weight: 500;
}

.report-card.unsubmitted .unsubmitted-message i {
  margin-right: 0.5rem;
}

.report-card.unsubmitted .start-report-btn {
  background: var(--warning-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.report-card.unsubmitted .start-report-btn:hover {
  background: #e68900;
  transform: translateY(-2px);
}

.report-card.unsubmitted .unsubmitted-status {
  background: rgba(255, 152, 0, 0.1);
  color: var(--warning-color);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-card h3 {
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}
.report-card p {
  margin-bottom: 0.5rem;
}
.report-card strong {
  color: var(--primary-text);
  font-weight: 700;
}

/* --- Responsive Grid (Dashboard - Vertical Stack) --- */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* Wide gap (64px) */
  padding: 1rem 0;
  margin-bottom: 4rem;
}

.dashboard-grid > .card {
  width: 100%;
  /* Removed fixed height constraints */
}

/* Center Content in Create Experiment Card */
#create-experiment-form {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Report Type Selector --- */
.report-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.report-type-selector input[type="radio"] {
  display: none;
}
.report-type-selector label {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.report-type-selector input[type="radio"]:checked + label {
  background-color: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
  font-weight: 700;
}

/* --- Modal Styles --- */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fefefe;
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}
.close-button {
  color: #aaa;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}
.close-button:hover {
  color: black;
}

.group-editor {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-top: 1.5rem;
  min-height: 300px;
}
.student-pool,
.groups-area {
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  background-color: var(--base-background);
}

/* --- Student Tag Styles (Wide Grid + Vertical Card) --- */
.student-tag-container {
  display: grid;
  /* 5-6 columns on desktop (approx 160px min width) */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Custom Scrollbar (Webkit: Chrome, Safari, Edge) */
.student-tag-container::-webkit-scrollbar {
  width: 6px;
}
.student-tag-container::-webkit-scrollbar-track {
  background: transparent;
}
.student-tag-container::-webkit-scrollbar-thumb {
  background-color: hsla(var(--primary-hue), 85%, 60%, 0.3);
  border-radius: 10px;
}
.student-tag-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-accent);
}

@media (max-width: 480px) {
  .student-tag-container {
    grid-template-columns: 1fr; /* 1 column on mobile */
    max-height: 400px; /* Smaller height on mobile */
  }
}

.student-tag {
  display: flex;
  flex-direction: column; /* Vertical layout */
  justify-content: center;
  align-items: center;
  text-align: center;
  
  background: white;
  padding: 1rem 0.5rem;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-base);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.student-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.05);
  border-color: var(--primary-accent);
}

.student-tag .student-info {
  font-weight: 700;
  margin-bottom: 0.75rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-tag .student-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.student-tag .edit-student {
  background: none;
  border: none;
  color: #868e96;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-tag .edit-student:hover {
  color: var(--primary-accent);
  background-color: #e9e3f5;
}

.student-tag .portfolio-btn,
.student-tag .delete-student {
  padding: 0.5rem;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-tag .portfolio-btn {
  background: var(--secondary-accent);
  color: white;
  border: none;
  cursor: pointer;
}

.student-tag .portfolio-btn:hover {
  background: #1c66d6;
}

.student-tag .delete-student {
  background: none;
  border: none;
  color: #868e96;
  cursor: pointer;
}

.student-tag .delete-student:hover {
  color: var(--danger-color);
  background-color: #fbe9e7;
}

/* --- Submission Status Grids (Overhaul) --- */

/* Base container reset */
#submission-status-list {
  margin-top: 1rem;
}

/* Layout for Individual Report Tags */
#submission-status-list.individual-report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start; /* Align tags to the start */
}

/* Layout for Group Report Cards */
#submission-status-list.group-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Individual Student Tag Style */
.status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  border-radius: var(--border-radius);
  text-align: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.status-card.submitted {
  background-color: hsla(150, 80%, 96%, 0.8);
  border: 2px solid var(--success-color);
  color: hsl(150, 90%, 25%);
  cursor: pointer;
  box-shadow: 0 4px 10px hsla(150, 50%, 50%, 0.1);
}
.status-card.submitted:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px hsla(150, 50%, 50%, 0.2);
}
.status-card.not-submitted {
  background-color: rgba(255,255,255,0.5);
  border: 2px dashed #cbd5e0;
  color: var(--muted-text);
}
.status-card .student-number {
  font-size: 0.8rem;
  font-weight: 500;
}
.status-card .student-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Group Report Card Style */
.group-status-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.group-status-card:hover {
  transform: translateY(-2px);
}

/* Group Card Header (Name + Status) */
.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.group-status-card h4 {
  color: var(--primary-accent);
  margin: 0;
  font-size: 1.2rem;
}
.group-submission-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}
.group-submission-status.submitted {
  background: hsla(150, 80%, 90%, 0.5);
  color: hsl(150, 100%, 30%);
  border: 1px solid hsla(150, 80%, 40%, 0.2);
}
.group-submission-status.pending {
  background: hsla(35, 90%, 90%, 0.5);
  color: hsl(35, 100%, 40%);
  border: 1px solid hsla(35, 90%, 50%, 0.2);
}

/* Group Card Member List */
.group-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-grow: 1;
  align-content: flex-start;
}

/* Group Member Tag (Highly specific selector to prevent style bleed) */
.group-status-card .group-members .member-tag {
  background: linear-gradient(
    135deg,
    var(--primary-accent),
    var(--secondary-accent)
  );
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Peer Feedback Page Styles --- */

/* Submissions Grid for Peer Feedback */
.submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Individual Submission Card */
.submission-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Submission Card Header */
.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.submission-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.type-icon {
  font-size: 1.2rem;
}

.type-text {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.submission-date {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Submission Card Content */
.submission-content {
  flex-grow: 1;
}

.submission-author {
  color: var(--primary-accent);
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.submission-preview {
  color: var(--secondary-text);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Submission Card Actions */
.submission-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Large Modal for Report Details */
.large-modal {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

/* Report Content in Modal */
.report-content {
  margin-bottom: 2rem;
}

.report-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-accent);
}

.report-section h4 {
  color: var(--primary-accent);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-section p {
  margin: 0;
  line-height: 1.6;
  color: var(--primary-text);
}

/* Peer Feedback Section */
.peer-feedback-section {
  border-top: 2px solid var(--border-color);
  padding-top: 1.5rem;
}

.peer-feedback-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.peer-feedback-section h4 {
  color: var(--primary-accent);
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Feedback List */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-item {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.feedback-author {
  font-weight: 600;
  color: var(--primary-accent);
}

.feedback-date {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-strengths,
.feedback-improvements {
  padding: 0.75rem;
  border-radius: var(--border-radius);
}

.feedback-strengths {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--success-color);
}

.feedback-improvements {
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid var(--primary-accent);
}

.feedback-strengths h5,
.feedback-improvements h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.feedback-strengths p,
.feedback-improvements p {
  margin: 0;
  line-height: 1.5;
}

.no-feedback {
  text-align: center;
  color: var(--secondary-text);
  font-style: italic;
  padding: 2rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  border: 1px dashed var(--border-color);
}

/* Peer Feedback Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-text);
}

.form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(var(--primary-accent-rgb), 0.1);
}

.form-group textarea::placeholder {
  color: var(--secondary-text);
  font-style: italic;
}

.form-group label input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Info Section for Peer Feedback */
.info-section {
  margin-bottom: 2rem;
}

.info-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.info-card h3 {
  color: var(--primary-accent);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-weight: 600;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

.info-item span:last-child {
  color: var(--primary-text);
  font-weight: 500;
}

/* Submissions Section */
.submissions-section {
  margin-bottom: 2rem;
}

.submissions-section .section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.submissions-section .section-header h2 {
  color: var(--primary-accent);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submissions-section .section-header p {
  color: var(--secondary-text);
  margin: 0;
}

/* Responsive Design for Peer Feedback */
@media (max-width: 768px) {
  .submissions-grid {
    grid-template-columns: 1fr;
  }
  
  .submission-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .large-modal {
    width: 95vw;
    max-height: 95vh;
  }
  
  .peer-feedback-section .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .submission-card {
    padding: 1rem;
  }
  
  .report-section {
    padding: 0.75rem;
  }
  
  .feedback-item {
    padding: 0.75rem;
  }
  
  .info-card {
    padding: 1rem;
  }
}

/* --- Helper & Utility Classes --- */
.text-center {
    text-align: center;
}
.hidden {
  display: none !important;
}
.empty-state {
  text-align: center;
  padding: 3rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
}
.empty-state-icon {
  font-size: 4rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}
.empty-state p {
  font-size: 1.2rem;
  color: var(--secondary-text);
}

/* --- Group Management Styles --- */
.group-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.group-modal.hidden {
  display: none;
}

.group-modal-content {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--card-shadow);
}

.group-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.group-workspace {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  min-height: 400px;
  max-height: 600px;
}

.student-pool {
  background: #f8f9ff;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.student-pool .students-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-content: flex-start;
  flex-grow: 1;
}

.student-pool h3 {
  margin-bottom: 1rem;
  color: var(--primary-accent);
  font-size: 1.2rem;
}

.groups-area {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  min-height: 300px;
  max-height: 550px;
  overflow-y: auto;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.group-box {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  min-height: 80px;
  max-height: 200px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.group-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.group-box h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.student-draggable {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  cursor: grab;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  white-space: nowrap;
  min-width: auto;
  text-align: center;
}

.student-draggable:hover {
  background: var(--primary-accent);
  color: white;
  transform: scale(1.02);
}

.student-draggable:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.group-box .student-draggable {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-text);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin: 0.2rem;
  font-size: 0.7rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  min-width: 40px;
  max-width: 80px;
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 24px;
}

.group-box .student-draggable:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.group-box .students-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  flex-grow: 1;
  align-content: flex-start;
}

/* Group display in experiment form */
.groups-display {
  background: #f8f9ff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 1rem;
}

.groups-display p {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-accent);
}

/* Grid layout for group status cards */
#submission-status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Status cards for groups in experiment details */
.group-status-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
  min-height: auto;
  width: 100%;
  overflow: hidden;
}

.group-status-card:hover {
  transform: translateY(-2px);
}

.group-status-card h4 {
  color: var(--primary-accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 0.5rem;
}

.group-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.member-tag {
  background: linear-gradient(
    135deg,
    var(--primary-accent),
    var(--secondary-accent)
  );
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: calc(50% - 0.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-submission-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.group-submission-status.submitted {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.group-submission-status.pending {
  background: rgba(255, 152, 0, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: #d32f2f;
}

/* --- Student Portfolio Styles --- */
.portfolio-summary {
  margin: 2rem 0;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.summary-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.summary-card:hover::before {
  opacity: 1;
}

.summary-card .card-icon {
  background: linear-gradient(
    135deg,
    var(--primary-accent),
    var(--secondary-accent)
  );
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 20px; /* Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.summary-card .card-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.summary-card .card-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0;
  line-height: 1.2;
}

.summary-card .card-content p {
  color: var(--secondary-text);
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
}

#recent-date {
  font-size: 1.8rem !important;
}

.portfolio-filters {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-text);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background: #f8f9ff;
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.filter-options {
  display: flex;
  gap: 0.5rem;
}

.filter-options select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
}

.portfolio-content {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.timeline-header h2 {
  color: var(--primary-accent);
  margin: 0;
  font-size: 1.5rem;
}

.results-count {
  background: var(--primary-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.portfolio-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.report-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-accent),
    var(--secondary-accent)
  );
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 17, 203, 0.15);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.report-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-date {
  color: var(--secondary-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.report-type {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}

.report-type.individual-report {
  background: rgba(123, 31, 162, 0.1);
  color: #7b1fa2;
  border: 1px solid rgba(123, 31, 162, 0.3);
}

.report-type.group-report {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
  border: 1px solid rgba(25, 118, 210, 0.3);
}

.report-number {
  background: var(--primary-accent);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-content {
  margin-bottom: 1.5rem;
}

.report-title {
  color: var(--primary-text);
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.report-goal {
  color: var(--secondary-text);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.report-preview {
  background: #f8f9ff;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--secondary-accent);
}

.preview-item {
  font-size: 0.9rem;
  line-height: 1.5;
}

.preview-item strong {
  color: var(--primary-accent);
}

.report-actions {
  display: flex;
  justify-content: flex-end;
}

.view-report-btn {
  background: linear-gradient(
    135deg,
    var(--primary-accent),
    var(--secondary-accent)
  );
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-report-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--secondary-text);
}

.loading-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-accent);
}

/* Modal styles for report details */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-accent);
  font-size: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-report-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-date {
  color: var(--secondary-text);
  margin-bottom: 0.5rem;
}

.modal-report-type {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: inline-block;
}

.modal-report-type.individual {
  background: rgba(123, 31, 162, 0.1);
  color: #7b1fa2;
  border: 1px solid rgba(123, 31, 162, 0.3);
}

.modal-report-type.group {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
  border: 1px solid rgba(25, 118, 210, 0.3);
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h4 {
  color: var(--primary-accent);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section p {
  line-height: 1.7;
  color: var(--primary-text);
  margin: 0;
}

.feedback-section {
  background: #f8f9ff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-accent);
}

.feedback-content {
  line-height: 1.7;
}

.feedback-content ul {
  padding-left: 1.5rem;
}

.feedback-content li {
  margin-bottom: 0.5rem;
}

/* Student tag improvements for portfolio button */
.student-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.student-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.student-info {
  font-weight: 500;
  color: var(--primary-text);
}

.student-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.portfolio-btn {
  background: linear-gradient(
    135deg,
    var(--secondary-accent),
    var(--primary-accent)
  );
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

.delete-student {
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.delete-student:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

/* Responsive design for portfolio */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-options {
    justify-content: stretch;
  }

  .filter-options select {
    flex: 1;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .report-header {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .main-header h1 {
    font-size: 2.5rem; /* Smaller font size for mobile headers */
  }
  .card h2 {
    font-size: 1.8rem; /* Adjust card titles for mobile */
  }
  .main-header {
    padding: 2.5rem 1rem; /* Reduce header padding on mobile */
  }
  .card {
    padding: 1.5rem; /* Reduce card padding on mobile */
  }
}

/* --- Report Details Section UI --- */
.student-report-card,
.feedback-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--card-shadow);
}

.student-report-card h4,
.feedback-card h4 {
  font-size: 1.5rem;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-section {
  margin-bottom: 1.5rem;
}

.report-section strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-text);
  font-size: 1.1rem;
}

.report-section p {
  line-height: 1.8;
  color: var(--secondary-text);
}

.feedback-card {
  background-color: #f8f9ff;
}

.feedback-card.pending {
  text-align: center;
}

.loading-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--secondary-text);
  padding: 1rem;
}

/* Editable Feedback Styles */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.feedback-header h4 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feedback-editor {
  margin-top: 1rem;
}

.feedback-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--card-background);
  color: var(--primary-text);
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(161, 196, 253, 0.3);
}

.feedback-editor-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

/* --- Footer --- */
.main-footer-bottom {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
  border-top: 1px solid var(--light-border);
}

.main-footer-bottom a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.main-footer-bottom a:hover {
  text-decoration: underline;
  color: var(--secondary-accent);
}

/* --- Progress Indicators (for multi-step forms) --- */
.progress-container {
  margin: 2rem 0;
}

.progress-bar {
  background: var(--light-border);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --- Peer Feedback Card Styles --- */
.peer-feedback-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-top: 1.5rem;
}

.peer-feedback-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.peer-feedback-card h4 {
  font-size: 1.3rem;
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.peer-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.peer-feedback-item {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(106, 17, 203, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.peer-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(106, 17, 203, 0.2);
}

.reviewer-name {
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.feedback-date {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.peer-feedback-content {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--light-border);
}

.peer-feedback-content .feedback-section {
  margin-bottom: 0.75rem;
}

.peer-feedback-content .feedback-section:last-child {
  margin-bottom: 0;
}

.peer-feedback-content .feedback-section strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.peer-feedback-content .feedback-section p {
  color: var(--secondary-text);
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.no-peer-feedback {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted-text);
  font-style: italic;
  background: #f8f9ff;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

.no-peer-feedback i {
  margin-right: 0.5rem;
  opacity: 0.7;
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.step-indicator.active {
  color: var(--primary-accent);
  font-weight: 600;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.step-indicator.active .step-number {
  background: var(--primary-accent);
  color: white;
}

.step-indicator.completed .step-number {
  background: var(--success-color);
  color: white;
}

/* --- Enhanced Hover States --- */
.card:hover,
.summary-card:hover,
.report-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

/* --- Focus States for Accessibility --- */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

/* --- Attachment Functionality Styles --- */
.attachment-section {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background: var(--base-background);
  transition: var(--transition-base);
}

.attachment-section:hover {
  border-color: var(--primary-accent);
  background: #fdfcff;
}

.attachment-section h4 {
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.attachment-help {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--muted-text);
  text-align: center;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.attachment-item {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 1rem;
  background: white;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.attachment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.attachment-item.uploading {
  opacity: 0.7;
  pointer-events: none;
}

.attachment-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-accent);
}

.attachment-icon.image { color: #ff6b6b; }
.attachment-icon.video { color: #4ecdc4; }
.attachment-icon.pdf { color: #fa5252; }
.attachment-icon.word { color: #228be6; }

.attachment-info {
  margin-bottom: 0.5rem;
}

.attachment-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-text);
  word-break: break-word;
  margin-bottom: 0.25rem;
}

.attachment-size {
  font-size: 0.7rem;
  color: var(--muted-text);
}

.attachment-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.attachment-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  background: var(--secondary-accent);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.attachment-btn:hover {
  background: var(--primary-accent);
}

.attachment-btn.delete {
  background: var(--danger-color);
}

.attachment-btn.delete:hover {
  background: #d63031;
}

.upload-progress {
  width: 100%;
  height: 4px;
  background: var(--light-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.attachment-error {
  color: var(--danger-color);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--border-radius-small);
}

/* --- Mobile Responsive for Attachments --- */
@media (max-width: 768px) {
  .attachments-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .attachment-item {
    padding: 0.75rem;
  }
  
  .attachment-icon {
    font-size: 1.5rem;
  }
  
  .attachment-name {
    font-size: 0.75rem;
  }
  
  .attachment-size {
    font-size: 0.65rem;
  }
}

/* --- Loading States --- */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Attachment Gallery Modal --- */
.attachment-gallery {
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

.gallery-header h3 {
  margin: 0;
  color: var(--primary-accent);
}

.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.attachment-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.attachment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.attachment-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}

.attachment-filename {
  font-weight: bold;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  word-break: break-word;
}

.attachment-type {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.attachment-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-accent);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.attachment-count {
  background: var(--primary-accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.no-attachments {
  text-align: center;
  color: #666;
  padding: 2rem;
  font-style: italic;
}

.attachment-loading {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Peer Feedback Activities Styles */
.peer-feedback-section {
  margin: 2rem 0;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--secondary-text);
  font-size: 1rem;
}

.peer-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.peer-activity-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.peer-activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.activity-subject {
  background: var(--primary-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.activity-date {
  color: var(--secondary-text);
  font-size: 0.85rem;
}

.activity-title {
  color: var(--primary-text);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.activity-goal {
  color: var(--secondary-text);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.activity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 0.85rem;
}

.activity-type i {
  color: var(--primary-accent);
}

.join-activity-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- New Portfolio Layout Styles --- */

/* Reports Sections */
.reports-section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f3f4;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h3 i {
  font-size: 1.25rem;
}

.section-header p {
  color: var(--secondary-text);
  margin: 0;
  font-size: 1rem;
}

/* Unsubmitted Reports Grid */
.unsubmitted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.unsubmitted-card {
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
  border: 1px solid #ffd54f;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.unsubmitted-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--warning-color), #ffd54f);
}

.unsubmitted-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
  border-color: var(--warning-color);
}

.unsubmitted-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.unsubmitted-card .report-type-icon {
  font-size: 1.25rem;
}

.unsubmitted-card .subject {
  background: var(--warning-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.unsubmitted-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.unsubmitted-card .card-actions {
  display: flex;
  justify-content: center;
}

.unsubmitted-card .start-btn {
  background: var(--warning-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  width: 100%;
  justify-content: center;
}

.unsubmitted-card .start-btn:hover {
  background: #f57c00;
  transform: translateY(-1px);
}

/* Submitted Reports List */
.submitted-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.submitted-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}

.submitted-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--success-color);
  border-radius: 4px 0 0 4px;
}

.submitted-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--success-color);
}

.submitted-item .item-left {
  flex: 1;
}

.submitted-item .item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.submitted-item .report-type-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.submitted-item .report-type-badge.individual {
  background: #f3e5f5;
  color: #7b1fa2;
}

.submitted-item .report-type-badge.group {
  background: #e3f2fd;
  color: #1976d2;
}

.submitted-item .submit-date {
  color: var(--secondary-text);
  font-size: 0.85rem;
  font-weight: 500;
}

.submitted-item .item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.submitted-item .item-subject {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin: 0;
}

.submitted-item .item-actions {
  margin-left: 1rem;
}

.submitted-item .view-btn {
  background: var(--primary-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.submitted-item .view-btn:hover {
  background: var(--secondary-accent);
  transform: translateY(-1px);
}

/* Utility Classes */
.text-warning {
  color: var(--warning-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

/* Subject Filters Styling */
.subject-filters {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.subject-filters h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subject-filters h3 i {
  color: var(--secondary-accent);
}

.filter-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  background-color: #f1f3f5;
  color: var(--secondary-text);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.filter-tag:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.filter-tag.active {
  background-color: var(--primary-accent);
  color: white;
  font-weight: 600;
  border-color: var(--primary-accent);
  box-shadow: 0 2px 8px rgba(106, 17, 203, 0.3);
}

/* Portfolio responsive styles */
@media (max-width: 768px) {
  .unsubmitted-grid {
    grid-template-columns: 1fr;
  }
  
  .submitted-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .submitted-item .item-actions {
    margin-left: 0;
  }
  
  .section-header h3 {
    font-size: 1.25rem;
  }
  
  .subject-filters h3 {
    font-size: 1.1rem;
  }
  
  .filter-tags-container {
    gap: 0.25rem;
  }
  
  .filter-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
