/* AI Job Risk Dashboard — Minimal Modern */

/* States */
.dash-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:360px;}
.dash-loading-spinner{width:32px;height:32px;border:3px solid #E2E8F0;border-top-color:#0D9488;border-radius:50%;animation:dspin .7s linear infinite;}
.dash-loading p{margin-top:14px;font-size:.85rem;color:#64748B;}
@keyframes dspin{to{transform:rotate(360deg);}}
.dash-error{display:none;flex-direction:column;align-items:center;justify-content:center;min-height:360px;text-align:center;padding:40px;}
.dash-error i{font-size:2.5rem;color:#DC2626;margin-bottom:14px;}
.dash-error h2{font-size:1.1rem;margin-bottom:6px;}
.dash-error p{font-size:.85rem;color:#64748B;margin-bottom:20px;}

/* Container */
.dash{max-width:880px;margin:0 auto;}

/* Tool header */
.dash-tool-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;margin-bottom:16px;background:#0F172A;border-radius:10px;}
.dash-tool-header-left{display:flex;align-items:center;gap:12px;}
.dash-tool-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:rgba(13,148,136,.15);border-radius:8px;color:#0D9488;font-size:.9rem;}
.dash-tool-name{font-size:.95rem;font-weight:700;color:#F8FAFC;letter-spacing:-.01em;}
.dash-tool-link{font-size:.75rem;font-weight:600;color:#94A3B8;text-decoration:none;display:flex;align-items:center;gap:5px;transition:color .15s;}
.dash-tool-link:hover{color:#0D9488;}
.dash-tool-link i{font-size:.65rem;}

/* Profile bar */
.dash-profile{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid #E2E8F0;margin-bottom:16px;}
.dash-profile-info{display:flex;align-items:center;gap:14px;}
.dash-profile-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800;}
.dash-profile-name{font-size:1.1rem;font-weight:800;color:#0F172A;margin:0 0 2px;}
.dash-profile-meta{font-size:.78rem;color:#64748B;margin:0;}
.dash-profile-score{display:flex;align-items:center;gap:12px;}
.dash-profile-score canvas{width:80px;height:80px;}
.dash-profile-score-text{text-align:right;}
.dash-profile-score-num{font-size:1rem;font-weight:800;color:#0F172A;display:block;}
.dash-profile-score-label{font-size:.7rem;font-weight:700;}

/* Toolbar */
.dash-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px;flex-wrap:wrap;}
.dash-tabs{display:flex;gap:2px;background:#F1F5F9;border-radius:8px;padding:3px;}
.dash-tab{padding:8px 16px;border:none;background:none;border-radius:6px;font-size:.8rem;font-weight:600;color:#64748B;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:6px;}
.dash-tab i{font-size:.7rem;}
.dash-tab.active{background:#fff;color:#0F172A;box-shadow:0 1px 3px rgba(0,0,0,.06);}
.dash-tab:hover:not(.active){color:#0F172A;}
.dash-actions{display:flex;gap:6px;}
.dash-btn-ghost{padding:7px 12px;background:none;border:1px solid #E2E8F0;border-radius:6px;font-size:.75rem;font-weight:600;color:#64748B;cursor:pointer;display:inline-flex;align-items:center;gap:5px;transition:all .15s;}
.dash-btn-ghost:hover{border-color:#0D9488;color:#0D9488;}
.dash-btn-ghost:disabled{opacity:.4;cursor:not-allowed;}
.dash-btn-primary{padding:9px 18px;background:#0D9488;color:#fff;border:none;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-decoration:none;}
.dash-btn-primary:hover{background:#0B7C72;}

/* Panels */
.dash-panel{display:none;}
.dash-panel.active{display:block;}

/* Summary */
.dash-summary{font-size:.9rem;color:#475569;line-height:1.7;margin:0 0 24px;padding:16px 20px;background:#F8FAFC;border-radius:8px;border-left:3px solid #0D9488;}

/* Charts */
.dash-charts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:28px;}
.dash-chart-card{background:#fff;border:1px solid #E2E8F0;border-radius:10px;padding:18px;}
.dash-chart-label{font-size:.65rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94A3B8;display:block;margin-bottom:12px;}
.dash-chart-full{grid-column:1/-1;}

/* Sections */
.dash-section{margin-bottom:24px;}
.dash-section-title{font-size:.88rem;font-weight:700;color:#0F172A;margin:0 0 12px;display:flex;align-items:center;gap:7px;}
.dash-dot{width:8px;height:8px;border-radius:50%;display:inline-block;}
.dash-dot-red{background:#DC2626;}
.dash-dot-green{background:#0D9488;}
.dash-dot-amber{background:#D97706;}
.dash-dot-blue{background:#2563EB;}

/* Cards */
.dash-cards{display:flex;flex-direction:column;gap:8px;}
.dash-card{padding:14px 16px;background:#fff;border:1px solid #E2E8F0;border-radius:8px;}
.dash-card-red{border-left:3px solid #DC2626;}
.dash-card-green{border-left:3px solid #0D9488;}
.dash-card-amber{border-left:3px solid #D97706;}
.dash-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;}
.dash-card-title{font-size:.82rem;font-weight:600;color:#0F172A;}
.dash-card-sub{font-size:.75rem;color:#64748B;margin-top:6px;line-height:1.4;}
.dash-pill{font-size:.6rem;font-weight:700;padding:2px 8px;border-radius:8px;}
.dash-pill-red{background:#FEE2E2;color:#DC2626;}
.dash-pill-green{background:#CCFBF1;color:#0D9488;}
.dash-pill-amber{background:#FEF3C7;color:#92400E;}
.dash-bar{width:100%;height:4px;background:#F1F5F9;border-radius:2px;overflow:hidden;margin-top:6px;}
.dash-bar-fill{height:4px;border-radius:2px;transition:width .6s ease;}

/* Skills */
.dash-skills-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.dash-skill-card{padding:12px 14px;background:#EFF6FF;border:1px solid #BFDBFE;border-radius:8px;font-size:.8rem;font-weight:600;color:#1E40AF;}

/* Timeline */
.dash-timeline{display:flex;flex-direction:column;gap:10px;}
.dash-week{padding:16px 18px;background:#fff;border:1px solid #E2E8F0;border-radius:8px;border-left:4px solid #0D9488;}
.dash-week-num{display:inline-block;padding:2px 8px;border-radius:10px;font-size:.6rem;font-weight:700;color:#fff;margin-bottom:6px;}
.dash-week h4{font-size:.85rem;font-weight:700;color:#0F172A;margin:0 0 4px;}
.dash-week-text{font-size:.82rem;color:#64748B;line-height:1.55;margin:0;}
.dash-week-output{font-size:.75rem;color:#94A3B8;margin-top:6px;}

/* Inputs */
.dash-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.dash-input-card{padding:14px 16px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;}
.dash-input-label{font-size:.6rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94A3B8;display:block;margin-bottom:4px;}
.dash-input-value{font-size:.82rem;color:#0F172A;line-height:1.5;margin:0;}

/* Advice */
.dash-advice{padding:20px;background:#0F172A;border-radius:10px;margin:24px 0;}
.dash-advice p{font-size:.88rem;font-weight:600;color:#F8FAFC;line-height:1.6;margin:0;}

/* Modal */
.dash-modal{position:fixed;inset:0;background:rgba(15,23,42,.4);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;backdrop-filter:blur(2px);}
.dash-modal-box{background:#fff;border-radius:12px;padding:24px;max-width:360px;width:100%;}
.dash-modal-box h3{font-size:1rem;font-weight:700;margin:0 0 6px;}
.dash-modal-box p{font-size:.82rem;color:#64748B;line-height:1.5;margin:0 0 16px;}
.dash-modal-actions{display:flex;gap:8px;justify-content:flex-end;}
.dash-modal-close{margin-top:14px;background:none;border:none;font-size:.8rem;font-weight:600;color:#64748B;cursor:pointer;}
.dash-share-note{font-size:.78rem;color:#64748B;margin-bottom:12px;}
.dash-share-actions{display:flex;flex-direction:column;gap:8px;}
.dash-btn-action{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;font-size:.8rem;font-weight:600;color:#0F172A;cursor:pointer;text-decoration:none;transition:border-color .15s;}
.dash-btn-action:hover{border-color:#0D9488;color:#0D9488;}
.dash-btn-action i{color:#0D9488;width:16px;}

/* Toast */
.dash-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:10px 20px;background:#0F172A;color:#fff;border-radius:6px;font-size:.78rem;font-weight:600;z-index:1001;}

/* Print */
@media print{.dash-toolbar,.dash-modal,.dash-toast,.dash-profile-score{display:none!important;}.dash-panel{display:block!important;}.dash{max-width:100%;}}

/* Mobile */
@media(max-width:768px){
  .dash-profile{flex-direction:column;align-items:flex-start;gap:14px;}
  .dash-toolbar{flex-direction:column;align-items:stretch;}
  .dash-charts{grid-template-columns:1fr;}
  .dash-skills-grid{grid-template-columns:1fr;}
  .dash-input-grid{grid-template-columns:1fr;}
  .dash-actions{justify-content:flex-end;}
}


/* Edit form */
.dash-edit-form .dash-input-grid{margin-bottom:16px;}
.dash-edit-input{width:100%;padding:9px 12px;border:1px solid #E2E8F0;border-radius:6px;font-size:.82rem;font-family:inherit;color:#0F172A;background:#fff;transition:border-color .15s;box-sizing:border-box;}
.dash-edit-input:focus{border-color:#0D9488;outline:none;box-shadow:0 0 0 2px rgba(13,148,136,.08);}
textarea.dash-edit-input{resize:vertical;min-height:60px;}
.dash-edit-actions{display:flex;gap:8px;justify-content:flex-end;}
