* {
  box-sizing: border-box;
}
/* Add this to style.css */
/* Add this to style.css */

.society-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Makes the image round */
  object-fit: cover; /* Ensures image doesn't stretch */
  margin-bottom: 1rem;
  border: 2px solid #4b89dc; /* Optional: Adds a blue border */
  align-self: center; /* Centers the image in the flex container */
}


/* Better Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 1rem;
}

.calendar-grid .day {
  aspect-ratio: 1/1; /* Makes cells perfect squares */
  background-color: #2a2a2a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.calendar-grid .day:hover {
  background-color: #333;
}

.calendar-grid .day.header {
  background-color: transparent;
  font-weight: bold;
  color: #4b89dc;
  aspect-ratio: auto;
  padding-bottom: 0.5rem;
}

.calendar-grid .today {
  border: 2px solid #4b89dc;
  background-color: rgba(75, 137, 220, 0.1);
}

.calendar-grid .day.has-event {
  background-color: rgba(255, 193, 7, 0.1);
}

.day-number {
  font-size: 1.1rem;
  font-weight: 500;
}

/* The dot indicator */
.calendar-grid .event-dot {
  width: 6px;
  height: 6px;
  background-color: #ffc107;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.6);
}
/* Societies Page Styles */
.societies-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.society-card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.society-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: #4b89dc;
}

.society-card h3 {
  color: #4b89dc;
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.society-type {
  color: #ffc107;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.society-card p {
  color: #b0b0b0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.society-link-btn {
  background-color: #2a2a2a;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem;
  text-align: center;
  border-radius: 5px;
  transition: background 0.3s;
  font-weight: 500;
}

.society-link-btn:hover {
  background-color: #4b89dc;
}
/* --- Vertical, Modern, Dark UI Form --- */

/* 1. The Container Box (Compact & Spaced from Sides) */
.feedback-section {
  background-color: #0f1115; /* Deep dark background */
  border: 1px solid #2a2a2a;
  border-radius: 16px; /* Modern rounded corners */
  padding: 2.5rem; /* Spacious padding inside */

  /* WIDTH CONTROLS */
  max-width: 500px; /* Maximum width on desktop */
  width: 90%; /* On smaller screens, take 90% width (leaves space on sides) */
  margin: 3rem auto; /* Centers the box vertically and horizontally */

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 2. Heading Style */
.feedback-title {
  text-align: center;
  margin-bottom: 0.5rem; /* Reduced bottom margin slightly */
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

/* 3. Form Layout (Vertical Stack) */
.custom-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Space between Name, Email, Message */
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Space between Label and Input */
  text-align: left;
}

/* 4. Labels */
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-left: 4px;
}

/* 5. Inputs & Textarea (The Modern Dark Look) */
.custom-feedback-form input,
.custom-feedback-form textarea {
  width: 100%;
  background-color: #1a1d24; /* Dark blue-grey input background */
  border: 1px solid #333;
  color: #b0b0b0;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

/* Focus Effect (Purple Glow) */
.custom-feedback-form input:focus,
.custom-feedback-form textarea:focus {
  border-color: #8a2be2;
  background-color: #20242c;
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

/* Textarea Resize Control */
.custom-feedback-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
}

/* 6. Gradient Button */
.submit-feedback-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1rem;
  background: linear-gradient(90deg, #9f55ff 0%, #4b89dc 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(159, 85, 255, 0.4);
}
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navbar Base */
.navbar {
  background-color: #1e1e1e;
  /* padding: 1rem 2rem; */
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  cursor: pointer;
  padding-left: 2rem;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding-right: 0.95rem;
}

.nav-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* Hamburger Icon */
.menu-icon {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Hide checkbox */
.menu-toggle {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 1rem 2rem;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }
}

/* Common Section Styles */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

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

.card {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 4rem 0;
  margin-top: 2rem;
  position: relative;
}
.welcome-content {
  flex: 1;
  min-width: 300px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    text-align: center;
  }
  .welcome-content {
    order: 2;
    padding-right: 0;
  }
  .cube-container {
    order: 1;
    margin-top: 0;
    padding: 0;
    justify-content: left;
  }
}

.welcome-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.welcome-content p {
  font-size: 1.2rem;
  color: #a0a0a0;
}

/* 3D Cube */
/* 3D Cube Container */
.cube-container {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  margin-top: 2rem;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1; /* Maintains square shape */
}

/* Cube Wrapper */
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 15s infinite linear;
}

