
:root {
  --primary-green: #1b5e20;     
  --secondary-green: #2e7d32;   
  --primary-blue: #0d47a1;       
  --secondary-blue: #1565c0;    
  --light-blue: #42a5f5;         
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-gray: #666666;
  --accent-green: #4caf50;      
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-green);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  flex-direction: column;
  padding: 2rem;
  gap: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--white);
  font-weight: 500;
  padding: 0.8rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--accent-green);
}

.mobile-menu .btn {
  margin-top: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: white;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-green);
}

.hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--accent-green);
  border-radius: 2px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent-green);
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  font-size: 3rem;
}

.card-body {
  padding: 2rem;
}

.card-body h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-body p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.card-footer {
  padding: 0 2rem 2rem;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.student-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 350px;
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.student-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.student-card:hover .student-image {
  filter: blur(8px) brightness(0.6);
}

.student-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 94, 32, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.student-card:hover .student-overlay {
  opacity: 1;
}

.student-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-green);
}

.student-overlay p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  opacity: 0.95;
}

.student-overlay .subject {
  font-weight: 600;
  color: var(--accent-green);
  margin-top: 0.5rem;
}

.form-container {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 10px;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--light-blue);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 5px rgba(27, 94, 32, 0.3);
}

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

.checkbox input[type="checkbox"] {
  width: auto;
}

.checkbox label {
  margin-bottom: 0;
}

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background-color: #c8e6c9;
  color: #1b5e20;
  border-left: 4px solid #4caf50;
}

.alert-error {
  background-color: #ffcdd2;
  color: #c62828;
  border-left: 4px solid #f44336;
}

footer {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

.profile-section {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-green);
}

.profile-section h3 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.info-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid var(--primary-blue);
}

.info-label {
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.info-value {
  color: var(--dark-gray);
  font-size: 1rem;
}

.sidebar {
  width: 200px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-box {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-green);
}

.sidebar-box h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sidebar-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-box a {
  display: block;
  padding: 0.5rem;
  color: var(--primary-green);
  border-radius: 5px;
  transition: all 0.3s;
}

.sidebar-box a:hover {
  background-color: var(--accent-green);
  color: var(--white);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.events-table th {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.events-table td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.events-table tr:hover {
  background-color: var(--light-gray);
}

.event-type {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.event-type.prova {
  background-color: #ffebee;
  color: #c62828;
}

.event-type.trabalho {
  background-color: #e8f5e9;
  color: #1b5e20;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    position: relative;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .auth-buttons {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

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

  .form-container {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 2rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.5rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .student-grid {
    grid-template-columns: 1fr;
  }

  .events-table {
    font-size: 0.9rem;
  }

  .events-table th,
  .events-table td {
    padding: 0.7rem;
  }
}
