/* Review.Adepa — App Styles */

:root {
  --app-primary: #03045e;
  --app-primary-soft: #e7e9f5;
  --app-primary-border: #2e3275;
  --app-secondary: #4c507f;
  --app-secondary-border: #3e4270;
  --app-primary-hover: var(--app-primary-border);
  --app-secondary-hover: var(--app-secondary-border);
}

/* Override Bootstrap defaults with app palette */
.bg-primary {
  background-color: var(--app-primary) !important;
}

.text-primary {
  color: var(--app-primary) !important;
}

.text-secondary {
  color: var(--app-secondary) !important;
}

.btn-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--app-primary-hover) !important;
  border-color: var(--app-primary-hover) !important;
}

.btn-outline-primary {
  color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff !important;
  background-color: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
}

.btn-secondary {
  background-color: var(--app-secondary);
  border-color: var(--app-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: var(--app-secondary-hover) !important;
  border-color: var(--app-secondary-hover) !important;
}

.btn-outline-secondary {
  color: var(--app-secondary);
  border-color: var(--app-secondary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  color: #fff !important;
  background-color: var(--app-secondary) !important;
  border-color: var(--app-secondary) !important;
}

body {
  font-size: .9375rem;
}

/* ---- Sidebar (shared) ---- */
.sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  background-color: #f8f9fc;
}

/* Author sidebar */
.sidebar .nav-link,
.sidebar .sidebar-link {
  color: #4a4e6e;
  border-radius: .375rem;
  padding: .42rem .75rem;
  transition: background .15s, color .15s;
}
.sidebar .nav-link:hover,
.sidebar .sidebar-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}
.sidebar .nav-link.active,
.sidebar .sidebar-link.active {
  background: var(--app-primary-soft);
  color: var(--app-primary) !important;
  font-weight: 600;
}

/* Admin sidebar — same light style, no dark bg */
.sidebar-admin {
  background-color: #f8f9fc;
  border-right: 1px solid #e3e6f0;
}
.sidebar-admin .sidebar-link {
  color: #4a4e6e;
  border-radius: .375rem;
  padding: .42rem .75rem;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-admin .sidebar-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}
.sidebar-admin .sidebar-link.active {
  background: var(--app-primary-soft);
  color: var(--app-primary) !important;
  font-weight: 600;
}

/* Section labels inside sidebars */
.sidebar-section-label {
  font-size: .7rem;
  letter-spacing: .08em;
  color: #9599bb;
}

/* New Submission button link inside sidebar */
.sidebar .btn-link.nav-link {
  text-decoration: none;
}

/* Wizard steps */
.submission-wizard-steps {
  margin-bottom: 1.5rem;
}
.wizard-step .step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.wizard-step.active .step-circle {
  background: var(--app-primary);
  color: #fff;
}
.wizard-step.done .step-circle {
  background: var(--app-primary-border);
  color: #fff;
}
.wizard-step .step-label {
  font-size: .82rem;
  color: #6c757d;
}
.wizard-step.active .step-label {
  color: var(--app-primary);
  font-weight: 600;
}
.wizard-step.done .step-label {
  color: var(--app-primary-border);
}
.step-connector {
  height: 2px;
  background: #dee2e6;
}

/* Cards */
.card {
  border-radius: .6rem;
}

/* Tables */
th {
  font-weight: 600;
}

/* App shell */
body.app-body {
  background: #f0f2f8;
}
.app-shell {
  align-items: stretch;
}
/* Fill remaining horizontal space beside the sidebar (avoids a large empty band on wide screens). */
.app-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.app-main-admin {
  /* Kept for clarity / future admin-only tweaks; same width behavior as author main. */
  max-width: none;
  width: 100%;
}

/* Auth page full-height background only on body */
body.bg-light {
  min-height: 100vh;
}

/* Status badge tweaks */
.badge {
  font-weight: 500;
  letter-spacing: .02em;
}

/* Table row hover in app */
.table-hover > tbody > tr:hover > * {
  background-color: #f0f3ff;
}

/* Stat cards */
.stat-card {
  border-radius: .6rem;
  transition: box-shadow .15s;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(3,4,94,.1) !important;
}
.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,4,94,.07);
  border-radius: .5rem;
  flex-shrink: 0;
}

/* Navbar brand letter spacing */
.navbar-brand {
  letter-spacing: -.01em;
}

/* Admin settings text tabs */
.settings-tabs {
  gap: 1.25rem;
  border-bottom: 1px solid #dee2e6;
}
.settings-tabs .nav-link {
  padding: 0.25rem 0;
  color: #6c757d;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-weight: 500;
}
.settings-tabs .nav-link:hover {
  color: var(--app-primary);
}
.settings-tabs .nav-link.active {
  color: var(--app-primary);
  border-bottom-color: var(--app-primary);
}
