/* Sky Placements — Admin CRM + User Dashboard */

/* ── Admin CRM Layout ── */
.crm-login{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#0f172a}
.crm-login-left{display:flex;align-items:center;padding:48px 56px;background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff}
.crm-login-left h2{font-size:32px;font-weight:800;margin-bottom:12px;line-height:1.2}
.crm-login-left p{color:#94a3b8;font-size:15px;line-height:1.6;max-width:420px}
.crm-login-right{display:flex;align-items:center;justify-content:center;padding:40px;background:#f8fafc}
.crm-login-box{background:#fff;border-radius:16px;padding:40px;width:100%;max-width:420px;box-shadow:0 20px 60px rgba(15,23,42,.08);border:1px solid #e2e8f0}
.crm-layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:#f1f5f9}
.crm-sidebar{background:#0f172a;color:#cbd5e1;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.crm-sidebar-head{padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.06)}
.crm-nav{flex:1;padding:16px 12px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}
.crm-nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;color:#94a3b8;font-size:14px;font-weight:500;text-decoration:none;transition:.15s}
.crm-nav a:hover{background:rgba(255,255,255,.06);color:#e2e8f0}
.crm-nav a.active{background:#2563eb;color:#fff;font-weight:600}
.crm-sidebar-foot{padding:16px 12px;border-top:1px solid rgba(255,255,255,.06)}
.crm-main{display:flex;flex-direction:column;min-width:0}
.crm-topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:10}
.crm-content{padding:24px 28px 40px;flex:1}

/* ── CRM Cards & Stats ── */
.crm-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.crm-stat{background:#fff;border-radius:14px;padding:20px;border:1px solid #e2e8f0;position:relative;overflow:hidden}
.crm-stat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.crm-stat-val{font-size:28px;font-weight:800;color:#0f172a;line-height:1}
.crm-stat-lbl{font-size:13px;color:#64748b;margin-top:6px;font-weight:500}
.crm-stat-bar{position:absolute;bottom:0;left:0;height:3px;border-radius:0 3px 0 0;opacity:.7}
.crm-card{background:#fff;border-radius:14px;border:1px solid #e2e8f0;overflow:hidden}
.crm-card-head{padding:18px 24px;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;justify-content:space-between}
.crm-card-head h3{font-size:15px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:8px;margin:0}
.crm-card-body{padding:20px 24px}
.crm-table{width:100%;border-collapse:collapse;font-size:13px}
.crm-table th{text-align:left;padding:12px 16px;background:#f8fafc;color:#64748b;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #e2e8f0}
.crm-table td{padding:14px 16px;border-bottom:1px solid #f1f5f9;color:#334155}
.crm-table tr:hover td{background:#fafbfc}

/* ── Pipeline bars ── */
.pipe-chart{display:flex;flex-direction:column;gap:10px}
.pipe-row{display:grid;grid-template-columns:100px 1fr 36px;align-items:center;gap:12px;font-size:12px}
.pipe-label{color:#64748b;font-weight:600;text-transform:capitalize}
.pipe-bar-wrap{height:8px;background:#f1f5f9;border-radius:99px;overflow:hidden}
.pipe-bar{height:100%;border-radius:99px;transition:width .4s ease}
.pipe-count{font-weight:700;color:#0f172a;text-align:right}

/* ── Kanban ── */
.crm-kanban{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;align-items:start}
.crm-kanban-col{background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0;min-height:120px}
.crm-kanban-head{padding:12px 14px;font-size:12px;font-weight:700;text-transform:capitalize;color:#475569;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}
.crm-kanban-count{background:#e2e8f0;color:#475569;font-size:11px;padding:2px 8px;border-radius:99px;font-weight:700}
.crm-kanban-card{background:#fff;margin:8px;padding:12px;border-radius:10px;border:1px solid #e2e8f0;font-size:13px;line-height:1.45}

/* ── User Account Dashboard ── */
.user-dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.user-stat{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px 20px;display:flex;align-items:flex-start;gap:14px}
.user-stat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.user-stat-val{font-size:24px;font-weight:800;color:var(--dark);line-height:1}
.user-stat-lbl{font-size:12px;color:var(--text-light);margin-top:4px;font-weight:500}
.profile-progress{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;margin-bottom:20px}
.profile-progress-bar{height:8px;background:var(--gray-100);border-radius:99px;overflow:hidden;margin-top:10px}
.profile-progress-fill{height:100%;background:linear-gradient(90deg,var(--blue),#6366f1);border-radius:99px;transition:width .4s}
.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500;color:var(--text);text-decoration:none;transition:.15s}
.sidebar-nav a:hover{background:var(--blue-light);color:var(--blue)}
.sidebar-nav a.active{background:var(--blue-light);color:var(--blue);font-weight:600}
.sidebar-nav a .icon{flex-shrink:0;opacity:.85}
.sidebar-nav a.logout-link{color:var(--red)}
.sidebar-nav a.logout-link:hover{background:#fef2f2}
.dash-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.dash-list-item{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border-light);gap:12px;font-size:14px}
.dash-list-item:last-child{border-bottom:none}
.empty-icon-wrap{width:56px;height:56px;border-radius:14px;background:var(--blue-light);color:var(--blue);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.fade-up{animation:fadeUp .35s ease both}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(max-width:1024px){
  .crm-stat-grid,.user-dash-stats{grid-template-columns:repeat(2,1fr)}
  .crm-layout{grid-template-columns:1fr}
  .crm-sidebar{position:fixed;z-index:100;height:100%;transform:translateX(-100%)}
  .dash-grid-2,.grid-2{grid-template-columns:1fr}
}
@media(max-width:640px){
  .crm-login{grid-template-columns:1fr}
  .crm-login-left{display:none}
  .crm-stat-grid,.user-dash-stats{grid-template-columns:1fr}
}