/* Animation */
@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* Cube Faces */
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.8);
  border: 2px solid #555;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: #fff;
  box-sizing: border-box;
}

/* Positioning Faces - fixed depth of 125px */
.face.front {
  transform: rotateY(0deg) translateZ(125px);
}
.face.back {
  transform: rotateY(180deg) translateZ(125px);
}
.face.right {
  transform: rotateY(90deg) translateZ(125px);
}
.face.left {
  transform: rotateY(-90deg) translateZ(125px);
}
.face.top {
  transform: rotateX(90deg) translateZ(125px);
}
.face.bottom {
  transform: rotateX(-90deg) translateZ(125px);
}

/* Face Icons - shared styles */
.face::before {
  content: "";
  position: absolute;
  width: 25%;
  height: 25%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10%;
}

/* Individual Face Icon Colors */
.face.front::before {
  background-color: #4b89dc;
}
.face.back::before {
  background-color: #d63384;
}
.face.right::before {
  background-color: #ffc107;
}
.face.left::before {
  background-color: #0d6efd;
}
.face.top::before {
  background-color: #198754;
}
.face.bottom::before {
  background-color: #fd7e14;
}

/* 📱 Mobile Support - Adjust cube size and depth */
@media (max-width: 500px) {
  .cube-container {
    max-width: 180px;
  }

  .face.front {
    transform: rotateY(0deg) translateZ(90px);
  }
  .face.back {
    transform: rotateY(180deg) translateZ(90px);
  }
  .face.right {
    transform: rotateY(90deg) translateZ(90px);
  }
  .face.left {
    transform: rotateY(-90deg) translateZ(90px);
  }
  .face.top {
    transform: rotateX(90deg) translateZ(90px);
  }
  .face.bottom {
    transform: rotateX(-90deg) translateZ(90px);
  }
}

/* Branch & Year Cards */
.branches-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .branches-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .branches-container {
    grid-template-columns: 1fr;
  }
}
.years-container,
.semesters-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.subject-boxes-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.notes-pyq-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.branch-card,
.year-card,
.semester-card,
.coding-difficulty-card {
  background-color: #1e1e1e;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #333;
}

.coding-difficulty-card {
  min-width: 250px;
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
}

.coding-difficulty-card .front,
.coding-difficulty-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.coding-difficulty-card .front {
  background-color: #1e1e1e;
  color: #fff;
  transform: rotateY(0deg);
}

.coding-difficulty-card .back {
  background-color: #333;
  color: #fff;
  transform: rotateY(180deg);
  padding: 1rem;
  box-sizing: border-box;
  font-size: 1rem;
  text-align: center;
}
.coding-difficulty-card.flipped .front {
  transform: rotateY(180deg);
}
.coding-difficulty-card.flipped .back {
  transform: rotateY(0deg);
}

.easy-box .front {
  background-color: #4b89dc;
}
.medium-box .front {
  background-color: #ffc107;
}
.hard-box .front {
  background-color: #d63384;
}

.branch-card:hover,
.year-card:hover,
.semester-card:hover,
.coding-difficulty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.branch-card i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.branch-card span,
.year-card span,
.semester-card span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Branch card specific colors */
.branch-card[data-branch="cse-ai"] i {
  color: #4b89dc;
}
.branch-card[data-branch="cse"] i {
  color: #d63384;
}
.branch-card[data-branch="ece-ai"] i {
  color: #198754;
}
.branch-card[data-branch="ece"] i {
  color: #ffc107;
}
.branch-card[data-branch="it"] i {
  color: #0dcaf0;
}
.branch-card[data-branch="aiml"] i {
  color: #6f42c1;
}
.branch-card[data-branch="mae"] i {
  color: #ff5722;
}
.branch-card[data-branch="dmam"] i {
  color: #4caf50;
}
.branch-card[data-branch="mac"] i {
  color: #f44336;
}

/* Performance Section */
.performance-section {
  margin-top: 3rem;
}

.table-container {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  color: #a0a0a0;
  font-weight: 500;
}

td input {
  background: transparent;
  border: none;
  color: #e0e0e0;
  width: 100%;
  padding: 5px;
  font-size: 1rem;
}
#semester-selector-container {
  margin-bottom: 1rem;
}
#semester-select {
  width: 100%;
  padding: 0.5rem;
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #e0e0e0;
  border-radius: 5px;
}

