/* DLA Blueprint — Course Style */
/* ======= RESET & BASE ======= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.6;color:#1a1a2e;background:#f8fafc}
a{color:#1e3a8a}
h1,h2,h3,h4{line-height:1.3}

/* ======= AUTH PAGES (register, login, activate, forgot-password) ======= */
.auth-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 50%,#0f172a 100%);padding:20px}
.auth-container{width:100%;max-width:460px}
.auth-box{background:#fff;border-radius:12px;padding:40px 32px;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.auth-logo{text-align:center;margin-bottom:28px}
.auth-logo h1{font-size:1.75rem;color:#1e3a8a}
.auth-logo p{color:#64748b;margin-top:4px;font-size:.95rem}
.auth-form{margin-top:20px}
.auth-links{text-align:center;margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}
.auth-links p{font-size:.9rem;color:#64748b}
.auth-links a{color:#2563eb;font-weight:600}

/* ======= FORM ELEMENTS ======= */
.form-group{margin-bottom:18px}
.form-group label{display:block;font-weight:600;margin-bottom:6px;font-size:.9rem;color:#334155}
.form-group input,.form-group select{width:100%;padding:11px 14px;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .2s}
.form-group input:focus,.form-group select:focus{border-color:#1e3a8a;outline:none;box-shadow:0 0 0 3px rgba(30,58,138,.1)}
.form-hint{display:block;margin-top:4px;font-size:.8rem;color:#94a3b8}
.form-checkbox{display:flex;align-items:center;gap:8px}
.form-checkbox input{width:auto}

/* ======= BUTTONS ======= */
.btn{display:inline-block;padding:11px 22px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;transition:all .2s}
.btn-primary{background:#1e3a8a;color:#fff}
.btn-primary:hover{background:#1e40af;transform:translateY(-1px)}
.btn-secondary{background:#e2e8f0;color:#334155}
.btn-secondary:hover{background:#cbd5e1}
.btn-success{background:#059669;color:#fff}
.btn-success:hover{background:#047857}
.btn-danger{background:#dc2626;color:#fff}
.btn-sm{padding:6px 14px;font-size:.85rem}
.btn-block{display:block;width:100%}
.btn-link{background:none;color:#1e3a8a;text-decoration:underline;padding:0;font-size:.9rem}
.btn-activate{background:#f59e0b;color:#1e3a8a;font-weight:700;padding:14px 32px;font-size:1.05rem}

/* ======= ALERTS ======= */
.alert{padding:14px 18px;border-radius:8px;margin-bottom:20px;font-size:.9rem}
.alert-success{background:#d1fae5;color:#065f46;border-left:4px solid #059669}
.alert-error{background:#fef2f2;color:#991b1b;border-left:4px solid #dc2626}

/* ======= HONEYPOT (hidden from humans) ======= */
.hp-field{position:absolute;left:-9999px;top:-9999px;opacity:0;height:0;width:0;overflow:hidden}

/* ======= COURSE PAGE (course.php) ======= */
.course-page{display:flex;min-height:100vh}
.sidebar{width:300px;background:#0f172a;color:#fff;overflow-y:auto;padding:24px 0;position:fixed;top:0;left:0;bottom:0;z-index:100;transition:transform .3s}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99}
.main-content{flex:1;margin-left:300px;min-height:100vh;display:flex;flex-direction:column}
.content-header{background:#fff;padding:16px 32px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50}
.header-actions{display:flex;gap:12px;align-items:center}
.content-body{padding:32px;flex:1}

/* ======= MODULE NAVIGATION ======= */
.module-nav{padding:0 20px}
.module-nav a{display:flex;align-items:center;gap:10px;padding:10px 14px;color:#cbd5e1;text-decoration:none;border-radius:8px;margin-bottom:4px;font-size:.9rem;transition:all .15s}
.module-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.module-nav a.active{background:#1e3a8a;color:#fff;font-weight:600}
.module-status{font-size:.8rem;min-width:20px;text-align:center}
.module-status.completed{color:#34d399}

/* ======= PROGRESS BAR ======= */
.progress-overview{padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:16px}
.progress-stats{display:flex;justify-content:space-between;font-size:.8rem;color:#94a3b8;margin-bottom:8px}
.progress-stats span:last-child{color:#34d399;font-weight:700}
.progress-bar{height:6px;background:rgba(255,255,255,.15);border-radius:3px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#34d399,#059669);border-radius:3px;transition:width .4s}

/* ======= ACTIVATE PAGE ======= */
.activate-container{width:100%;max-width:560px}
.activate-header{text-align:center;margin-bottom:32px}
.activate-header h2{font-size:1.5rem;color:#1e3a8a}
.activate-header p{color:#64748b;margin-top:8px}
.activate-box{background:#fff;border-radius:12px;padding:32px;box-shadow:0 4px 24px rgba(0,0,0,.08)}
.plan-option{display:flex;align-items:center;padding:16px;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;margin-bottom:12px;transition:all .2s}
.plan-option:hover{border-color:#93c5fd}
.plan-option.selected{border-color:#1e3a8a;background:#eff6ff}
.plan-select{min-width:22px;height:22px;border-radius:50%;border:2px solid #cbd5e1;margin-right:14px;display:flex;align-items:center;justify-content:center;font-size:12px}
.plan-option.selected .plan-select{border-color:#1e3a8a;background:#1e3a8a;color:#fff}
.plan-name{font-weight:700;font-size:1.05rem}
.plan-price{margin-left:auto;font-weight:700;font-size:1.1rem;color:#1e3a8a}
.credentials-box{background:#f1f5f9;border-radius:8px;padding:18px;margin:24px 0}
.cred-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e2e8f0;font-size:.9rem}
.cred-item:last-child{border-bottom:none}
.cred-value{font-weight:600;color:#1e3a8a;font-family:monospace}
.login-button{margin-top:16px;text-align:center}

/* ======= CONTENT AREA ======= */
.bonus-download{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;color:#92400e;text-decoration:none;font-weight:600;transition:all .2s}
.bonus-download:hover{background:#fde68a}
.featured{border:2px solid #f59e0b}

/* ======= RESPONSIVE ======= */
@media(max-width:768px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.active{display:block}
  .main-content{margin-left:0}
  .content-header{padding:12px 16px}
  .content-body{padding:20px 16px}
  .auth-box{padding:28px 20px}
  .course-page{flex-direction:column}
}

/* ======= MOBILE MENU TOGGLE ======= */
#mobileMenuToggle{background:none;border:none;font-size:1.5rem;cursor:pointer;display:none}
@media(max-width:768px){#mobileMenuToggle{display:block}}
