/**
 * Estilos para a área do cliente
 */

/* Variáveis */
:root {
  --primary: #4e73df;
  --secondary: #858796;
  --success: #1cc88a;
  --info: #36b9cc;
  --warning: #f6c23e;
  --danger: #e74a3b;
  --light: #f8f9fc;
  --dark: #5a5c69;
}

/* Estilos gerais */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  background-color: #f8f9fc;
  color: #5a5c69;
}

/* Header */
.navbar-brand {
  font-weight: 800;
  color: var(--primary) !important;
}

.navbar {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  background-color: #fff;
}

.navbar .nav-item .nav-link {
  color: #5a5c69;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

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

.navbar .nav-item .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Cards */
.card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card .card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  padding: 0.75rem 1.25rem;
}

.card .card-header .card-title {
  color: #5a5c69;
  font-weight: 700;
  margin: 0;
}

/* Ícones em caixas */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

/* Avatar */
.avatar-circle {
  width: 100px;
  height: 100px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-circle-sm {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-initials {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.avatar-circle-sm .avatar-initials {
  font-size: 1rem;
}

/* Formulários */
.form-control:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Botões */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #2e59d9;
  border-color: #2653d4;
}

.btn-primary:focus {
  background-color: #2e59d9;
  border-color: #2653d4;
  box-shadow: 0 0 0 0.25rem rgba(105, 136, 228, 0.5);
}

/* Footer */
footer {
  background-color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 -0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0;
}

/* Login e Registro */
.auth-card {
  max-width: 450px;
  margin: 5rem auto;
}

.auth-card .card-header {
  text-align: center;
  padding: 1.5rem;
}

.auth-card .card-header h4 {
  margin-bottom: 0;
  font-weight: 700;
}

/* Dashboard */
.dashboard-stat-card {
  transition: all 0.3s;
}

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

/* Tabelas */
.table {
  color: #5a5c69;
}

.table thead th {
  background-color: #f8f9fc;
  border-bottom: 2px solid #e3e6f0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
  background-color: rgba(78, 115, 223, 0.05);
}

/* Paginação */
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

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

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Responsividade */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    font-size: 0.8rem;
  }
  
  .auth-card {
    margin: 2rem auto;
  }
}

/* Animações */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notificações */
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

/* Página 404 */
.error-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
