/* Area do Aluno Styles */
.student-container {
  padding-top: 8vh;
  min-height: 90vh;
  background-color: var(--background);
}

/* Login Section */
.login-section {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
}

.login-container {
  width: 100%;
  max-width: 500px;
  background: var(--light);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.login-container p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.login-form {
  text-align: left;
}

.form-error {
  color: #f44336;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 20px;
}

.login-help {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Google Login Button */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background: var(--light);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.google-login-btn svg {
  margin-right: 10px;
}

.google-login-btn:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: var(--text-light);
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.separator span {
  padding: 0 10px;
  font-size: 0.9rem;
}

/* Student Dashboard */
.student-dashboard {
  padding: 3rem 2rem;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  color: var(--primary);
}

.dashboard-header p {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 1rem;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--light);
}

/* Student Events Section */
.student-events, .student-materials {
  margin-bottom: 5rem;
}

.student-events h2, .student-materials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.student-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Event Card Tag */
.event-card .event-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.event-card .tag-public {
  background: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.event-card .tag-private {
  background: rgba(124, 77, 255, 0.2);
  color: var(--secondary);
}

/* Materials Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.material-card {
  background: var(--light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: var(--border);
  position: relative;
  margin-bottom: 1.5rem;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.material-header {
  padding: 1.5rem;
  background: var(--gradient);
  color: var(--light);
}

.material-header h3 {
  color: var(--light);
  margin-bottom: 0.5rem;
}

.material-details {
  padding: 1.5rem;
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.material-category, .material-date {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.material-category svg, .material-date svg {
  margin-right: 0.5rem;
  fill: var(--primary);
}

.material-description {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.material-download-btn {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.material-download-btn svg {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
}

.material-download-btn:hover {
  background: var(--primary-dark);
}

/* Footer Styling */
.footer {
  background: var(--dark);
  color: var(--light);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-section h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary);
  left: 0;
  bottom: -0.5rem;
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--light);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .login-container {
    width: 90%;
    padding: 2rem;
  }
  
  .dashboard-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .dashboard-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .student-event-grid, 
  .materials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .material-meta {
    flex-wrap: wrap;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 1.5rem;
  }
}