/* ===========================
   Variáveis & Reset
=========================== */
:root {
  --primary-color: #2a9d8f;
  --secondary-color: #e76f51;
  --accent-color: #f4a261;
  --light-bg: #f8f9fa;
  --dark-bg: #264653;
  --text-color: #2b2d42;
  --card-shadow: 0 8px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ===========================
   Layout / Header / Footer
=========================== */
.header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2c3e50 100%);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.header-title {
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.content-wrapper {
  flex: 1;
  padding: 2.5rem 0;
}

.main-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 900px; /* index */
  border: none;
}

.footer {
  background-color: var(--dark-bg);
  color: #e9ecef;
  padding: 1.5rem 0;
  margin-top: auto;
  font-size: 0.95rem;
}

/* ===========================
   Página Index (busca)
=========================== */
.page-title {
  color: var(--dark-bg);
  margin-bottom: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-title i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(42,157,143,0.15);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), #2a9d8f);
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
  font-size: 1.05rem;
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(42,157,143,0.3);
  background: linear-gradient(to right, #248277, #248277);
}

.instructions-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e9ecef;
}

.instruction-title {
  color: var(--dark-bg);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.instruction-step {
  background: var(--light-bg);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  transition: var(--transition);
  height: 100%;
  border-left: 4px solid var(--primary-color);
}

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

.instruction-step .icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.instruction-step h5 {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--dark-bg);
  font-size: 1.1rem;
}

.instruction-step p {
  color: #5a6b7c;
  font-size: 0.95rem;
}

/* ===========================
   Página Aluno (detalhes)
=========================== */
.student-name {
  color: var(--dark-bg);
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.promotion-details {
  font-size: 1.1rem;
  color: #5a6b7c;
}

.promotion-details strong {
  color: var(--primary-color);
}

.divider {
  border-top: 2px solid #e9ecef;
  margin: 2rem 0;
}

.info-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.info-title {
  font-weight: 600;
  color: var(--dark-bg);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-content {
  color: #5a6b7c;
  margin-bottom: 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.location-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  height: 150px;
  object-fit: cover;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

/* ===========================
   Responsividade
=========================== */
@media (max-width: 768px) {
  .main-card {
    padding: 1.8rem;
    margin: 0 1rem;
    max-width: 100%;
  }

  .header-title {
    font-size: 1.4rem;
  }

  .logo-img {
    height: 40px;
  }

  .page-title {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .instruction-step {
    margin-bottom: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .student-name {
    font-size: 1.5rem;
  }

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

@media (max-width: 576px) {
  .header-title { font-size: 1.2rem; }
  .logo-img { height: 35px; }
  .page-title { font-size: 1.3rem; }
}
