/* Theme Variables */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --transition-all: all 0.2s ease;

  /* Colors */
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-primary-dark: #3730a3;
  --color-secondary: #7c3aed;
  --color-success: #059669;
  --color-danger: #dc2626;
  --color-warning: #d97706;
  --color-info: #2563eb;

  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --bg-gray-200: #e5e7eb;

  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-focus: #4f46e5;
}

/* Global Reset & Base Styles */
body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-gray-50);
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
}
h2 {
  font-size: 1.25rem;
  font-weight: 600;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-all);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem;
}

.card-body {
  padding: 1.25rem;
}

/* === NOTEBOOK CARDS - REMOVIDO - USANDO BOOTSTRAP GRID === */

/* Estilos de cards Bootstrap removidos - usando componentes nativos */

/* Botões minimalistas para página de detalhes do caderno */
.btn-link.text-muted {
  color: #6b7280 !important;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-link.text-muted:hover {
  background: #f3f4f6;
  color: #374151 !important;
}

.btn-link.text-danger {
  color: #dc2626 !important;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-link.text-danger:hover {
  background: #fee2e2;
  color: #991b1b !important;
}

.btn-link.text-warning {
  color: #d97706 !important;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-link.text-warning:hover {
  background: #fef3c7;
  color: #92400e !important;
}

.btn-success.p-1 {
  background: #10b981;
  border: none;
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-success.p-1:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Estilos para página de detalhes do caderno */
.notebook-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2rem;
  color: white;
  margin-bottom: 2rem;
}

.notebook-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.notebook-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.badge-modern.badge-primary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-modern.badge-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.notebook-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Estilos de header notebook removidos - usando Bootstrap puro */

/* Estatísticas Ultra-Mini */
.stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.375rem;
  backdrop-filter: blur(10px);
}

.stat-mini-number {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-mini-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.5rem;
  font-weight: 500;
  margin-top: 0.125rem;
  text-align: center;
}

/* Botões Ultra-Mini */
.action-buttons-mini {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-mini.primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-mini.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  color: white;
}

.btn-mini.secondary {
  background: white;
  color: #667eea;
  border: 1px solid #667eea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-mini.secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-mini i {
  font-size: 0.875rem;
}

/* Estatísticas Compactas no Header - mantido para compatibilidade */
.stats-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
}

.stat-compact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.stat-compact-icon.bg-info {
  background: rgba(59, 130, 246, 0.3);
}

.stat-compact-icon.bg-success {
  background: rgba(16, 185, 129, 0.3);
}

.stat-compact-icon.bg-warning {
  background: rgba(245, 158, 11, 0.3);
}

.stat-compact-content {
  flex: 1;
}

.stat-compact-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-compact-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.625rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Botões no header */
.btn-link.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-link.text-white-50:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Grid de Estatísticas - removido ou mantido menor */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-icon.bg-info {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-icon.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.stat-icon.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.stat-label {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

.stat-progress {
  margin-top: 0.25rem;
}

.progress-ring {
  width: 30px;
  height: 30px;
  position: relative;
  display: inline-block;
}

.progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.625rem;
  font-weight: 600;
  color: #3b82f6;
}

.progress-ring.success .progress-value {
  color: #10b981;
}

/* Botões de Ação */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
  border: none;
  cursor: pointer;
}

.action-btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.4);
  color: white;
}

.action-btn.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-btn.secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(102, 126, 234, 0.3);
}

.action-btn i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.btn-content {
  text-align: left;
}

.btn-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ============================================
   NOTEBOOK DETAILS PAGE STYLES - REMOVIDO
   ============================================ */

/* Estilos removidos - usando Bootstrap puro */

/* Responsive Design for Notebooks */
@media (max-width: 768px) {
  .notebook-header-mini {
    padding: 0.75rem;
  }

  .notebook-title-mini {
    font-size: 1.25rem;
  }

  .notebook-meta {
    font-size: 0.85rem;
  }

  .stats-inline {
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
  }

  .all-buttons-container {
    padding: 0.75rem;
  }

  .btn-group-responsive {
    flex-direction: column;
    gap: 0.375rem;
  }

  .btn-group-responsive .btn-sm {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .stats-card,
  .action-card {
    padding: 1rem;
  }
}

/* Buttons */
.btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-all);
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-outline-secondary:hover {
  background-color: var(--bg-gray-100);
  color: var(--text-primary);
}

/* Otimizações para botões pequenos em detalhes */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--border-radius-sm);
}

.btn-sm i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Botões apenas com ícone para telas pequenas */

