/* B.Com Exam Hub - Main Styles */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --primary:#1e3a5f;--secondary:#7c3aed;--accent:#f59e0b;
  --success:#16a34a;--danger:#dc2626;--light:#f8fafc;
  --dark:#0f172a;--border:#e2e8f0;--shadow:0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:0 10px 25px rgba(0,0,0,.12);
}
body{font-family:'Segoe UI',system-ui,sans-serif;color:#1e293b;background:var(--light)}
a{text-decoration:none;color:inherit}

/* Hero */
.hero{position:relative;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;padding:5rem 2rem 4rem;text-align:center;overflow:hidden}
.hero-overlay{position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-content{position:relative;max-width:900px;margin:0 auto}
.hero h1{font-size:2.8rem;margin-bottom:.75rem;text-shadow:0 2px 8px rgba(0,0,0,.2)}
.version-badge{display:inline-block;background:rgba(255,255,255,0.25);color:#fff;padding:.5rem 1rem;border-radius:24px;font-size:.8rem;font-weight:600;margin-left:.75rem;border:1px solid rgba(255,255,255,0.4);backdrop-filter:blur(10px);vertical-align:middle}
.hero-subtitle{font-size:1.15rem;opacity:.9;margin-bottom:2rem}
.hero-stats{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}
.hero-stat{background:rgba(255,255,255,.15);backdrop-filter:blur(4px);padding:1rem 1.5rem;border-radius:12px;min-width:100px;text-align:center}
.hero-stat span{display:block;font-size:1.6rem;font-weight:700}

/* Container */
.container{max-width:1200px;margin:0 auto;padding:2rem}

/* About */
.about-section{margin-bottom:3rem}
.about-section h2{font-size:1.5rem;margin-bottom:1.5rem;color:var(--primary)}
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}
.about-card{background:#fff;padding:1.75rem;border-radius:12px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.about-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.about-icon{font-size:2rem;margin-bottom:.75rem}
.about-card h3{font-size:1.05rem;margin-bottom:.5rem;color:var(--primary)}
.about-card p{color:#64748b;font-size:.9rem;line-height:1.6}

/* Pipeline */
.pipeline-section{margin-bottom:3rem}
.pipeline-section h2{font-size:1.5rem;margin-bottom:1.5rem;color:var(--primary)}
.pipeline{display:flex;align-items:flex-start;gap:.5rem;flex-wrap:wrap;justify-content:center}
.pipeline-step{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:var(--shadow);max-width:220px;text-align:center;position:relative}
.step-num{width:36px;height:36px;background:var(--primary);color:#fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:.75rem}
.pipeline-step h4{font-size:.95rem;margin-bottom:.4rem;color:var(--dark)}
.pipeline-step p{font-size:.82rem;color:#64748b;line-height:1.5}
.step-tag{display:inline-block;margin-top:.75rem;padding:.25rem .7rem;border-radius:20px;font-size:.75rem;font-weight:600;color:#fff}
.step-tag.python{background:#3b82f6}
.step-tag.ai{background:var(--secondary)}
.step-tag.html{background:var(--accent);color:var(--dark)}
.pipeline-arrow{font-size:1.5rem;color:var(--primary);align-self:center;font-weight:700}

/* Semester */
.semester-section{margin-bottom:3rem}
.semester-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}
.semester-header h2{font-size:1.5rem;color:var(--primary)}
.semester-badge{padding:.35rem .9rem;border-radius:20px;font-size:.8rem;font-weight:600;color:#fff}
.semester-badge.ready{background:var(--success)}
.semester-badge.upcoming{background:#94a3b8}

/* Subject Cards */
.subject-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.25rem}
.subject-card{background:#fff;padding:1.5rem;border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;text-align:center;transition:all .25s;border:2px solid transparent;cursor:pointer}
.subject-card:hover:not(.locked){transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.subject-card.ucz:hover{border-color:#3b82f6}
.subject-card.ueb:hover{border-color:#10b981}
.subject-card.ulj:hover{border-color:#f59e0b}
.subject-card.urz:hover{border-color:#ef4444}
.subject-card.locked{opacity:.55;cursor:default}
.subject-icon{font-size:2.2rem;margin-bottom:.5rem}
.subject-code{font-size:1.3rem;font-weight:700;color:var(--primary);margin-bottom:.25rem}
.subject-name{font-size:.88rem;color:#475569;margin-bottom:.75rem;line-height:1.4}
.subject-meta{display:flex;gap:.75rem;font-size:.75rem;color:#94a3b8;margin-bottom:.75rem;flex-wrap:wrap;justify-content:center}
.subject-status{padding:.35rem 1rem;border-radius:20px;font-size:.8rem;font-weight:600}
.subject-status.ready{background:var(--success);color:#fff}
.subject-status.locked{background:#f1f5f9;color:#94a3b8}

/* Report Section */
.report-section{margin-bottom:3rem}
.report-section h2{font-size:1.5rem;margin-bottom:.5rem;color:var(--primary)}
.report-subtitle{color:#64748b;margin-bottom:1.5rem;font-size:.9rem}
.report-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}
.report-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:var(--shadow);text-align:center}
.report-card h4{color:var(--primary);margin-bottom:.5rem;font-size:.9rem}
.report-card .big-num{font-size:2rem;font-weight:700;color:var(--secondary)}
.report-card p{color:#64748b;font-size:.85rem}
.report-card code{background:#f1f5f9;padding:.15rem .4rem;border-radius:4px;font-size:.8rem}
.report-details{background:#fff;border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.report-details table{width:100%;border-collapse:collapse;font-size:.85rem}
.report-details th{background:var(--primary);color:#fff;padding:.75rem;text-align:left}
.report-details td{padding:.75rem;border-bottom:1px solid var(--border)}
.report-details tr:hover{background:#f8fafc}

/* Analytics Sections */
.stats-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:2rem}
.stat-card{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;padding:1.5rem;border-radius:12px;text-align:center;box-shadow:var(--shadow-lg)}
.stat-card:nth-child(2){background:linear-gradient(135deg,#f093fb 0%,#f5576c 100%)}
.stat-card:nth-child(3){background:linear-gradient(135deg,#4facfe 0%,#00f2fe 100%)}
.stat-card:nth-child(4){background:linear-gradient(135deg,#43e97b 0%,#38f9d7 100%)}
.stat-label{font-size:.85rem;opacity:.9;margin-bottom:.5rem;text-transform:uppercase}
.stat-value{font-size:1.8rem;font-weight:700}

.analysis-section,.predictions-section,.topics-section{margin-bottom:2.5rem}
.analysis-section h3,.predictions-section h3,.topics-section h3{font-size:1.2rem;margin-bottom:1.5rem;color:var(--primary)}

.analysis-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}
.analysis-card{background:#fff;border-radius:12px;box-shadow:var(--shadow);overflow:hidden;transition:transform .2s,box-shadow .2s}
.analysis-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.analysis-header{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;padding:1rem;display:flex;justify-content:space-between;align-items:center}
.analysis-header h4{margin:0;font-size:1rem}
.analysis-badge{background:rgba(255,255,255,.2);padding:.25rem .75rem;border-radius:20px;font-size:.8rem;font-weight:600}
.analysis-content{padding:1.5rem}
.analysis-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.9rem}
.analysis-row:last-child{border-bottom:none}
.analysis-row .label{color:#64748b;font-weight:500}
.analysis-row .value{color:var(--primary);font-weight:600}
.analysis-notes{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border);font-size:.85rem;color:#64748b}

.prediction-card{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:2rem;border-left:4px solid var(--accent)}
.prediction-header{margin-bottom:1.5rem}
.prediction-header h4{color:var(--primary);margin-bottom:.25rem}
.prediction-subtitle{color:#64748b;font-size:.85rem;margin:0}
.prediction-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}
.prediction-topic{background:linear-gradient(135deg,#ffecd2 0%,#fcb69f 100%);padding:1rem;border-radius:8px;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.topic-name{font-weight:600;color:var(--dark);flex:1}
.confidence-high{background:var(--success);color:#fff;padding:.25rem .6rem;border-radius:4px;font-size:.75rem;font-weight:600;white-space:nowrap}
.prediction-note{background:#f0fdf4;color:#166534;padding:1rem;border-radius:8px;font-size:.85rem;text-align:center}

.topics-breakdown{display:flex;flex-direction:column;gap:1rem}
.topic-bar{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:var(--shadow);transition:box-shadow .2s}
.topic-bar:hover{box-shadow:var(--shadow-lg)}
.topic-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}
.topic-name{font-weight:600;color:var(--primary)}
.importance-badge{padding:.25rem .75rem;border-radius:4px;font-size:.8rem;font-weight:600}
.importance-badge.critical{background:#fee2e2;color:#991b1b}
.importance-badge.high{background:#fef3c7;color:#92400e}
.importance-badge.medium{background:#dbeafe;color:#1e40af}
.progress-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--secondary),var(--accent));border-radius:3px;transition:width .3s ease}

.no-data{text-align:center;color:#94a3b8;padding:2rem;font-style:italic}
.loading-placeholder{text-align:center;color:#94a3b8;padding:2rem}

/* Footer */
.footer{background:var(--dark);color:#cbd5e1;text-align:center;padding:2.5rem 2rem;margin-top:2rem}
.footer-content p{margin-bottom:.4rem}
.footer-small{font-size:.8rem;opacity:.7}

/* Responsive */
@media(max-width:768px){
  .hero h1{font-size:1.8rem}
  .hero-stats{gap:1rem}
  .pipeline{flex-direction:column;align-items:center}
  .pipeline-arrow{transform:rotate(90deg)}
  .subject-grid{grid-template-columns:repeat(2,1fr)}
}

/* Generation Status */
.status-summary{background:#fff;padding:2rem;border-radius:12px;box-shadow:var(--shadow);border-left:5px solid var(--success)}
.status-summary h3{color:var(--success);font-size:1.1rem;margin-bottom:1.25rem}
.status-details{display:grid;gap:.75rem}
.status-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:var(--light);border-radius:8px}
.status-label{color:#64748b;font-weight:600;font-size:.9rem}
.status-value{color:var(--primary);font-weight:700;font-size:1rem}

.no-data{text-align:center;padding:2rem;color:#94a3b8;font-style:italic}

/* Analysis Cards */
.analysis-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}
.analysis-card{background:#fff;border-left:5px solid var(--secondary);padding:1.5rem;border-radius:12px;box-shadow:var(--shadow);transition:transform .2s}
.analysis-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.analysis-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.analysis-header h4{color:var(--primary);font-size:1rem;margin:0}
.analysis-badge{background:var(--accent);color:var(--dark);padding:.3rem .6rem;border-radius:6px;font-size:.75rem;font-weight:700}
.analysis-content{display:grid;gap:.5rem}
.analysis-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.85rem}
.analysis-row:last-child{border-bottom:none}
.analysis-row .label{color:#64748b;font-weight:500}
.analysis-row .value{color:var(--primary);font-weight:700}
.analysis-notes{padding:.75rem;background:var(--light);border-radius:8px;margin-top:.5rem;font-size:.85rem;color:#475569;line-height:1.5}

/* Predictions Cards */
.predictions-cards{display:grid;grid-template-columns:1fr;gap:1.5rem}
.prediction-card{background:#fff;padding:2rem;border-radius:12px;box-shadow:var(--shadow)}
.prediction-header{margin-bottom:1.5rem}
.prediction-header h4{font-size:1.2rem;color:var(--primary);margin-bottom:.25rem}
.prediction-subtitle{color:#64748b;font-size:.9rem;margin-bottom:1rem}
.prediction-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-bottom:1.5rem}
.prediction-topic{background:var(--light);padding:1rem;border-radius:8px;border-left:4px solid var(--secondary);display:flex;justify-content:space-between;align-items:center}
.topic-name{color:var(--primary);font-weight:600;font-size:.95rem}
.confidence-high{background:#dcfce7;color:#166534;padding:.25rem .6rem;border-radius:4px;font-size:.75rem;font-weight:700}
.prediction-note{background:#f0f9ff;padding:1rem;border-radius:8px;border-left:4px solid #3b82f6;color:#1e40af;font-size:.85rem}

/* Topics Importance Breakdown */
.topics-breakdown{display:grid;gap:1rem}
.topic-bar{background:#fff;padding:1.25rem;border-radius:12px;box-shadow:var(--shadow)}
.topic-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}
.topic-name{color:var(--primary);font-weight:600;font-size:.95rem}
.importance-badge{padding:.25rem .6rem;border-radius:6px;font-size:.75rem;font-weight:700}
.importance-badge.critical{background:#fee2e2;color:#991b1b}
.importance-badge.high{background:#fed7aa;color:#92400e}
.importance-badge.medium{background:#fef3c7;color:#78350f}
.progress-bar{height:12px;background:var(--border);border-radius:6px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--secondary),var(--accent));border-radius:6px}

/* Exam Tools Section */
.exam-tools-section{margin-bottom:3rem;padding:2rem;background:linear-gradient(135deg,rgba(124,58,237,0.08),rgba(245,158,11,0.08));border-radius:16px;border:2px solid var(--border)}
.section-header{text-align:center;margin-bottom:2rem}
.section-header h2{font-size:1.5rem;color:var(--primary);margin-bottom:.5rem}
.section-header p{color:#64748b;font-size:.95rem}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}
.tool-card{display:block;background:#fff;border-radius:12px;padding:2rem;box-shadow:var(--shadow);transition:all .3s ease;border:2px solid transparent;position:relative;overflow:hidden}
.tool-card::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,var(--primary),var(--secondary));opacity:0;transition:opacity .3s}
.tool-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--secondary)}
.tool-card:hover .tool-icon{transform:scale(1.15) rotate(5deg)}
.tool-icon{font-size:3rem;margin-bottom:1rem;display:block;transition:transform .3s;z-index:1;position:relative}
.tool-title{font-size:1.25rem;font-weight:700;color:var(--primary);margin-bottom:.5rem;z-index:1;position:relative}
.tool-description{color:#64748b;font-size:.9rem;line-height:1.6;margin-bottom:1rem;z-index:1;position:relative}
.tool-features{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem;z-index:1;position:relative}
.tool-features span{font-size:.85rem;color:#16a34a;font-weight:600}
.tool-cta{color:var(--secondary);font-weight:700;font-size:.95rem;z-index:1;position:relative}
.tool-card:hover .tool-cta{color:var(--primary)}

@media(max-width:768px){
  .analysis-cards{grid-template-columns:1fr}
  .prediction-list{grid-template-columns:1fr}
  .status-row{flex-direction:column;align-items:flex-start;gap:.5rem}
  .tools-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .hero{padding:3rem 1rem 2.5rem}
  .hero h1{font-size:1.5rem}
  .subject-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
}
