/* ── Global reset & dark mode neutralization ── */
:root,
.pf-v5-theme-dark {
    /* Warm amber primary — hsl(24 82% 52%) */
    --pf-v5-global--primary-color--100: #E97120;
    --pf-v5-global--primary-color--200: #CC5E14;
    --pf-v5-global--link--Color: #E97120;
    --pf-v5-global--link--Color--hover: #CC5E14;

    /* Warm off-white backgrounds */
    --pf-v5-global--BackgroundColor--100: #ffffff;
    --pf-v5-global--BackgroundColor--200: #FAF9F7;

    /* Text — hsl(20 15% 10%) */
    --pf-v5-global--Color--100: #1C1814;
    --pf-v5-global--Color--200: #7A7268;

    /* Sidebar */
    --sidebar-bg: #FAF9F7;
    --sidebar-text: #1C1814;
    --sidebar-item-active-bg: #E97120;
    --sidebar-item-active-text: #ffffff;
    --sidebar-item-hover: rgba(233, 113, 32, 0.06);
}

/* Force light theme */
html, body,
.pf-v5-c-page,
.pf-v5-theme-dark {
    background-color: #FAF9F7 !important;
    color: #1C1814 !important;
}

/* ── Header / Masthead ── */
.pf-v5-c-masthead,
.pf-v5-c-masthead__main,
.pf-v5-c-masthead__content,
.pf-v5-c-masthead__toggle,
.pf-v5-c-masthead__brand {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-bottom: 1px solid #E6E2DE !important;
}

.pf-v5-c-masthead {
    --pf-v5-c-masthead--BackgroundColor: #ffffff !important;
}

.pf-v5-c-masthead::before,
.pf-v5-c-masthead::after {
    display: none !important;
}

.pf-v5-c-masthead__brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    background: none !important;
}

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

.pf-v5-c-masthead__brand::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('../img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pf-v5-c-masthead__brand::after {
    content: "Elden Core";
    font-size: 18px;
    font-weight: 700;
    color: #1C1814 !important;
    letter-spacing: -0.4px;
}

/* Header icon contrast */
.pf-v5-c-masthead button,
.pf-v5-c-masthead .pf-v5-c-button,
.pf-v5-c-masthead .pf-v5-c-dropdown__toggle,
.pf-v5-c-masthead .pf-v5-c-dropdown__toggle-text,
.pf-v5-c-masthead__content {
    color: #1C1814 !important;
}

.pf-v5-c-masthead svg {
    fill: #1C1814 !important;
}

/* ── Sidebar / Navigation ── */
.pf-v5-c-page__sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid #E6E2DE !important;
}

.pf-v5-c-nav {
    background-color: var(--sidebar-bg) !important;
    padding: 16px 12px !important;
}

.pf-v5-c-nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.pf-v5-c-nav__link {
    color: var(--sidebar-text) !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    transition: all 0.15s ease !important;
}

.pf-v5-c-nav__link:hover {
    background-color: var(--sidebar-item-hover) !important;
    color: var(--pf-v5-global--primary-color--100) !important;
}

.pf-v5-c-nav__link.pf-m-current {
    background: linear-gradient(135deg, #DF6616 0%, #CA4616 100%) !important;
    color: var(--sidebar-item-active-text) !important;
    box-shadow: 0 2px 8px rgba(233, 113, 32, 0.25) !important;
}

.pf-v5-c-nav__link.pf-m-current::after {
    display: none !important;
}

.pf-v5-c-nav__section-title {
    padding-left: 14px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #7A7268 !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

/* ── Main content ── */
.pf-v5-c-page__main {
    background-color: #FAF9F7 !important;
}

.pf-v5-c-page__main-section {
    padding: 32px !important;
}

.pf-v5-c-card {
    background-color: #ffffff !important;
    color: #1C1814 !important;
    border-radius: 12px !important;
    border: 1px solid #E6E2DE !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 16px 0 rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

.pf-v5-c-card__title,
.pf-v5-c-card__body,
.pf-v5-c-card__footer {
    color: #1C1814 !important;
}

.pf-v5-c-card__title {
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 20px 24px !important;
}

/* ── Buttons & Inputs ── */
.pf-v5-c-button.pf-m-primary {
    background: linear-gradient(135deg, #DF6616 0%, #CA4616 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(233, 113, 32, 0.25) !important;
}

.pf-v5-c-button.pf-m-primary:hover {
    opacity: 0.9 !important;
}

.pf-v5-c-form-control {
    border-radius: 10px !important;
    border: 1px solid #E6E2DE !important;
    padding: 8px 12px !important;
}

.pf-v5-c-form-control:focus,
.pf-v5-c-form-control:focus-within {
    border-color: #E97120 !important;
    --pf-v5-c-form-control--focus--after--border-color: #E97120 !important;
}

/* ── Tables ── */
.pf-v5-c-table {
    --pf-v5-c-table--border-color: #E6E2DE !important;
}

.pf-v5-c-table th {
    background-color: #FAF9F7 !important;
    font-weight: 600 !important;
    color: #7A7268 !important;
    font-size: 13px !important;
}