/* Forms */
.form-control {
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
  border-color: var(--border-light);
  padding: 0.5rem 0.75rem;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Progress Bars */
.progress {
  background-color: var(--bg-gray-100);
  border-radius: 1rem;
  height: 0.5rem;
}

.progress-bar {
  background: var(--primary-gradient);
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

/* Navigation */
.navbar {
  background: var(--color-primary);
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  height: 48px;
  display: flex;
  align-items: center;
}

.navbar .container {
  height: 100%;
}

.navbar-brand {
  color: white !important;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand i {
  font-size: 1rem;
  opacity: 0.9;
}

.navbar-nav {
  height: 100%;
  gap: 0.25rem;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-all);
  height: 28px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.nav-link i {
  font-size: 0.875rem;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem;
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Dropdown */
.navbar .dropdown-menu {
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.25rem;
  min-width: 180px;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.navbar .dropdown-item {
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.navbar .dropdown-item:hover {
  background-color: var(--bg-gray-50);
  color: var(--text-primary);
}

.navbar .dropdown-item i {
  color: var(--text-tertiary);
  margin-right: 0.375rem;
  font-size: 0.875rem;
}

/* Lists */
.list-group-item {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-color: var(--border-light);
}

/* Utilities */
.text-muted {
  color: var(--text-muted) !important;
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-success {
  color: var(--color-success) !important;
}
.text-danger {
  color: var(--color-danger) !important;
}

/* Icons */
.icon-sm {
  font-size: 1rem;
}
.icon-md {
  font-size: 1.25rem;
}
.icon-lg {
  font-size: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.813rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Stats Cards */
.stat-card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: var(--bg-gray-100);
  color: var(--color-primary);
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

/* Estilos para a página de questões - usando Bootstrap puro */

.form-check {
  padding: 1rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-check-input {
  margin-top: 0.25rem;
}

.alternative-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  cursor: pointer;
  flex: 1;
}

.alternative-letter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 1.5rem;
}

.alternative-text {
  flex: 1;
}

.feedback-section {
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
  padding-top: 2rem;
}

.justification {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Botões de navegação */
.btn-nav {
  min-width: 100px;
}

/* Estilo para botão desabilitado */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ícones nos botões */
.btn .bi {
  font-size: 1.1em;
  vertical-align: -0.125em;
}

/* Practice Question Specific Styles */
.question-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.question-type {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-gray-50);
  border-radius: var(--border-radius-sm);
}

.question-type i {
  font-size: 0.875rem;
  color: var(--color-primary);
}

.statement {
  font-size: 0.938rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Bootstrap native form components preferred for alternatives */

/* Sidebar Stats and Action Cards - Bootstrap styles preferred */
.stats-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.stats-header i {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.stat-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: var(--bg-gray-100);
  color: var(--color-primary);
  font-size: 0.8rem;
}

.stat-details {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.125rem;
}

.stat-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-value small {
  font-weight: 400;
  color: var(--text-secondary);
}

.action-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem;
}

/* ============================================
   NOTEBOOK CARDS - ESTILOS PROFISSIONAIS
   ============================================ */

/* Cards dos cadernos - estilo profissional */
.notebooks-grid .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notebooks-grid .card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Hover sutil nos badges das estatísticas */
.notebooks-grid .card:hover .badge {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

.notebooks-grid .card:hover .badge.bg-primary {
  background-color: #3b82f6 !important;
  color: white !important;
}

/* Efeito hover nos botões */
.notebooks-grid .card:hover .btn-outline-primary {
  border-color: #3b82f6;
  color: #3b82f6;
}

.notebooks-grid .card:hover .btn-success {
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

/* Barra de progresso com estilo mais suave */
.notebooks-grid .progress {
  background-color: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}

.notebooks-grid .progress-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 8px;
  transition: width 0.6s ease;
}

/* Espaçamento e tipografia refinados */
.notebooks-grid .card-title {
  color: #1e293b;
  font-weight: 600;
  line-height: 1.3;
}

.notebooks-grid .text-muted {
  color: #64748b !important;
}

/* Melhorias adicionais para acabamento profissional */
.notebooks-grid .card-body {
  padding: 1rem; /* Reduzido de 1.25rem para 1rem */
}

/* Espaçamento refinado entre elementos */
.notebooks-grid .card-title {
  margin-bottom: 0.5rem; /* Reduzido de 0.75rem para 0.5rem */
  font-size: 0.95rem; /* Título ligeiramente menor */
}

.notebooks-grid .badge {
  font-size: 0.7rem; /* Reduzido de 0.75rem para 0.7rem */
  font-weight: 500;
  border-radius: 6px;
  padding: 0.25rem 0.5rem; /* Padding menor nos badges */
}

/* Ícones com espaçamento consistente */
.notebooks-grid .bi {
  margin-right: 0.25rem;
}

/* Botões com tamanho e espaçamento uniformes */
.notebooks-grid .btn-sm {
  padding: 0.25rem 0.5rem; /* Reduzido padding dos botões */
  font-size: 0.75rem; /* Fonte menor nos botões */
  font-weight: 500;
  min-width: 60px; /* Largura mínima menor */
}

/* Progress bar mais compacta */
.notebooks-grid .progress {
  height: 4px; /* Reduzido de 6px para 4px */
  margin-bottom: 0.5rem; /* Margin menor */
}

/* Texto muted menor */
.notebooks-grid small.text-muted {
  font-size: 0.7rem; /* Texto de disciplina/assunto menor */
}

/* Sombra mais sutil no estado normal para dar profundidade */
.notebooks-grid .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Media query para responsividade em telas menores */
@media (max-width: 768px) {
  .notebooks-grid .col-lg-6 {
    margin-bottom: 1rem;
  }

  .notebooks-grid .card:hover {
    transform: translateY(-1px); /* Menos movimento em telas pequenas */
  }
}

/* ============================================
   DISCIPLINE CARDS - ESTILOS PROFISSIONAIS
   ============================================ */

/* Cards das disciplinas - mesmo estilo profissional dos cadernos */
.disciplines-grid .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.disciplines-grid .card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Estilos específicos para disciplinas */
.disciplines-grid .card-body {
  padding: 1rem;
}

.disciplines-grid .card-title {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.3;
}

.disciplines-grid .text-muted {
  color: #64748b !important;
  font-size: 0.7rem;
}

/* Botões das disciplinas */
.disciplines-grid .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 60px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.disciplines-grid .btn:hover {
  transform: translateY(-1px);
}

/* Efeitos hover específicos */
.disciplines-grid .card:hover .btn-outline-warning {
  border-color: #f59e0b;
  color: #f59e0b;
}

.disciplines-grid .card:hover .btn-outline-danger {
  border-color: #ef4444;
  color: #ef4444;
}

/* Media query para responsividade */
@media (max-width: 768px) {
  .disciplines-grid .col-lg-6 {
    margin-bottom: 1rem;
  }

  .disciplines-grid .card:hover {
    transform: translateY(-1px);
  }

  .disciplines-grid .btn-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ============================================
   DISCIPLINE DETAILS - ESTILOS PROFISSIONAIS  
   ============================================ */

/* Cards da página de detalhes da disciplina */
.discipline-details .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.discipline-details .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Botões com transições suaves */
.discipline-details .btn {
  transition: all 0.2s ease;
  border-radius: 8px;
}

.discipline-details .btn:hover {
  transform: translateY(-1px);
}

/* ============================================
   STATISTICS DASHBOARD - ESTILOS PROFISSIONAIS
   ============================================ */

/* Layout geral do dashboard */
.statistics-dashboard .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.statistics-dashboard .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Cards de estatísticas principais */
.statistics-cards .stats-card {
  position: relative;
  overflow: hidden;
  color: white;
  transition: all 0.3s ease;
}

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

/* Cores dos cards de estatísticas */
.stats-card.stats-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.stats-card.stats-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.stats-card.stats-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-card.stats-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Elementos dos cards de estatísticas - versão micro */
.stats-icon {
  font-size: 0.75rem; /* Reduzido de 1rem para 0.75rem (50% menor) */
  opacity: 0.8;
}

.stats-number {
  font-size: 0.875rem; /* Reduzido de 1.125rem para 0.875rem (50% menor) */
  font-weight: 700;
  margin: 0;
}

.stats-label {
  font-size: 0.5rem; /* Reduzido de 0.6875rem para 0.5rem (8px - 50% menor) */
  opacity: 0.9;
  margin: 0;
}

/* Ajustes para cards mais compactos e profissionais */
.statistics-cards .stats-card {
  min-height: 50px; /* Reduzido de 80px para 50px (50% menor) */
}

.statistics-cards .stats-card .card-body {
  padding: 0.25rem 0.1875rem; /* Reduzido drasticamente (50% menor) */
}

.statistics-cards .stats-icon {
  margin-bottom: 0.125rem; /* Reduzido de 0.25rem para 0.125rem (50% menor) */
}

.statistics-cards .stats-number {
  line-height: 1; /* Reduzido de 1.1 para 1 (máximo compacto) */
  margin-bottom: 0.0625rem; /* Reduzido de 0.125rem para 0.0625rem (50% menor) */
}

.statistics-cards .stats-label {
  line-height: 1.1; /* Reduzido de 1.2 para 1.1 */
  font-weight: 500; /* Peso da fonte mais forte para melhor legibilidade */
}

/* Ajustes adicionais para cards micro */
.statistics-cards .stats-card {
  max-height: 60px; /* Altura máxima controlada */
  border-radius: 8px; /* Border radius menor para cards pequenos */
}

.statistics-cards .stats-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Margem reduzida entre cards */
.statistics-cards .col-md-3 {
  margin-bottom: 0.5rem;
}

/* Ajuste de espaçamento no grid */
.statistics-cards.row {
  margin: 0 -0.25rem; /* Margem reduzida do row */
}

.statistics-cards .col-md-3 {
  padding: 0 0.25rem; /* Padding reduzido das colunas */
}
