:root {
    --wl-primary: #0b4f6c;
    --wl-secondary: #f9a03f;
    --wl-accent: #2f9c95;
    --wl-slate: #52616f;
    --wl-ink: #17212b;
    --wl-border: #e6ebef;
    --wl-soft: #f5f8fa;
}

*:focus {
    outline: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7f9;
}

.required-field::after {
    color: #d9534f;
    content: " *";
}

.btn-wl-primary {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
    color: #fff;
}

.btn-wl-primary:hover,
.btn-wl-primary:focus {
    background: #083d54;
    border-color: #083d54;
    color: #fff;
}

.wl-navbar-brand {
    align-items: center;
    display: flex;
    min-height: 4.2rem;
}

.wl-navbar-brand img {
    max-height: 42px;
    max-width: 230px;
}

.brand-logo-mobile {
    max-height: 36px;
    max-width: 180px;
}

.header-navbar .navbar-nav.float-right {
    align-items: center;
    display: flex;
    gap: 0.25rem;
}

.header-navbar .navbar-nav.float-right > .nav-item {
    align-items: center;
    display: flex;
    min-height: 4.2rem;
}

.header-navbar .dropdown-notification .nav-link-label {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 44px;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    position: relative;
}

.header-navbar .dropdown-notification .badge-up {
    position: absolute;
    right: 0.1rem;
    top: 0.55rem;
}

.header-navbar .dropdown-user-link {
    align-items: center;
    display: inline-flex !important;
    gap: 0.45rem;
    min-height: 4.2rem;
    padding-left: 0.55rem;
    padding-right: 0.7rem;
}

