/* LessonAI Office - Estilos Personalizados */
:root {
  --primary-color: rgb(39, 118, 208);
  --primary-gradient: linear-gradient(135deg, #1d4ed8, #3b82f6);
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: var(--light-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar customizations */
.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: #6c757d !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Botões personalizados */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Tabelas */
.table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table thead th {
  background-color: #fff;
  color: #495057;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr:hover {
  background-color: rgba(39, 118, 208, 0.05);
}

/* Formulários */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(39, 118, 208, 0.25);
}

.form-label {
  font-weight: 600;
  color: #495057;
}

/* KPI Cards */
.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.kpi-label {
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.kpi-icon {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: var(--primary-gradient) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .kpi-card {
    margin-bottom: 1rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}