.calculate-btn,
.add-subject-btn {
  width: 100%;
  background-color: #4b89dc;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}
.calculate-btn:hover,
.add-subject-btn:hover {
  background-color: #386ba1;
}
.remove-subject-btn {
  background-color: #d63384;
  color: #fff;
  border: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.remove-subject-btn:hover {
  background-color: #a12665;
}

#cgpa-result {
  margin-top: 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #4b89dc;
}

/* Games and Quick Notes Section */
.bottom-sections {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.games-section,
.quick-notes-section {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  min-width: 300px;
  border: 1px solid #333;
}

.games-container {
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
}
.games-container .game-card:nth-child(-n + 3) {
  flex: 1;
  min-width: 150px;
}
.games-container .game-card:nth-child(n + 4) {
  flex: 1;
  min-width: 150px;
}

.game-card {
  text-align: center;
  cursor: pointer;
}

.game-card i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #4b89dc;
}

.quick-notes-section textarea {
  width: 100%;
  height: 150px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 5px;
  resize: vertical;
  margin-bottom: 1rem;
}

.notes-buttons {
  display: flex;
  gap: 1rem;
}

#save-note-btn,
#save-pdf-btn {
  flex: 1;
  background-color: #4b89dc;
  color: #fff;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#save-note-btn:hover,
#save-pdf-btn:hover {
  background-color: #386ba1;
}

.saved-note {
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 10px;
  word-wrap: break-word;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-date {
  font-size: 0.8rem;
  color: #a0a0a0;
  margin-top: 5px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #1e1e1e;
  margin-top: 2rem;
  border-top: 1px solid #333;
}

.social-links a {
  color: #e0e0e0;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #4b89dc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .remove-subject-btn {
    padding-right: 2rem;
  }
  .welcome-section {
    flex-direction: column;
    text-align: center;
  }
  .cube-container {
    order: -1;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Game Specific Styles */
.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 250px;
  height: 250px;
  gap: 5px;
  background-color: #333;
  padding: 10px;
  border-radius: 10px;
}
.game-cell {
  background-color: #1e1e1e;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.game-cell:hover {
  background-color: #2a2a2a;
}
.game-message {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
}
.game-back-btn,
.game-reset-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4b89dc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.game-back-btn:hover,
.game-reset-btn:hover {
  background-color: #386ba1;
}

/* Memory Game Styles */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-template-rows: repeat(4, 100px);
  gap: 10px;
}
.memory-card {
  width: 100px;
  height: 100px;
  background-color: #d63384;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  position: relative;
}
.memory-card.flipped {
  transform: rotateY(180deg);
}
.memory-card .back,
.memory-card .front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.memory-card .back {
  background-color: #d63384;
  color: #fff;
  font-size: 3rem;
}
.memory-card .front {
  transform: rotateY(180deg);
  font-size: 3rem;
  background-color: #1e1e1e;
}
/* Puzzle Game Styles */
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 300px;
  height: 300px;
  gap: 5px;
  background-color: #333;
  padding: 10px;
  border-radius: 10px;
}
.puzzle-cell {
  background-color: #4b89dc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.puzzle-cell.empty {
  background: none;
  cursor: default;
}

/* Notes Viewer */
.notes-viewer-iframe {
  width: 100%;
  height: 700px;
  border: 1px solid #333;
  border-radius: 10px;
}

/* Pong Game Styles */
#pong-canvas {
  background-color: #000;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  display: block;
}
/* Smart search bar */
#search-container {
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
}
#search-bar {
  width: 100%;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: #e0e0e0;
  font-size: 1.1rem;
  box-sizing: border-box;
}

/* Mini Coding Games */
.coding-editor-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.coding-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.coding-difficulty-card {
  min-width: 250px;
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
  flex: 1;
  min-height: 100px;
  transition: transform 0.6s;
}

.coding-difficulty-card .front,
.coding-difficulty-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.coding-difficulty-card .front {
  background-color: #1e1e1e;
  color: #fff;
  transform: rotateY(0deg);
}

.coding-difficulty-card .back {
  background-color: #333;
  color: #fff;
  transform: rotateY(180deg);
  padding: 1rem;
  box-sizing: border-box;
  font-size: 1rem;
  text-align: center;
}
.coding-difficulty-card.flipped .front {
  transform: rotateY(180deg);
}
.coding-difficulty-card.flipped .back {
  transform: rotateY(0deg);
}

