/* ===== Navbar ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; transition: var(--transition); padding: 12px 0; }
.navbar-scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 6px 0; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-logo { height: 42px; width: auto; }
.navbar-brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--red-omani); line-height: 1.2; }
.brand-subtitle { font-size: 0.75rem; color: var(--text-secondary); }
.navbar-menu { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); white-space: nowrap; }
.nav-link:hover { background: var(--red-light); color: var(--red-omani); }
.nav-link.active { background: var(--red-omani); color: var(--white); }
.nav-icon { font-size: 1rem; }
.nav-auth { flex-shrink: 0; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red-omani); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; }
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 0.75rem; color: var(--text-muted); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger { display: block; width: 24px; height: 2px; background: var(--text-primary); position: relative; transition: var(--transition); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.hamburger.open { background: transparent; }
.hamburger.open::before { top: 0; transform: rotate(45deg); }
.hamburger.open::after { top: 0; transform: rotate(-45deg); }

/* ===== Footer ===== */
.footer { background: #0F172A; color: #CBD5E1; padding: 48px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { font-family: var(--font-heading); color: var(--white); font-size: 1rem; margin-bottom: 16px; padding-bottom: 8px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 2px; background: var(--red-omani); }
.footer-col p { font-size: 0.88rem; line-height: 1.8; color: #94A3B8; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.88rem; color: #94A3B8; }
.footer-col ul li a { color: #94A3B8; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red-omani); padding-right: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 0.82rem; color: #64748B; }
.footer-version { color: #475569; }

/* ===== Hero ===== */
.hero-section { position: relative; min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%); overflow: hidden; padding-top: 80px; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(204,0,0,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(3,105,161,0.1) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(245,158,11,0.08) 0%, transparent 50%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 48px; }
.hero-text { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 6px 20px; background: rgba(204,0,0,0.15); color: #FF6B6B; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; border: 1px solid rgba(204,0,0,0.2); }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.text-red { color: #FF4444; }
.hero-text p { font-size: 1.1rem; color: #94A3B8; line-height: 1.8; margin-bottom: 32px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; width: 100%; }
.stat-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; transition: var(--transition); }
.stat-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.stat-number { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; color: #94A3B8; }

/* ===== Quick Actions ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card { padding: 32px 24px; text-align: center; cursor: pointer; }
.quick-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 16px; }
.quick-icon-red { background: var(--red-light); }
.quick-icon-blue { background: var(--blue-light); }
.quick-icon-orange { background: var(--orange-light); }
.quick-icon-green { background: #DCFCE7; }
.quick-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.quick-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.quick-link { color: var(--red-omani); font-weight: 500; font-size: 0.9rem; }

/* ===== Section Alt ===== */
.section-alt { background: var(--white); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }

/* ===== Projects Mini ===== */
.projects-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-mini-card { padding: 24px; }
.project-mini-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.project-mini-header h3 { font-size: 1rem; flex: 1; }
.project-mini-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.project-mini-footer { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.project-dept { background: var(--blue-light); color: var(--blue-dark); padding: 2px 10px; border-radius: 12px; }
.project-team { text-align: left; }

/* ===== Timeline ===== */
.achievements-timeline { position: relative; padding-right: 32px; }
.achievements-timeline::before { content: ''; position: absolute; right: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--red-omani), var(--blue-primary), var(--orange-primary)); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; right: -26px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--red-omani); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red-omani); z-index: 1; }
.timeline-content { padding: 20px 24px; }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); }
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.timeline-impact { margin-top: 10px; padding: 8px 12px; background: var(--blue-light); border-radius: var(--radius-sm); font-size: 0.85rem; }
.impact-label { font-weight: 600; color: var(--blue-dark); }

/* ===== CTA ===== */
.section-cta { background: linear-gradient(135deg, #0F172A, #1E293B); }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); }
.cta-content h2 { font-size: 2rem; color: var(--white); margin-bottom: 8px; }
.cta-content p { color: #94A3B8; margin-bottom: 24px; font-size: 1.05rem; }
.cta-visual { font-size: 5rem; opacity: 0.8; }

/* ===== Surveys ===== */
.surveys-stats { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
.stat-mini-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px 32px; text-align: center; min-width: 140px; }
.stat-mini-num { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--red-omani); }
.stat-mini-card span:last-child { font-size: 0.85rem; color: var(--text-secondary); }
.surveys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.survey-card { padding: 24px; }
.survey-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.survey-date { font-size: 0.78rem; color: var(--text-muted); }
.survey-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.survey-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.survey-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.survey-progress-bar { flex: 1; height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.survey-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-primary), #38BDF8); border-radius: 3px; transition: width 1s ease; }
.survey-progress-text { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); min-width: 60px; text-align: left; }
.survey-card-footer { display: flex; justify-content: space-between; align-items: center; }
.survey-questions { font-size: 0.82rem; color: var(--text-muted); }
.survey-actions { display: flex; gap: 8px; }

/* ===== Rating ===== */
.question-block { margin-bottom: 20px; }
.question-block label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.92rem; }
.rating-options { display: flex; align-items: center; gap: 8px; }
.rating-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #E2E8F0; background: var(--white); font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.rating-btn:hover { border-color: var(--blue-primary); background: var(--blue-light); }
.rating-btn.active { border-color: var(--blue-primary); background: var(--blue-primary); color: var(--white); }
.rating-label { font-size: 0.82rem; color: var(--text-muted); margin-right: 8px; }

/* ===== Results ===== */
.result-overall { text-align: center; padding: 24px; background: linear-gradient(135deg, var(--red-light), var(--blue-light)); border-radius: var(--radius-md); margin-bottom: 24px; }
.result-big-score { display: block; font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--red-omani); }
.result-label { font-size: 0.9rem; color: var(--text-secondary); }
.result-categories { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.result-cat-header { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 4px; }
.cat-score { font-weight: 600; color: var(--blue-primary); }
.result-bar { height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.result-fill { height: 100%; background: linear-gradient(90deg, var(--blue-primary), #38BDF8); border-radius: 4px; transition: width 1s ease; }
.result-recommendations h4 { font-size: 1rem; margin-bottom: 12px; }
.result-recommendations ul { list-style: disc; padding-right: 20px; }
.result-recommendations ul li { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.6; }

/* ===== Projects ===== */
.filter-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--white); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.filter-tab:hover { border-color: var(--red-omani); color: var(--red-omani); }
.filter-tab.active { background: var(--red-omani); color: var(--white); border-color: var(--red-omani); }
.filter-count { background: rgba(255,255,255,0.2); padding: 1px 8px; border-radius: 10px; font-size: 0.75rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { padding: 24px; cursor: pointer; transition: var(--transition); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-dept-badge { font-size: 0.75rem; color: var(--blue-dark); background: var(--blue-light); padding: 2px 10px; border-radius: 12px; }
.project-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.project-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-progress { margin-bottom: 16px; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; }
.project-team-avatars { display: flex; }
.team-avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--red-omani); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; margin-left: -6px; border: 2px solid var(--white); }
.project-date { font-size: 0.78rem; color: var(--text-muted); }
.project-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.project-modal-section h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--red-omani); }
.project-modal-section ul { list-style: disc; padding-right: 20px; }
.project-modal-section ul li { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; }
.project-modal-info { background: var(--bg-light); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 500; color: var(--text-secondary); font-size: 0.88rem; }
.project-modal-results { background: var(--blue-light); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
.project-modal-results h4 { font-size: 0.95rem; color: var(--blue-dark); margin-bottom: 4px; }
.project-modal-results p { font-size: 0.88rem; color: var(--text-secondary); }

/* ===== Achievements ===== */
.achievements-stats-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.ach-stat-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px 40px; text-align: center; min-width: 140px; }
.ach-stat-num { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--red-omani); }
.ach-stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.ach-category-section { margin-bottom: 40px; }
.ach-category-title { font-size: 1.2rem; color: var(--red-omani); margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--red-light); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ach-card { padding: 24px; }
.ach-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-light); color: var(--red-omani); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.ach-card-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.ach-card h4 { font-size: 1rem; margin-bottom: 8px; }
.ach-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.ach-impact { font-size: 0.82rem; padding: 8px 12px; background: var(--blue-light); border-radius: var(--radius-sm); color: var(--blue-dark); }
.ach-impact-label { font-weight: 600; }

