:root {
  --primary: #0d6efd;
  --secondary: #198754;
  --light: #f4f8fb;
  --dark: #1f2937;
  --border: #dce7f2;
  --text: #334155;
  --sidebar-w: 260px;
  --header-h: 64px;
}

html { font-size: 16px; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, #dbeafe 0%, transparent 35%),
    radial-gradient(circle at bottom left, #dcfce7 0%, transparent 35%),
    #f4f8fb;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
}

a { text-decoration: none; }

.navbar-public {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  height: 100%;
  transition: .3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,.08);
}

.feature-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.login-card, .auth-card {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,.1);
}

.form-control, .form-select {
  border-radius: 12px;
  padding: .75rem 1rem;
}

.form-control:focus, .form-select:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

.btn-login, .btn-primary-soft {
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: .75rem 1rem;
}

.btn-login:hover { background: #0b5ed7; color: #fff; }

.btn-register {
  border-radius: 12px;
  padding: .75rem;
  font-weight: 600;
}

footer.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: #64748b;
}

.accbar {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 1050;
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.accbar button {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
}

.accbar button:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

body.hc { filter: contrast(125%); }

/* App shell */
.app-shell { display: flex; min-height: 100vh; background: #f4f8fb; }

.app-sidebar {
  width: var(--sidebar-w);
  background: #0f172a;
  color: #cbd5e1;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform .25s ease;
}

.app-sidebar .brand {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
}

.app-sidebar .nav-link {
  color: #94a3b8;
  border-radius: 10px;
  margin: 2px 10px;
  padding: .65rem .9rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
  background: rgba(13,110,253,.18);
  color: #fff;
}

.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-content { padding: 1.25rem; flex: 1; }

.app-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: .85rem 1.25rem;
  color: #64748b;
  font-size: .875rem;
}

.panel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.03);
}

.news-banner {
  background: linear-gradient(90deg, #eff6ff, #ecfdf5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1rem;
}

.news-banner.important {
  border-left: 4px solid #dc3545;
}

.notif-item {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.notif-item:last-child { border-bottom: 0; }

.notif-item.unread { background: #f8fbff; }

.sidebar-toggle {
  display: none;
  border: none;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.table thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  background: #f8fafc;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #ef4444;
}

@media (max-width: 991.98px) {
  .hero-title { font-size: 2.1rem; }
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 1035;
  }
  .sidebar-backdrop.show { display: block; }
}

.comp-poster {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.competition-card.cat-reels { border-top: 4px solid #f97316; }
.competition-card.cat-jingle { border-top: 4px solid #2563eb; }
.competition-card.cat-poster { border-top: 4px solid #16a34a; }
.competition-card.cat-other { border-top: 4px solid #0d6efd; }

.comp-rules {
  white-space: pre-wrap;
  font-size: .95rem;
  line-height: 1.65;
}