.easy-box .front {
  background-color: #4b89dc;
}
.medium-box .front {
  background-color: #ffc107;
}
.hard-box .front {
  background-color: #d63384;
}

#code-editor {
  width: 100%;
  height: 300px;
  background-color: #2a2a2a;
  color: #fff;
  padding: 1rem;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  resize: vertical;
}
.question-list-container {
  margin-top: 1rem;
}
.question-list li {
  cursor: pointer;
  padding: 0.5rem;
  border-bottom: 1px solid #333;
  transition: background-color 0.2s ease;
}
.question-list li:hover {
  background-color: #2a2a2a;
}
.subject-box {
  background-color: #2a2a2a;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.option-button {
  background-color: #4b89dc;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.option-button:hover {
  background-color: #386ba1;
}
.notes-and-pyq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.notes-and-pyq-container .card {
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
}
.notes-and-pyq-container .card a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 1rem;
  transition: background-color 0.3s;
}
.notes-and-pyq-container .card:hover {
  background-color: #333;
}
.unit-list {
  margin-top: 2rem;
  text-align: center;
}
.unit-list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.unit-list li {
  cursor: pointer;
  padding: 1rem 2rem;
  background-color: #2a2a2a;
  border-radius: 5px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 300px;
}
.unit-list li:hover {
  background-color: #333;
}

/* Feedback Form */
#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#feedback-form input,
#feedback-form textarea {
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Event Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
  word-break: keep-all;
}

.calendar-grid .day {
  padding: 1rem;
  background-color: #1e1e1e;
  border-radius: 5px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-grid .header {
  font-weight: bold;
  color: #4b89dc;
  white-space: nowrap;
}

.calendar-grid .today {
  background-color: #4b89dc;
}

.calendar-grid .event-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: #ffc107;
  border-radius: 50%;
}

.event-name {
  font-size: 0.7rem;
  margin-top: 5px;
  color: #ffc107;
}

/* Container styling */
.calendar-container {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Footer layout */
.calendar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.calendar-footer label {
  font-weight: bold;
  color: #fff;
  margin-right: 0.5rem;
}

.calendar-footer input[type="date"],
.calendar-footer button {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
}

/* 📱 MOBILE STYLING */
@media (max-width: 600px) {
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
  }

  .calendar-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-footer input[type="date"],
  .calendar-footer button {
    width: 100%;
  }

  .calendar-footer label {
    margin-bottom: 0.25rem;
  }

  .calendar-grid .header,
  .calendar-grid .day {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
}

/* CGPA Comparison */
#gpa-comparison-chart {
  max-height: 400px;
}
#gpa-compare-inputs {
  display: flex;
  margin-top: 1rem;
}
#gpa-compare-inputs input {
  flex: 1;
  padding: 0.5rem;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 5px;
  color: #e0e0e0;
  margin-left: 0.5rem;
}
#gpa-compare-inputs button {
  /*   padding: 0.5rem 1rem; */
  background-color: #4b89dc;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 0.75rem;
}

/* About Us Profiles */
.profiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.profile-card {
  text-align: center;
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
}
.profile-card h3 {
  color: #4b89dc;
  font-size: 1.5rem;
}
.profile-card .social-links {
  margin-top: 1rem;
}

.feedback-list-container {
  margin-top: 2rem;
}
.feedback-item {
  background-color: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 10px;
}
.feedback-item h4 {
  margin: 0 0 5px 0;
  color: #4b89dc;
}
.feedback-item p {
  margin: 0;
}

/* Logo + Menu grouped */
.logo-menu {
  display: flex;
  align-items: center;
  gap: 2rem; /* space between logo and hamburger */
}

/* Keep navbar content aligned */
.navbar {
  justify-content: space-between; /* keeps links on right */
}
.menu-toggle:checked ~ .nav-links {
  display: flex;
}
@media (max-width: 760px) {
  .logo {
    padding-left: 8rem;
  }
  .menu-icon {
    padding-right: 8rem;
  }
}

/* ================= Pomodoro Timer Styles ================= */

.pomodoro-section {
  padding: 3rem 0;
  text-align: center;
}

.pomodoro-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.pomodoro-section p {
  font-size: 1.1rem;
  color: #a0a0a0;
  margin-bottom: 2rem;
}

/* Timer card */
.pomodoro-card {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: auto;
}

/* Session selector buttons */
.session-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.session-selector-button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.session-selector-button:hover {
  background-color: #333;
}