/* ===== Reports ===== */
.reports-login-notice { padding: 16px 24px; margin-bottom: 32px; background: var(--orange-light); border: 1px solid #FDE68A; }
.reports-login-notice p { font-size: 0.9rem; color: var(--orange-dark); }
.reports-login-notice a { color: var(--blue-primary); font-weight: 600; text-decoration: underline; }
.reports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-card { padding: 24px; }
.report-card-type { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.restricted-badge { font-size: 0.72rem; padding: 2px 8px; background: #FEE2E2; color: #991B1B; border-radius: 10px; font-weight: 500; }
.report-card h3 { font-size: 1rem; margin-bottom: 12px; line-height: 1.4; }
.report-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.report-card-footer { display: flex; justify-content: flex-end; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { padding: 32px 24px; text-align: center; }
.team-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--red-omani), #FF4444); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(204,0,0,0.2); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-title { display: block; font-size: 0.85rem; color: var(--red-omani); font-weight: 500; margin-bottom: 4px; }
.team-dept { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.team-expertise { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.expertise-tag { font-size: 0.75rem; padding: 4px 10px; background: var(--blue-light); color: var(--blue-dark); border-radius: 12px; }
.team-email { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Login ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0F172A, #1E293B); padding: 20px; }
.login-card { width: 100%; max-width: 420px; padding: 40px 32px; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { height: 60px; margin-bottom: 16px; }
.login-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
.login-header p { font-size: 0.88rem; color: var(--text-secondary); }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-error { padding: 12px 16px; background: #FEE2E2; color: #991B1B; border-radius: var(--radius-sm); font-size: 0.88rem; text-align: center; }
.login-btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.login-hint { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.login-hint p { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.hint-accounts { display: flex; flex-direction: column; gap: 4px; }
.hint-accounts span { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }

/* ===== Main Content ===== */
.main-content { min-height: 80vh; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .quick-grid, .projects-grid, .reports-grid, .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .navbar-menu { position: fixed; top: 60px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); transform: translateY(-120%); opacity: 0; transition: var(--transition); border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .navbar-menu.open { transform: translateY(0); opacity: 1; }
  .nav-links { flex-direction: column; width: 100%; gap: 2px; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-auth { width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
  .nav-user { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .projects-grid, .reports-grid, .ach-grid, .projects-mini-grid, .surveys-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card { flex-direction: column; text-align: center; padding: 32px 24px; }
  .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .project-modal-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .surveys-stats, .achievements-stats-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
