:root {
  --primary-blue: #475d9b;
  --accent-orange: #F76C0A;
  --light-bg: #ffffff;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius: 20px;
}

body {
  /* background: #ffffff; */
  font-family: system-ui, sans-serif;
  padding: 24px;
  background: #3b4561;
  /* display: flex; */
  /* justify-content: center; */
}

.dashboard-wrapper {
  width: 100%;
  max-width: 1220px;
  display: flex;
/* flex-direction: column;*/
  justify-content: space-between; 
  /* align-items: center; */
  gap:4rem
}
.instructor-img { width: 40%; }
.dashboard-card { width: 60%; }
.img-fluid{
  width: 100%;
  height: auto;
}
  /* align-items: start; */
 

.dashboard-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.12);
  overflow: hidden;
  /* margin-top: -250px; */
  /* float:right */
  /* margin-right: auto; */
  width: 100%;
  /* align-items: self-end; */
}

/* TOP BAR */
.top-bar {
  padding: 14px 20px;
  background: var(--primary-blue);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.top-right .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary-blue);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Responsive icon sizes */
@media (max-width: 576px) {
  .top-right .icon-btn { width: 32px; height: 32px; }
  .avatar-circle { width: 36px; height: 36px; }
  .logo-box img { height: 36px; }
}
@media (min-width: 577px) and (max-width: 768px) {
  .top-right .icon-btn { width: 34px; height: 34px; }
  .logo-box img { height: 40px; }
}
.top-right .icon-btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 18px rgba(2,8,23,0.15); }

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color:  #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--primary-blue);

}
.logout-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* CONTENT */
.dashboard-inner {
  padding: 30px;
}

.header-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* STATS */
.stat-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.06);
  animation: fadeIn 0.8s ease-out both;
}
.row.g-3 .col-6:nth-child(1) .stat-card { animation-delay: 0.05s; }
.row.g-3 .col-6:nth-child(2) .stat-card { animation-delay: 0.15s; }
.row.g-3 .col-6:nth-child(3) .stat-card { animation-delay: 0.25s; }
.row.g-3 .col-6:nth-child(4) .stat-card { animation-delay: 0.35s; }

.stat-icon {
  font-size: 1.2rem;
  color: #fff;
    padding: 10px;
    border-radius: 50%;
  background: var(--accent-orange);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* CARDS */
.card-soft {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: 0 8px 22px rgba(2, 8, 23, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-soft:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.12);
}

.card-link {
  text-decoration: none;
  color: inherit;
}
.card-link:hover .fw-semibold { color: var(--primary-blue); }
.card-link { position: relative; }
.card-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-orange), transparent); transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease; }
.card-link:hover::after { transform: scaleX(1); }

/* BUTTONS */
.btn-orange {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-orange:hover {
  background: #f45f00;
  box-shadow: 0 10px 24px rgba(244,95,0,0.25);
}
.btn-orange:active { transform: scale(0.98); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-fade { animation: fadeIn 0.8s ease-out both; }
.animate-up { animation: slideUp 0.6s ease-out both; }

/* Two column content blocks fade-in */
.dashboard-inner section { animation: fadeIn 0.75s ease-out both; }
.dashboard-inner section:nth-of-type(1) { animation-delay: 0.05s; }
.dashboard-inner section:nth-of-type(2) { animation-delay: 0.15s; }
.dashboard-inner section:nth-of-type(3) { animation-delay: 0.25s; }
.dashboard-inner section:nth-of-type(4) { animation-delay: 0.35s; }

/* -------------------------------
   Responsive Tweaks
------------------------------- */
@media (max-width: 576px) {
  body { padding: 12px; }
  .dashboard-inner { padding: 16px; }
  .top-bar { flex-wrap: wrap; gap: 8px; }
  .header-title { font-size: clamp(1.3rem, 4vw, 1.6rem); }
  .stat-card { padding: 14px 8px; }
  .dashboard-wrapper { gap: 1rem; }
  .instructor-img { display: none; }
  .dashboard-card { width: 100%; float: none; }
}

@media (min-width: 577px) and (max-width: 992px) {
  .dashboard-inner { padding: 20px; }
  .header-title { font-size: clamp(1.5rem, 3vw, 1.8rem); }
  .instructor-img { display: none; }
  .dashboard-card { width: 100%; float: none; }
}

@media (min-width: 1200px) {
  .dashboard-wrapper { max-width: 1320px; }
}