.session-selector-button.active {
  background-color: #4b89dc;
  color: #fff;
}

/* Timer display */
.timer-display {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Control buttons */
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.control-button {
  padding: 0.8rem 1.5rem;
  background-color: #4b89dc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.control-button:hover {
  background-color: #386ba1;
}

.control-button.hidden {
  display: none;
}

/* Pomodoro modal + music styles */
.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal-content {
  position: relative;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  width: 94%;
  max-width: 420px;
  border: 1px solid #333;
  z-index: 10;
  color: #e0e0e0;
}
.music-track-button {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #333;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}
.music-track-button:hover {
  background: #333;
}

/* ================= Music Section Styling ================= */
.music-section {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Poppins", sans-serif;
}

.music-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff; /* match overall text color */
}

/* Music Mode Buttons */
.music-mode-button {
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  margin: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #2a2f3a; /* dark bluish-grey (not black) */
  color: #b0c9f0; /* soft light blue text */
  border: 1px solid #3c4452;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.music-mode-button:hover {
  background-color: #3b4555; /* slightly lighter on hover */
  color: #4b89dc; /* highlight blue text */
  border-color: #4b89dc;
  transform: translateY(-2px);
}

.music-mode-button.active {
  background-color: #4b89dc; /* solid theme blue */
  color: #fff;
  border-color: #4b89dc;
  box-shadow: 0 4px 10px rgba(75, 137, 220, 0.4); /* blue glow */
}

/* Play / Pause Button */
.play-pause-button {
  border-radius: 14px;
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  background-color: #4b89dc;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.play-pause-button:hover {
  background-color: #386ba1;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.6);
}

.play-pause-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Play / Pause Button */
#play-pause-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  color: #fff; /* text color */
  background-color: #4b89dc; /* main button color */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#play-pause-btn:hover {
  background-color: #386ba1;
  transform: translateY(-2px);
}

/* Music Track Buttons */
.music-track-button {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: #4b89dc; /* match other buttons */
  color: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.music-track-button:hover {
  background-color: #386ba1;
}
/* Reduce the margin on the team member's name (h3) */
.profile-card h3 {
  /* Inherits color: #4b89dc and font-size: 1.5rem from existing styles */
  margin-top: 0.2rem; /* Significantly reduced top margin */
  margin-bottom: 0.5rem; /* Ensure some space below the name, but you can adjust this too */
}

.feedback-section .add-subject-btn {
  width: auto; /* Stops it from stretching 100% */
  display: table; /* Helps in centering variable width elements */
  margin: 0 auto; /* Centers the button horizontally */
  padding: 1rem 3rem; /* Adds nice spacing inside the button */
  min-width: 200px; /* Ensures it's not too small */
}
/* Academic Calendar Button */
.academic-cal-btn {
  width: 100%;
  background-color: #198754; /* Green color */
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.academic-cal-btn:hover {
  background-color: #146c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}
/* --- Roadmap Section (Original Dark Theme + Slider) --- */

/* 1. The Slider Container */
.roadmap-container {
  display: flex;
  overflow-x: auto; /* Enables horizontal scrolling */
  gap: 1.5rem;
  padding: 1rem 0.5rem 2rem 0.5rem; /* Padding for hover effects */
  scroll-snap-type: x mandatory; /* Snaps cards nicely */
  scrollbar-width: thin;
  scrollbar-color: #4b89dc #1e1e1e;
}

.roadmap-container::-webkit-scrollbar {
  height: 8px;
}

.roadmap-container::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.roadmap-container::-webkit-scrollbar-thumb {
  background-color: #4b89dc;
  border-radius: 4px;
}

/* 2. The Card (Dark Theme Style) */
.roadmap-card {
  min-width: 280px; /* Fixed width for slider */
  flex: 0 0 auto; /* Prevents shrinking */
  scroll-snap-align: start;

  /* Original Dark Colors */
  background: linear-gradient(145deg, #1e1e1e, #252525);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* 3. The Colorful Top Strip (The "Very Start" Accent) */
.roadmap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4b89dc, #d63384);
}

/* 4. Hover Effects */
.roadmap-card:hover {
  transform: translateY(-5px);
  border-color: #4b89dc;
  box-shadow: 0 8px 20px rgba(75, 137, 220, 0.2);
}

/* 5. Icons and Text */
.roadmap-card i {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.roadmap-card h3 {
  margin: 0;
  color: #fff;
  font-weight: 500;
}

