/* ===================================================
   Antehadel Connect — Dashboard Styles
   =================================================== */

:root {
  --ant-primary:    #2d2d2d;
  --ant-accent:     #8b5cf6;
  --ant-accent-lt:  #ede9fe;
  --ant-success:    #059669;
  --ant-warning:    #d97706;
  --ant-danger:     #dc2626;
  --ant-bg:         #f9f9f9;
  --ant-card:       #ffffff;
  --ant-border:     #e5e7eb;
  --ant-text:       #1f2937;
  --ant-muted:      #6b7280;
  --ant-radius:     12px;
  --ant-shadow:     0 2px 8px rgba(0,0,0,.08);
}

.ant-dashboard { font-family: inherit; color: var(--ant-text); }

/* CARDS */
.ant-profile-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--ant-card); border-radius: var(--ant-radius);
  padding: 24px; box-shadow: var(--ant-shadow); margin-bottom: 24px;
}

.ant-avatar img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--ant-accent-lt);
}

.ant-profile-info h2 { margin: 0 0 4px; font-size: 1.3rem; }
.ant-email { color: var(--ant-muted); font-size: .9rem; margin: 0 0 12px; }
.ant-role-badge {
  display: inline-block; background: var(--ant-accent-lt);
  color: var(--ant-accent); padding: 3px 10px;
  border-radius: 20px; font-size: .8rem; margin-bottom: 12px;
}

/* SECCION */
.ant-section {
  background: var(--ant-card); border-radius: var(--ant-radius);
  padding: 24px; box-shadow: var(--ant-shadow); margin-bottom: 24px;
}
.ant-section h3 { margin: 0 0 18px; font-size: 1.1rem; }

/* GRID DE CURSOS */
.ant-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ant-course-card {
  border: 1px solid var(--ant-border); border-radius: var(--ant-radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}

.ant-course-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.ant-course-title { font-weight: 600; font-size: .95rem; }

/* BADGES */
.ant-badge {
  font-size: .72rem; padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; font-weight: 600;
}
.ant-badge.active  { background: #d1fae5; color: var(--ant-success); }
.ant-badge.grace   { background: #fef3c7; color: var(--ant-warning); }

/* PROGRESS */
.ant-progress-bar {
  height: 8px; background: var(--ant-border);
  border-radius: 4px; overflow: hidden;
}
.ant-progress-bar.mini { height: 6px; width: 80px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.ant-progress-fill {
  height: 100%; background: var(--ant-accent);
  border-radius: 4px; transition: width .4s ease;
}

.ant-course-meta {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--ant-muted);
}

/* BOTONES */
.ant-btn {
  display: inline-block; background: var(--ant-accent); color: #fff;
  border: none; padding: 8px 18px; border-radius: 8px;
  cursor: pointer; font-size: .9rem; text-decoration: none;
  transition: opacity .2s; font-family: inherit;
}
.ant-btn:hover { opacity: .88; color: #fff; }
.ant-btn-outline {
  background: transparent; border: 1.5px solid var(--ant-accent);
  color: var(--ant-accent);
}
.ant-btn-outline:hover { background: var(--ant-accent-lt); }
.ant-btn-full { width: 100%; text-align: center; }
.ant-btn-sm { padding: 4px 12px; font-size: .8rem; }

/* FORMULARIO PERFIL */
.ant-profile-form {
  background: var(--ant-card); border-radius: var(--ant-radius);
  padding: 24px; box-shadow: var(--ant-shadow); margin-bottom: 24px;
}
.ant-profile-form h3 { margin: 0 0 16px; }
.ant-form-row { margin-bottom: 14px; }
.ant-form-row label { display: block; font-size: .85rem; color: var(--ant-muted); margin-bottom: 4px; }
.ant-form-row input {
  width: 100%; max-width: 360px; padding: 8px 12px;
  border: 1px solid var(--ant-border); border-radius: 8px;
  font-size: .95rem; font-family: inherit;
}
.ant-form-row small { display: block; font-size: .78rem; color: var(--ant-muted); margin-top: 4px; }

/* TEACHER */
.ant-teacher-course-card {
  border: 1px solid var(--ant-border); border-radius: var(--ant-radius);
  padding: 20px; margin-bottom: 16px;
}
.ant-stats-row { display: flex; gap: 32px; margin: 14px 0; }
.ant-stat { text-align: center; }
.ant-stat-number { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ant-accent); }
.ant-stat-label  { font-size: .78rem; color: var(--ant-muted); }

.ant-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 10px; }
.ant-table th { background: var(--ant-bg); padding: 8px 12px; text-align: left; font-weight: 600; }
.ant-table td { padding: 8px 12px; border-bottom: 1px solid var(--ant-border); }

details.ant-students-list { margin-top: 12px; }
details.ant-students-list summary { cursor: pointer; font-size: .9rem; color: var(--ant-accent); margin-bottom: 10px; }

.ant-notice { color: var(--ant-muted); font-style: italic; }
.ant-empty { text-align: center; padding: 40px 0; color: var(--ant-muted); }

@media (max-width: 640px) {
  .ant-profile-card { flex-direction: column; text-align: center; }
  .ant-courses-grid { grid-template-columns: 1fr; }
  .ant-stats-row    { gap: 16px; }
}
