.bg-gradient-primary {
    background-color: #d45500;
    background-image: linear-gradient(180deg, #d45500 10%, #a84200 100%);
    background-size: cover;
}

.btn-primary {
    background-color: #d45500;
    border-color: #d45500;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #b84a00;
    border-color: #b84a00;
}

.text-primary {
    color: #d45500 !important;
}

.skip-to-top {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-to-top:focus {
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #5a5c69;
    border-radius: 0.35rem;
}

.app-header {
    position: relative;
    z-index: 1050;
    background: #ffffff;
    border-bottom: 1px solid #ebe6e2;
}

.app-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #5a5c69;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-header__brand:hover {
    color: #d45500;
    text-decoration: none;
}

.app-header__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.app-header__brand-text {
    font-size: 1rem;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-header__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    color: #858796;
    font-weight: 700;
    text-decoration: none;
}

.app-header__lang:hover,
.app-header__lang.is-active {
    background: #fdf1e8;
    color: #d45500;
    text-decoration: none;
}

.app-public-shell {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
}

.app-public-shell__content {
    flex: 1 0 auto;
}

.app-sidebar {
    background-color: #d45500;
    background-image: linear-gradient(180deg, #d45500 10%, #a84200 100%);
    background-size: cover;
}

.sidebar-brand-logo {
    width: 8rem;
    height: auto;
    object-fit: contain;
}

#userDropdownMenu.show {
    display: block;
}

.app-topbar-title {
    color: #5a5c69;
    font-weight: 700;
    font-size: 1rem;
}

.app-topbar-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fdf1e8;
    color: #d45500;
}

.app-topbar-avatar--menu {
    width: 3rem;
    height: 3rem;
}

.app-footer {
    border-top: 1px solid #ebe6e2;
}

.app-footer--public {
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 0;
}

.login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-brand-logo {
    display: block;
    max-width: 80%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.registration-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.sidebar .sidebar-card {
    background: rgba(255, 255, 255, 0.14);
}

.user-photo-preview {
    display: inline-block;
}

.user-photo-floating {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 0.25rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1rem rgba(58, 59, 69, 0.2);
    pointer-events: none;
}

.user-photo-floating.is-visible {
    display: block;
}

.user-photo-floating img {
    display: block;
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
}

.app-file-upload {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.app-file-upload__name {
    min-width: 0;
    color: #858796;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .app-header__inner {
        min-height: auto;
        padding: 0.85rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .app-header__actions {
        width: 100%;
        justify-content: space-between;
    }
}
