:root {
  --uni-surface: #ffffff;
  --uni-border: #e8ecf2;
  --uni-topbar-bg: #ffffff;
  --uni-topbar-text: #334155;
  --uni-accent: #3b82f6;
}

body { background: #f4f7fb; }

.wrapper {
  min-height: 100vh;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.content-page {
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100vh - 72px);
  padding-top: 0.5rem;
  left: 0 !important;
  right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html body .wrapper .content-page { margin-left: 0 !important; }
html body .wrapper .content-page .container,
html body .wrapper .content-page .container-fluid {
  max-width: 100% !important;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(4px);
  background: var(--uni-topbar-bg);
  border-bottom: 1px solid var(--uni-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  margin-left: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

.topbar-menu {
  min-height: 68px;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-link {
  color: var(--uni-topbar-text) !important;
  text-decoration: none !important;
  border-radius: 8px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar-link.active-link,
.dropdown-item.active-link {
  color: var(--uni-accent) !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
}

.uni-brand {
  color: var(--uni-topbar-text) !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-right: 0.5rem;
}

.nav-user .topbar-link {
  display: flex;
  align-items: center;
}

/* Uklanja sve eventualne ostatke sidebara iz UBold default layout-a */
.sidenav-menu,
.leftbar-tab-menu,
.left-side-menu { display: none !important; }

.page-title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-title-right .breadcrumb {
  margin-bottom: 0;
  background: transparent;
}

.uni-panel {
  border: 1px solid var(--uni-border);
  box-shadow: 0 6px 20px rgba(19, 33, 68, 0.06);
  border-radius: 12px;
}

.uni-stat {
  border: 1px solid var(--uni-border);
  border-radius: 12px;
  background: var(--uni-surface);
  padding: 14px;
}

#studenti-tabela th[data-sort] {
  user-select: none;
  white-space: nowrap;
}

#studenti-tabela td,
#studenti-tabela th { vertical-align: middle; }

.form-select.is-loading {
  opacity: 0.8;
  cursor: wait;
}

.studenti-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

#studenti-forma .choices {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .page-title-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

html[data-sidenav-size=condensed] .app-topbar {
  z-index: 1005;
  margin-left: 0 !important;
}

html .app-topbar,
html body .app-topbar,
html[data-layout-mode] .app-topbar,
html[data-sidenav-size] .app-topbar,
body[data-layout-mode] .app-topbar {
  margin-left: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

.card-top-sticky {
  position: sticky;
  top: 92px;
}

#student-profile-content .badge {
  font-size: 0.75rem;
}

.student-profile-shell .card {
  border: 1px solid #e9edf4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border-radius: 14px;
}

.student-profile-main-card .card-body {
  padding: 1.15rem;
}

.student-identity-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e6ebf3;
}

.student-meta-row {
  font-size: 0.92rem;
}

.student-summary-panel {
  margin-top: 0.9rem;
}

.student-summary-table td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-color: #edf1f7;
}

.student-summary-table tr:last-child td {
  border-bottom: 0;
}

.student-profile-tabs-card .card-header {
  background: linear-gradient(180deg, #fafcff 0%, #f6f9fd 100%);
  border-bottom: 1px solid #e9edf4;
}

.student-profile-tabs-card .nav-tabs .nav-link {
  font-weight: 600;
  color: #5e6e82;
}

.student-profile-tabs-card .nav-tabs .nav-link.active {
  color: #3b82f6;
  background: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.student-detail-list .d-flex {
  align-items: center;
  min-height: 36px;
}

.student-detail-list .d-flex:last-child {
  border-bottom: 0 !important;
}

.espb-toolbar h5 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.espb-summary-card {
  background: #fbfdff;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
}

.espb-summary-card th {
  font-size: 0.77rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #64748b;
}

.espb-main-table-wrap {
  border: 1px solid #edf2f8;
  border-radius: 10px;
  overflow: hidden;
}

.espb-main-table thead th {
  background: #f8fbff;
  font-size: 0.76rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.espb-main-table td {
  vertical-align: middle;
}

#espb-generated-at {
  font-size: 0.78rem;
}
