*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pf-v5-global--primary-color--100: #d4be9a;
  --pf-v5-global--primary-color--200: #a8b2c3;
  --pf-v5-global--info-color--100: #d4be9a;
  --pf-v5-global--BackgroundColor--100: #161d29;
  --pf-v5-global--BackgroundColor--200: #222c3d;
  --pf-v5-global--Color--100: #f2f6ff;
  --pf-v5-global--Color--200: #c3cfdf;
  --pf-v5-global--BorderColor--100: #3a4b66;
  --pf-v5-global--palette--black-100: #f2f6ff;
  --pf-v5-global--palette--black-200: #d4deeb;
  --pf-v5-global--palette--black-500: #9dafc8;
  --pf-v5-global--palette--black-600: #8094af;
  --pf-v5-global--palette--black-700: #4a5b74;
  --pf-v5-global--palette--black-850: #1e2736;
  --pf-v5-global--palette--black-900: #161d29;
}

body {
  background:
    linear-gradient(110deg, rgba(212, 190, 154, 0.06), rgba(168, 178, 195, 0.07)),
    radial-gradient(1000px 520px at 10% -10%, rgba(212, 190, 154, 0.1), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(168, 178, 195, 0.08), transparent 55%),
    #161d29;
  color: #f2f6ff;
  line-height: 1.4;
}

.keycloak__loading-container {
  background: transparent !important;
  color: #f2f6ff !important;
}

.pf-v5-c-button.pf-m-primary {
  background: rgba(19, 27, 40, 0.82) !important;
  border: 1px solid #d4be9a !important;
  color: #e6d2ad !important;
  font-weight: 700;
  border-radius: 6px !important;
  min-height: 40px;
  padding: 0.45rem 1rem !important;
  font-size: 0.94rem !important;
  letter-spacing: 0.012em;
}

.pf-v5-c-button.pf-m-primary:hover {
  filter: none;
  background: rgba(36, 48, 67, 0.95) !important;
  border-color: #e6d2ad !important;
}

.pf-v5-c-button.pf-m-primary:disabled,
.pf-v5-c-button.pf-m-primary[aria-disabled="true"] {
  background: rgba(28, 36, 49, 0.88) !important;
  border-color: #8f8270 !important;
  color: #bfae91 !important;
  opacity: 0.95 !important;
}

.pf-v5-c-masthead__brand img {
  display: none !important;
}

.pf-v5-c-masthead__brand {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 46px !important;
}

.pf-v5-c-masthead__brand::before {
  content: "";
  position: absolute;
  left: 0;
  width: 34px;
  height: 34px;
  background: url("../img/peritum-logo.svg") center/contain no-repeat;
  opacity: 0.95;
}

.pf-v5-c-masthead__brand::after {
  content: "PERITUM Identity";
  color: #e6d2ad;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.pf-v5-c-masthead {
  background: #121925 !important;
  border-bottom: 1px solid #334661;
  box-shadow: 0 6px 18px rgba(3, 8, 15, 0.45);
  position: sticky;
  top: 0;
  z-index: 200;
}

.pf-v5-c-page__sidebar,
.pf-v5-c-nav {
  background: #1b2534 !important;
  border-right: 1px solid #32445e;
  overflow-y: auto;
}

.pf-v5-c-nav__link {
  color: #d7e0ee !important;
}

.pf-v5-c-nav__link:hover,
.pf-v5-c-nav__link.pf-m-current {
  background: linear-gradient(90deg, rgba(212, 190, 154, 0.2), rgba(168, 178, 195, 0.16));
  color: #ffffff !important;
}

.pf-v5-c-page__main,
.pf-v5-c-page__main-section {
  background: transparent !important;
  color: #f2f6ff;
}

.pf-v5-c-card,
.pf-v5-c-table,
.pf-v5-c-toolbar,
.pf-v5-c-dropdown__menu,
.pf-v5-c-options-menu__menu {
  background: #1f2939 !important;
  border: 1px solid #3a4b66 !important;
  color: #f2f6ff !important;
  box-shadow: 0 10px 24px rgba(4, 10, 20, 0.36);
}

