@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
  --navy: #0A1330;
  --blue: #2F5CF6;
  --blue-light: #4C8DFF;
  --teal: #14C79A;
  --grey-50: #F8F9FB;
  --grey-100: #EEF1F6;
  --grey-300: #D3D9E3;
  --grey-600: #5B6478;
  --grey-900: #1A2033;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11,23,57,0.08);
  --shadow-lg: 0 8px 30px rgba(11,23,57,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  background: white;
  border-bottom: 1px solid var(--grey-100);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 600; color: var(--grey-600); font-size: 15px; }
.nav-links a:hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--radius); font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: all 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: white; }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-outline { background: white; color: var(--navy); border: 1.5px solid var(--grey-300); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16265C 100%);
  color: white; padding: 90px 0 100px; text-align: center;
}
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero p { font-size: 19px; color: #C7D0E8; max-width: 600px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }
.hero-tags { margin-top: 40px; display: flex; gap: 28px; justify-content: center; font-size: 14px; color: #8E9BC4; }

/* Sections */
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--grey-600); font-size: 17px; margin-bottom: 50px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: white; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--grey-100);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--grey-100); margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 15px; }

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center;
  background: var(--grey-50); padding: 40px 20px;
}
.auth-card {
  background: white; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 44px; width: 100%; max-width: 440px;
}
.auth-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--grey-600); font-size: 15px; margin-bottom: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--grey-900); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-300); border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.role-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.role-option {
  border: 1.5px solid var(--grey-300); border-radius: 8px; padding: 14px 8px; text-align: center;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--grey-600); transition: all 0.15s;
}
.role-option.active { border-color: var(--blue); background: #EBF3FC; color: var(--blue); }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--grey-600); }
.auth-footer a { color: var(--blue); font-weight: 700; }
.error-msg { background: #FDEDED; color: #C0392B; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.success-msg { background: #E9F9F1; color: #14804A; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }

/* Footer */
.footer { background: var(--navy); color: #8E9BC4; padding: 40px 0; text-align: center; font-size: 14px; margin-top: 60px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .role-select { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Sidebar layout */
body.has-sidebar { padding-left: 250px; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px;
  background: var(--navy); color: white; display: flex; flex-direction: column;
  padding: 24px 18px; z-index: 200;
}
.sidebar-logo { padding: 0 8px 24px; }
.sidebar-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.sidebar-logo .logo-text { font-size: 22px; font-weight: 800; color: white; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-links a {
  padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  color: #C7D0E8; display: flex; align-items: center; gap: 10px; transition: all 0.15s;
}
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(255,255,255,0.08); color: white; }
.sidebar-links a.cta { background: var(--blue); color: white; margin-top: 8px; }
.sidebar-links a.cta:hover { background: var(--blue-light); }
.sidebar-user {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; margin-top: 16px;
}
.sidebar-user .name { font-weight: 700; font-size: 14px; color: white; }
.sidebar-user .role { font-size: 12px; color: #8E9BC4; text-transform: capitalize; margin-bottom: 10px; }
.sidebar-user .logout-link { font-size: 13px; color: #FF8080; font-weight: 600; }

@media (max-width: 768px) {
  body.has-sidebar { padding-left: 0; padding-bottom: 70px; }
  .sidebar {
    top: auto; bottom: 0; width: 100%; height: 64px; flex-direction: row;
    align-items: center; padding: 0 10px; overflow-x: auto;
  }
  .sidebar-logo, .sidebar-user .name, .sidebar-user .role { display: none; }
  .sidebar-links { flex-direction: row; flex: none; }
  .sidebar-user { border: none; margin: 0; padding: 0; display: flex; align-items: center; }
}

/* Legal pages */
.legal-wrap { max-width: 800px; margin: 0 auto; padding: 50px 24px 80px; }
.legal-wrap h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.legal-wrap .updated { color: var(--grey-600); font-size: 14px; margin-bottom: 30px; }
.legal-wrap h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--navy); }
.legal-wrap p, .legal-wrap li { font-size: 15px; line-height: 1.7; color: #2A314A; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-100); }
.legal-nav a { font-size: 13px; font-weight: 600; color: var(--blue); }

/* Cookie banner */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: white;
  padding: 18px 24px; display: none; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; z-index: 500; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#cookieBanner p { margin: 0; font-size: 14px; color: #C7D0E8; max-width: 600px; }
#cookieBanner a { color: white; text-decoration: underline; }
#cookieBanner .cookie-actions { display: flex; gap: 10px; }
#cookieBanner button { padding: 8px 18px; border-radius: 6px; border: none; font-weight: 700; font-size: 13px; cursor: pointer; }
#cookieAccept { background: var(--blue); color: white; }
#cookieReject { background: transparent; color: #C7D0E8; border: 1px solid rgba(255,255,255,0.3) !important; }

/* Make sidebar scrollable when content overflows */
.sidebar {
  overflow-y: auto;
}
.sidebar-links {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

/* Auto-hide sidebar scrollbar until hovered */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar:hover {
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}

/* Responsive improvements: forms, tables, cards across mobile/tablet/large screens */
@media (max-width: 768px) {
  .row-2, .row-3 { grid-template-columns: 1fr !important; }
  .form-wrap, .wrap, .legal-wrap { padding: 20px 16px !important; }
  .form-card, .profile-card, .milestone-card, .proposal-card, .project-card,
  .talent-card, .dispute-card, .contract-card, .blog-card, .v-card, .report-card {
    padding: 18px !important;
  }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .quick-grid, .stats-row, .kpi-row { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filters { flex-direction: column; align-items: stretch !important; }
  .filters select, .filters input { width: 100%; }
  .chat-box { height: 420px !important; }
  .talent-card { flex-direction: column; }
  .talent-card > div:last-child { text-align: left !important; margin-top: 8px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .form-wrap, .wrap { max-width: 90%; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1600px) {
  .container, .wrap, .form-wrap, .legal-wrap { max-width: 1300px; }
  .grid-3 { max-width: 1300px; margin: 0 auto; }
}

/* Better tap targets on touch devices */
@media (hover: none) {
  .btn, .action-btn, button { min-height: 40px; }
  input, select, textarea { min-height: 42px; }
}

body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, .logo, .logo-text { font-family: 'Sora', sans-serif; }

body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, .logo, .logo-text { font-family: 'Sora', sans-serif; }
