/* Bipon Communication Center — shared styles */

:root {
  --color-primary: #146DFF;
  --color-primary-dark: #0F54D8;
  --color-primary-hover: #0F54D8;
  --color-navy: #0B1220;
  --color-sky: #60A5FA;
  --color-bg: #F7FAFC;
  --color-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #0B1220;
  --color-muted: #64748b;
  --color-light-bg: #f8fafc;
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Public shell — landing / login */
.public-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

/* Landing page layout */
.landing { max-width: 100%; margin: 0; padding: 0; }

/* Landing header */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
}
.brand,
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}
.brand:hover,
.brand-link:hover { text-decoration: none; color: var(--color-navy); }
.brand-text,
.brand-word { color: var(--color-navy); white-space: nowrap; }
.brand-tld,
.brand-word-app { color: var(--color-primary); }
.brand-word-main { color: var(--color-navy); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Internal nav header */
.top-nav .brand-link { font-size: 0.95rem; gap: 10px; }
.top-nav .brand-mark { width: 36px; height: 36px; }
/* Landing/login header — larger mark */
.landing-header .brand-link,
.landing-header .brand { font-size: 1.1rem; gap: 12px; }
.landing-header .brand-mark,
div[style*="text-align:center"] .brand-mark { width: 40px; height: 40px; }

/* Landing hero (two-column) */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}
.hero-copy h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.hero-copy .subtitle {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.6;
}

/* Product mockup card */
.hero-mockup { display: flex; justify-content: center; }
.mockup-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  width: 380px;
  overflow: hidden;
  font-size: 0.75rem;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e5e7eb;
}
.mockup-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 200px;
}
.mockup-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 12px 0;
}
.mockup-sidebar-item {
  padding: 6px 14px;
  color: #64748b;
  font-size: 0.75rem;
  cursor: default;
}
.mockup-sidebar-item.active {
  color: var(--color-primary);
  font-weight: 600;
  background: #eff6ff;
  border-right: 2px solid var(--color-primary);
}
.mockup-main { padding: 12px 14px; }
.mockup-msg {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}
.mockup-msg:last-child { border-bottom: none; }
.mockup-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: #e0e7ff; flex-shrink: 0;
}
.mockup-msg-text { flex: 1; }
.mockup-msg-name { font-weight: 600; color: #1a1a2e; font-size: 0.7rem; }
.mockup-msg-preview { color: #94a3b8; font-size: 0.65rem; margin-top: 2px; }
.mockup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e5e7eb;
}
.mockup-mini-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
}
.mockup-mini-card-title { font-weight: 600; color: #1a1a2e; font-size: 0.65rem; }
.mockup-mini-card-val { color: #2563eb; font-size: 1rem; font-weight: 700; }

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 24px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a2e;
}
.feature-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Landing sections */
.landing-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-alt { background: #f8fafc; max-width: 100%; }
.landing-section-alt .landing-section-inner { max-width: 1100px; margin: 0 auto; }
.landing-section-inner { max-width: 1100px; margin: 0 auto; }
.landing-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.landing-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.landing-section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.landing-feature {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.15s;
}
.landing-feature:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.landing-feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.landing-feature p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* Landing steps */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.landing-step {
  text-align: center;
  padding: 24px;
}
.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.landing-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.landing-step p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* Landing trust section */
.landing-trust {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 48px 32px;
}
.landing-trust-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.landing-trust h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.landing-trust p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* Landing footer */
.landing-footer {
  background: #0B1220;
  color: #94a3b8;
  padding: 40px 32px;
  text-align: center;
}
.landing-footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.landing-footer-inner .brand-link { color: #fff; justify-content: center; margin-bottom: 12px; }
.landing-footer-inner .brand-word-main { color: #fff; }
.landing-footer-inner p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.landing-footer-inner a {
  color: #60a5fa;
  text-decoration: none;
}
.landing-footer-inner a:hover { color: #fff; }

/* Help page */
.help-welcome {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.help-welcome p { font-size: 0.95rem; color: #475569; }
.help-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}
.help-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.help-content { font-size: 0.9rem; color: #475569; line-height: 1.7; }
.help-content p { margin-bottom: 12px; }
.help-content ul, .help-content ol { margin-bottom: 12px; padding-left: 24px; }
.help-content li { margin-bottom: 6px; }
.help-content strong { color: #1a1a2e; }
.help-content a { color: #2563eb; }
.help-contact {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.help-contact h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.help-contact p { font-size: 0.9rem; color: #475569; }
.help-contact a { color: #2563eb; font-weight: 500; }
.help-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.help-warning p { color: #92400e; font-size: 0.85rem; margin: 0; }
.help-warning strong { color: #78350f; }
.help-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: #2563eb;
  border: 1px solid #d1d5db;
}
.btn-secondary:hover { background: #f8fafc; text-decoration: none; }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a2e;
}
.card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* App shell — internal pages */
.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

/* Top navigation */
.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.top-nav a, .top-nav button {
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.top-nav a:hover, .top-nav button:hover { color: #2563eb; text-decoration: underline; }
.top-nav .brand-link { font-weight: 600; color: #1a1a2e; }

/* Page header */
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* Info card */
.info-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}
th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* Section blocks on cabinet/dashboard */
.section-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.section-block h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.section-block h2 a { color: #1a1a2e; }
.section-block h2 a:hover { color: #2563eb; }
.section-block p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Form card (login, create employee) */
.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  margin: 60px auto;
}
.form-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  margin-top: 12px;
}
.form-card label:first-of-type { margin-top: 0; }
.form-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 4px;
}
.form-card input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-card .btn { width: 100%; margin-top: 20px; text-align: center; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

/* Messages */
.msg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.msg-ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.note {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 32px 0 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .public-shell { padding: 48px 16px 24px; }
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 16px 40px;
    text-align: center;
  }
  .hero-copy h1 { font-size: 1.75rem; }
  .hero-mockup { justify-content: center; }
  .mockup-card { width: 100%; max-width: 320px; }
  .feature-strip { grid-template-columns: 1fr; padding: 0 16px 48px; }
  .landing-header { padding: 16px; }
  .landing-section { padding: 48px 16px; }
  .landing-section-header h2 { font-size: 1.5rem; }
  .landing-section-header p { font-size: 1rem; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-trust { padding: 32px 16px; }
  .landing-trust h3 { font-size: 1.1rem; }
  .landing-footer { padding: 32px 16px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 48px;
    text-align: center;
  }
  .hero-copy h1 { font-size: 2rem; }
  .hero-mockup { justify-content: center; }
  .feature-strip { padding: 0 24px 60px; }
  .landing-section { padding: 60px 24px; }
  .landing-features { grid-template-columns: repeat(2, 1fr); }
  .landing-trust { padding: 40px 24px; }
}