.pf-v5-c-toolbar {
  padding: 0.45rem 0.6rem !important;
  border-bottom: 1px solid #34475f !important;
  position: sticky;
  top: 56px;
  z-index: 120;
  backdrop-filter: blur(4px);
}

.pf-v5-c-toolbar__content {
  row-gap: 0.35rem !important;
  column-gap: 0.45rem !important;
  align-items: center !important;
}

.pf-v5-c-toolbar__group,
.pf-v5-c-toolbar__item {
  margin-right: 0 !important;
  padding-right: 0 !important;
  align-items: center !important;
}

.pf-v5-c-search-input,
.pf-v5-c-input-group,
.pf-v5-c-text-input-group {
  min-height: 38px;
  border-radius: 6px !important;
}

.pf-v5-c-search-input .pf-v5-c-form-control,
.pf-v5-c-input-group .pf-v5-c-form-control,
.pf-v5-c-text-input-group__main input {
  min-height: 38px !important;
  padding: 0.4rem 0.65rem !important;
  font-size: 0.92rem !important;
}

.pf-v5-c-menu-toggle {
  min-height: 38px !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.6rem !important;
}

.pf-v5-c-toolbar .pf-v5-c-button {
  min-height: 38px !important;
  padding: 0.38rem 0.85rem !important;
  font-size: 0.9rem !important;
}

.pf-v5-c-table {
  table-layout: fixed;
  width: 100%;
}

.pf-v5-c-table td,
.pf-v5-c-table th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-v5-c-table tr,
.pf-v5-c-table th,
.pf-v5-c-table td {
  border-color: #34475f !important;
  color: #dbe5f3 !important;
}

.pf-v5-c-table tr:hover {
  background: rgba(95, 179, 255, 0.08) !important;
}

.pf-v5-c-title,
h1,
h2,
h3,
h4 {
  color: #f2f6ff !important;
}

.pf-v5-c-content,
.pf-v5-c-form,
.pf-v5-c-form__label-text,
.pf-v5-c-helper-text__item-text,
.pf-v5-c-description-list__term-text,
.pf-v5-c-description-list__description {
  color: #c3cfdf !important;
}

.pf-v5-c-form-control,
.pf-v5-c-text-input-group__text-input,
.pf-v5-c-text-input-group__main input,
input,
select,
textarea {
  background: #182232 !important;
  border-color: #415672 !important;
  color: #f2f6ff !important;
}

.pf-v5-c-form-control:focus,
.pf-v5-c-text-input-group__main input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #d4be9a !important;
  box-shadow: 0 0 0 3px rgba(212, 190, 154, 0.3) !important;
}

.pf-v5-c-button.pf-m-secondary,
.pf-v5-c-button.pf-m-tertiary,
.pf-v5-c-button.pf-m-control {
  color: #dbe5f3 !important;
  border-color: #4a5e7b !important;
  background: #243146 !important;
  border-radius: 6px !important;
  min-height: 38px;
  padding: 0.4rem 0.85rem !important;
}

.pf-v5-c-button.pf-m-secondary:disabled,
.pf-v5-c-button.pf-m-control:disabled,
.pf-v5-c-menu-toggle.pf-m-disabled,
.pf-v5-c-form-control:disabled,
select:disabled {
  color: #d7c8ac !important;
  background: #2a3343 !important;
  border-color: #5a6880 !important;
  opacity: 0.95 !important;
}

.pf-v5-c-button.pf-m-secondary:hover,
.pf-v5-c-button.pf-m-control:hover {
  background: #2b3a52 !important;
}

.pf-v5-c-button:focus-visible,
.pf-v5-c-menu-toggle:focus-visible,
.pf-v5-c-form-control:focus-visible,
.pf-v5-c-nav__link:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(230, 210, 173, 0.9);
  outline-offset: 2px;
}

a,
.pf-v5-c-button.pf-m-link {
  color: #e6d2ad !important;
}

@media (max-width: 1024px) {
  .pf-v5-c-toolbar {
    top: 52px;
  }
  .pf-v5-c-toolbar__content {
    row-gap: 0.5rem !important;
  }
  .pf-v5-c-toolbar .pf-v5-c-button {
    min-height: 36px !important;
    font-size: 0.86rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
