.grade-disciplinas {
  color: #333333;
  font-size: 16px;
}

.grade-disciplinas .container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.grade-disciplinas .periodo-container {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.grade-disciplinas .periodo {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  padding: 18px 25px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.grade-disciplinas .periodo:hover {
  background: linear-gradient(135deg, #5ba0f2, #4080cd);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.grade-disciplinas .periodo.ativo {
  background: linear-gradient(135deg, #2e7bd6, #1e5ba6);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.grade-disciplinas .card-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, #f8fbff, #e8f4fd);
  padding: 25px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #e0f0ff;
  border-top: none;
}

.grade-disciplinas .card-list.ativo {
  display: flex;
}

.grade-disciplinas .card {
  background: linear-gradient(135deg, #ffffff, #f9fdff);
  color: #2c3e50;
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 500;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8f4fd;
  position: relative;
  overflow: hidden;
}

.grade-disciplinas .card:hover {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
  border-color: #4a90e2;
}

.grade-disciplinas .card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, #4a90e2, #357abd);
  border-radius: 0 4px 4px 0;
}

.grade-disciplinas h2 {
  font-size: 1.2rem;
  color: #4a90e2;
  font-weight: 600;
}

.grade-disciplinas .header {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

.grade-disciplinas .header h1 {
  color: #4a90e2;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.grade-disciplinas .header p {
  color: #666666;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .grade-disciplinas .periodo {
    padding: 15px;
    font-size: 16px;
  }

  .grade-disciplinas .container {
    padding: 15px;
  }

  .grade-disciplinas .card-list {
    padding: 15px;
  }

  .grade-disciplinas .header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grade-disciplinas {
    font-size: 16px;
  }

  .grade-disciplinas .periodo {
    padding: 15px;
    font-size: 16px;
  }

  .grade-disciplinas .periodo-container {
    margin-bottom: 8px;
  }

  .grade-disciplinas .card {
    padding: 15px;
    font-size: 15px;
    margin-bottom: 0;
  }

  .grade-disciplinas .card-list {
    padding: 15px;
    gap: 10px;
  }

  .grade-disciplinas .card-list > h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .grade-disciplinas .header h1 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .grade-disciplinas .header p {
    font-size: 0.9rem;
  }

  .grade-disciplinas .container {
    padding: 10px;
  }
}
