/* 
 * Estilos principais do sistema de simulados CPA
 */

:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px 0;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  margin-right: 10px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar-nav .btn {
  margin-left: 10px;
  padding: 0.375rem 1rem;
}

/* Cards */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border: none;
  overflow: hidden;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Botões */
.btn {
  border-radius: 4px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
}

/* Formulários */
.form-control {
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

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

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Alertas */
.alert {
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Paginação */
.pagination {
  margin-top: 1.5rem;
}

.pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Home page */
.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard-card {
  text-align: center;
  padding: 1.5rem;
}

.dashboard-card .card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

/* Simulados */
.simulado-card {
  transition: transform 0.3s ease;
}

.simulado-card:hover {
  transform: translateY(-5px);
}

.question-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.question-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.question-options {
  margin-top: 1.5rem;
}

.question-option {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.question-option:hover {
  background-color: #f8f9fa;
}

.question-option.selected {
  background-color: #e3f2fd;
  border-color: var(--primary-color);
}

.question-navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

/* Resultados */
.result-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.result-score {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-details {
  margin-top: 2rem;
}

.result-question {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.result-question.correct {
  border-left: 4px solid var(--success-color);
  padding-left: 1rem;
}

.result-question.incorrect {
  border-left: 4px solid var(--danger-color);
  padding-left: 1rem;
}

/* Admin */
.admin-container {
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-actions {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form .form-control {
  margin-right: 0.5rem;
}

.admin-dashboard .row {
  margin-bottom: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar-nav .btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-form {
    margin-top: 1rem;
    width: 100%;
  }
  
  .question-navigation {
    flex-direction: column;
  }
  
  .question-navigation .btn {
    margin-bottom: 0.5rem;
  }
}