.header-navbar .dropdown-user-link .avatar {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.header-navbar .dropdown-user-link .user-name {
    display: inline-block;
    line-height: 1.1;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.notification-dropdown {
    min-width: 310px;
}

.notification-item {
    display: block;
    white-space: normal;
}

.notification-item strong,
.notification-item span,
.notification-item small {
    display: block;
}

.notification-item strong {
    color: var(--wl-ink);
    font-size: 0.92rem;
}

.notification-item span {
    color: var(--wl-slate);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.notification-item small {
    color: #8a98a7;
    font-size: 0.74rem;
    margin-top: 0.25rem;
}

.user-list-cell {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.user-list-avatar,
.profile-photo-preview img {
    border-radius: 50%;
    object-fit: cover;
}

.user-list-avatar {
    background: var(--wl-soft);
    height: 42px;
    width: 42px;
}

.profile-photo-preview {
    align-items: center;
    background: var(--wl-soft);
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    display: inline-flex;
    height: 112px;
    justify-content: center;
    padding: 0.5rem;
    width: 112px;
}

.profile-photo-preview img {
    height: 96px;
    width: 96px;
}

.horizontal-menu .navbar-horizontal .nav-link.active,
.horizontal-menu .navbar-horizontal .dropdown-item.active {
    background: var(--wl-primary) !important;
    color: #fff !important;
}

.login-card,
.metric-card,
.list-card,
.content-card,
.table-card,
.form-card,
.preview-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
    overflow: hidden;
}

.login-logo {
    max-height: 72px;
    max-width: 260px;
}

.demo-access-note {
    background: #f5f8fa;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    color: var(--wl-slate);
    font-size: 0.86rem;
    padding: 0.8rem;
}

.alert-system strong,
.alert-system span {
    display: block;
}

.alert-system strong {
    margin-bottom: 0.15rem;
}

.form-intro {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--wl-border);
    border-left: 4px solid var(--wl-accent);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 33, 43, 0.06);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.form-intro__eyebrow {
    color: var(--wl-accent);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.form-intro h2 {
    color: var(--wl-ink);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.form-intro p,
.field-hint,
.upload-hint {
    color: var(--wl-slate);
    line-height: 1.45;
}

.field-hint,
.upload-hint {
    display: block;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.upload-hint {
    background: #f8fafc;
    border: 1px solid var(--wl-border);
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
}

.upload-hint i {
    color: var(--wl-accent);
    margin-right: 0.25rem;
}

.empty-state {
    align-items: center;
    background: #fff;
    border: 1px dashed #ccd6df;
    border-radius: 8px;
    color: var(--wl-slate);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 150px;
    padding: 1.5rem;
    text-align: center;
}

.empty-state i {
    color: var(--wl-accent);
    font-size: 1.65rem;
}

.empty-state h4 {
    color: var(--wl-ink);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.empty-state p {
    margin: 0;
    max-width: 520px;
}

.wl-hero {
    align-items: center;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    min-height: 210px;
    padding: 2rem;
}

.wl-hero h1,
.wl-page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.4rem;
}

.wl-hero p {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
}

.wl-hero__eyebrow {
    color: #fff5d7;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.wl-page-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.wl-page-title p {
    color: var(--wl-slate);
    margin: 0;
}

.metric-card .card-body {
    padding: 1.2rem;
}

.metric-card__icon {
    align-items: center;
    background: rgba(11, 79, 108, 0.1);
    border-radius: 8px;
    color: var(--wl-primary);
    display: inline-flex;
    font-size: 1.3rem;
    height: 42px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 42px;
}

.metric-card__icon--accent {
    background: rgba(47, 156, 149, 0.12);
    color: var(--wl-accent);
}

.metric-card__icon--secondary {
    background: rgba(249, 160, 63, 0.16);
    color: #bf6b12;
}

.metric-card__icon--slate {
    background: rgba(82, 97, 111, 0.12);
    color: var(--wl-slate);
}

.metric-card__label {
    color: var(--wl-slate);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card__value {
    color: var(--wl-ink);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
}

.metric-card p,
.content-card p,
.demo-list-item p,
.preview-card p {
    color: var(--wl-slate);
    line-height: 1.55;
    margin-bottom: 0;
}

.list-card .card-header,
.table-card .card-header,
.preview-card .card-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--wl-border);
    display: flex;
    justify-content: space-between;
}

.demo-list-item {
    border-bottom: 1px solid var(--wl-border);
    padding: 1rem 0;
}

.demo-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.demo-list-item__icon {
    align-items: center;
    background: var(--wl-primary);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-right: 0.85rem;
    width: 38px;
}

.demo-list-item__icon--secondary {
    background: var(--wl-secondary);
}

.demo-list-item h5,
.content-card h4 {
    color: var(--wl-ink);
    font-weight: 700;
}

.demo-list-item span,
.content-card__meta {
    color: var(--wl-slate);
    display: block;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.content-card__topline {
    color: var(--wl-primary);
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.content-card .progress {
    border-radius: 8px;
    height: 0.55rem;
}

.content-card .progress-bar {
    background: var(--wl-accent);
}

.tutorial-steps {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tutorial-steps span {
    color: var(--wl-slate);
}

.tutorial-steps i {
    color: var(--wl-accent);
}

.table-card .table {
    margin-bottom: 0;
}

.videos-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.videos-table-scroll #videos-table {
    min-width: 1120px;
}

.table-actions {
    white-space: nowrap;
}

.table-actions form {
    display: inline-block;
    margin: 0 0.2rem 0.25rem 0;
}

.video-order-cell {
    cursor: move;
    white-space: nowrap;
}

.video-sort-row.dragging {
    background: #fff;
}

.videos-order-status {
    font-weight: 600;
}

.form-card .card-body {
    padding: 1.5rem;
}

.color-input {
    height: 42px;
    padding: 0.2rem;
}

.system-asset-field {
    margin-bottom: 1.35rem;
}

.system-asset-preview {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
    min-height: 118px;
    overflow: hidden;
    padding: 0.75rem;
}

.system-asset-preview img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.system-asset-preview--logo {
    height: 126px;
}

.system-asset-preview--icon {
    height: 126px;
}

.system-asset-preview--icon img {
    max-height: 84px;
    max-width: 84px;
}

.system-asset-preview--wide {
    height: 150px;
    padding: 0;
}

.system-asset-preview--wide img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.system-asset-preview__empty {
    align-items: center;
    color: var(--wl-slate);
    display: flex;
    font-size: 0.86rem;
    height: 100%;
    justify-content: center;
    min-height: 96px;
    width: 100%;
}

.preview-card__brand {
    align-items: center;
    background: var(--wl-soft);
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 110px;
    padding: 1rem;
}

.preview-card__brand img {
    max-height: 72px;
    max-width: 100%;
}

.preview-card__swatches {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preview-card__swatches span {
    border-radius: 8px;
    display: block;
    height: 34px;
    width: 34px;
}

.preview-card__mini-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.preview-card__mini-nav span {
    background: var(--wl-soft);
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    color: var(--wl-slate);
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
}

.video-table-thumb {
    background: var(--wl-soft);
    border-radius: 6px;
    height: 54px;
    object-fit: cover;
    width: 86px;
}

.video-preview-thumb,
.video-card__thumb {
    background-color: #17212b;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-preview-thumb {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 190px;
}

.video-preview-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.video-card-link,
.video-card-link:hover,
.video-card-link:focus {
    color: inherit;
    display: block;
    text-decoration: none;
}

.video-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-card:hover {
    box-shadow: 0 16px 34px rgba(23, 33, 43, 0.14);
    transform: translateY(-2px);
}

.video-card__thumb {
    min-height: 180px;
}

.video-card__thumb::after {
    background: linear-gradient(180deg, rgba(23, 33, 43, 0.08), rgba(23, 33, 43, 0.58));
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.video-card__play {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--wl-primary);
    display: flex;
    font-size: 1.2rem;
    height: 48px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    z-index: 2;
}

.video-card__type {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    color: var(--wl-ink);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    position: absolute;
    right: 0.8rem;
    text-transform: uppercase;
    top: 0.8rem;
    z-index: 2;
}

.client-section-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 1.3rem 0 0.8rem;
}

.client-section-title h3 {
    color: var(--wl-ink);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.video-embed {
    background: #101820;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

.video-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-embed iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.video-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.chat-summary-card,
.chat-room,
.video-player-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
    overflow: hidden;
}

.chat-thread {
    background: #f8fafc;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    height: 360px;
    overflow-y: auto;
    padding: 0.9rem;
}

.client-chat .chat-thread {
    height: 330px;
}

.chat-empty {
    align-items: center;
    color: var(--wl-slate);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    justify-content: center;
    min-height: 180px;
    padding: 1rem;
    text-align: center;
}

.chat-empty i {
    color: var(--wl-accent);
    font-size: 1.6rem;
}

.chat-message {
    margin-bottom: 0.85rem;
    max-width: 88%;
}

.chat-message--mine {
    margin-left: auto;
}

.chat-message__meta {
    color: var(--wl-slate);
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

.chat-message__text {
    background: #fff;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    color: var(--wl-ink);
    padding: 0.7rem 0.8rem;
}

.chat-message__status {
    color: var(--wl-slate);
    font-size: 0.72rem;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-message__status--read {
    color: var(--wl-accent);
}

.chat-message--mine .chat-message__text {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
    color: #fff;
}

.chat-message--system {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    text-align: center;
}

.chat-message--system .chat-message__text {
    background: #eef3f7;
    color: var(--wl-slate);
    font-size: 0.84rem;
}

@media (max-width: 767.98px) {
    .wl-hero,
    .wl-page-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .wl-hero {
        padding: 1.4rem;
    }

    .form-intro {
        padding: 0.9rem;
    }

    .wl-hero h1,
    .wl-page-title h1 {
        font-size: 1.55rem;
    }

    .table-actions .btn {
        display: block;
        margin-bottom: 0.35rem;
    }
}
