:root {
    --primary-color: #174b79;
    /* --secondary-color: #cf9c1e; */
    --secondary-color: #ffd600;
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px !important;
    }
}

.header {
    margin-bottom: 1rem !important;
}

.border-bottom {
    border-bottom: 1px solid var(--primary-color) !important;
}

.content {
    margin-top: 1rem !important;
}

.wrapper:before {
    height: 10rem !important;
}

/* reset password */
.mb-2-8 {
    margin-bottom: 2.8rem;
}

.title-space {
    padding-bottom: 0.6rem;
}

.btn-accoring-to-text {
    width: revert;
}

/* reset password */

.btn-primary,
.list-group-item.active,
.bg-primary-dark,
.splash .splash-icon {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary,
.list-group-item.active,
.bg-primary-dark {
    border: var(--primary-color) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

a.sidebar-link .fab,
a.sidebar-link .fal,
a.sidebar-link .far,
a.sidebar-link .fas,
a.sidebar-link svg,
.text-primary {
    color: var(--primary-color) !important;
}

.sidebar-item.active>.sidebar-link .fab,
.sidebar-item.active>.sidebar-link .fal,
.sidebar-item.active>.sidebar-link .far,
.sidebar-item.active>.sidebar-link .fas,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link {
    color: var(--secondary-color) !important;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--primary-color) !important;
}


.sidebar-link:hover {
    color: var(--primary-color) !important;
    background-color: #e9e9e9 !important;
}

.sidebar-brand,
.sidebar-brand:hover,
.wrapper:before {
    background-color: var(--primary-color) !important;
}

/* .header-title {
    color: #ed1c24 !important;
} */

.dispatch-note {
    display: block;
    /* Ensures the badge behaves like a block element */
    max-width: 100%;
    /* Prevents overflow */
    white-space: normal;
    /* Allows wrapping */
    word-wrap: break-word;
    /* Breaks long words */
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    text-align: left;
    /* Align text properly */
    padding: 8px;
    /* Adds spacing inside the badge */
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

.sidebar-user {
    padding: 1rem 0rem 0rem !important;
}

.cardscroll {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-height: 20rem;
}

.text-bg-warning,
.bg-warning {
    background-color: var(--secondary-color) !important;
}

.sidebar-user img {
    height: 5rem !important;
    width: auto !important;
}

.logo {
    height: 4rem !important;
}

.center-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item-tab {
    padding: 0.5rem !important;
}

.nav-tab .active {
    background-color: #ececec;
}

.sidebar-link,
a.sidebar-link {
    border-radius: .6rem !important;
    padding: .5rem .6rem !important;
}

.sidebar [data-bs-toggle=collapse]:before {
    top: 1.1rem !important;
}

.sidebar-item {
    margin-bottom: 0.3rem !important;
}

.sidebar-dropdown {
    padding-left: 1rem !important;
}

.min-height {
    min-height: 85vh !important;
}

.big-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.avatar-sm {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px;
    min-height: 32px;
}

.avatar-md {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
}

.avatar-lg {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px;
    min-height: 64px;
}

.avatar i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm i {
    font-size: 12px;
}

.avatar-md i {
    font-size: 16px;
}

.avatar-lg i {
    font-size: 20px;
}

.avatar>* {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.quick-action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.d-flex {
    display: flex !important;
}

.stats-card .bg-primary,
.stats-card .bg-info,
.stats-card .bg-warning,
.stats-card .bg-success,
.stats-card .bg-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.stats-card .bg-primary i,
.stats-card .bg-info i,
.stats-card .bg-warning i,
.stats-card .bg-success i,
.stats-card .bg-danger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-message {
    font-size: 13px !important;
}

.profix-public-nav {
    background: #174b79;
    padding: 0.7rem 0;
}

.profix-public-nav .logo {
    background: #fff;
    border-radius: 0.7rem;
}

.profix-public-nav .navbar-toggler {
    border-color: #ffd600;
}

.profix-public-nav .navbar-toggler-icon {
    filter: invert(1);
}

.profix-hero .btn-primary,
.profix-home-hero .btn-primary,
.profix-nav-signin,
.profix-side-card .btn-primary {
    background: #ffd600 !important;
    color: #174b79 !important;
    border-color: #ffd600 !important;
}

.profix-notice-success {
    background: #e8f6ee;
    border-color: #8ed0a8;
}

.profix-notice-danger {
    background: #fde8ea;
    border-color: #f3b4bc;
}

.profix-uploader {
    display: grid;
    gap: 0.8rem;
}

.profix-home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.profix-home-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.2rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
    background: #f4f8fb;
    color: #174b79;
    font-weight: 700;
}

.profix-home-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #ffd600;
    color: #174b79;
    flex: 0 0 auto;
}

.profix-field-label {
    margin: 0;
    color: #174b79;
    font-size: 0.85rem;
    font-weight: 700;
}

.profix-dropzone {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 2.4rem 1.2rem;
    border: 2px dashed #9db7ce;
    border-radius: 1rem;
    background: #f4f8fb;
    color: #174b79;
    text-align: center;
    cursor: pointer;
}

.profix-dropzone strong {
    font-size: 1.15rem;
}

.profix-dropzone.is-dragging {
    background: #fff8d6;
    border-color: #ffd600;
}

.profix-dropzone span,
.profix-drop-hint,
.profix-file-detail {
    color: #5d6d7e;
}

.profix-description-input,
.profix-file input {
    width: 100%;
    border: 1px solid #d5e2ee;
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    color: #174b79;
}

.profix-queue {
    display: grid;
    gap: 0.75rem;
}

.profix-file {
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem;
    border: 1px solid #e4edf5;
    border-radius: 0.9rem;
    background: #fff;
}

.profix-progress {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e4edf5;
}

.profix-progress span {
    display: block;
    height: 100%;
    background: #174b79;
}

.profix-public-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.6rem;
}

.profix-public-nav .nav-link.active,
.profix-public-nav .nav-link:hover {
    color: #ffd600 !important;
    background: transparent;
}

.profix-nav-signin {
    margin: 0.4rem 0;
    padding: 0.45rem 0.95rem;
    font-weight: 700;
}

.profix-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 2;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(23, 75, 121, 0.06);
}

.profix-toolbar p {
    margin: 0;
    color: #174b79;
    max-width: 40rem;
}

.profix-home-hero,
.profix-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #174b79 0%, #22639c 100%);
    color: #fff;
    border-radius: 1.1rem;
    padding: 1.6rem 1.7rem;
    margin-bottom: 1rem;
    border-bottom: 4px solid #ffd600;
}

.profix-home-hero {
    display: block;
}

.profix-home-hero h1,
.profix-hero h2,
.profix-side-card h2,
.profix-empty h2,
.profix-steps h3,
.profix-video-title h3 {
    margin: 0 0 0.35rem;
    color: inherit;
}

.profix-home-hero p,
.profix-hero p {
    margin: 0;
    color: #e7f0f8;
    max-width: 40rem;
}

.profix-kicker {
    margin: 0 0 0.25rem;
    color: #ffd600;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profix-side-card,
.profix-empty,
.profix-steps,
.profix-upload-panel,
.profix-filters {
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(23, 75, 121, 0.06);
}

.profix-side-card {
    padding: 1.25rem;
    color: #174b79;
}

.profix-side-card p,
.profix-empty p,
.profix-steps span,
.profix-description,
.profix-filename {
    color: #5d6d7e;
}

.profix-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.profix-empty i,
.profix-video-placeholder i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    background: #ffd600;
    color: #174b79;
    font-size: 1.2rem;
}

.profix-filters {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(8rem, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1rem;
}

.profix-filters label {
    display: block;
    margin-bottom: 0.3rem;
    color: #174b79;
    font-size: 0.82rem;
    font-weight: 700;
}

.profix-filters input,
.profix-filters select {
    width: 100%;
    min-height: 2.6rem;
    border: 1px solid #d5e2ee;
    border-radius: 0.7rem;
    padding: 0.4rem 0.7rem;
}

.profix-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.profix-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.profix-video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(23, 75, 121, 0.06);
}

.profix-video-preview,
.profix-video-placeholder {
    width: 100%;
    height: 11.5rem;
    object-fit: cover;
    background: #174b79;
}

.profix-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #fff;
}

button.profix-video-placeholder {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.profix-video-placeholder span {
    color: #ffd600;
    font-size: 0.85rem;
}

.profix-video-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem 1rem;
}

.profix-video-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
}

.profix-video-title h3 {
    color: #174b79;
    font-size: 1.02rem;
}

.profix-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.profix-status-completed {
    background: #174b79;
    color: #ffd600;
}

.profix-status-uploading,
.profix-status-pending {
    background: #ffd600;
    color: #174b79;
}

.profix-status-failed {
    background: #fde8ea;
    color: #9b1c2c;
}

.profix-status-cancelled {
    background: #eef2f5;
    color: #5d6d7e;
}

.profix-filename,
.profix-description,
.profix-meta {
    margin: 0;
}

.profix-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profix-meta {
    list-style: none;
    padding: 0;
    color: #174b79;
    font-size: 0.84rem;
}

.profix-meta i {
    width: 1rem;
    color: #174b79;
}

.profix-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.profix-upload-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 1rem;
}

.profix-steps,
.profix-upload-panel {
    padding: 1.1rem;
}

.profix-steps h3 {
    color: #174b79;
}

.profix-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.profix-steps li {
    display: grid;
    gap: 0.15rem;
    padding-left: 2.4rem;
    position: relative;
}

.profix-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #ffd600;
    color: #174b79;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profix-steps ol {
    counter-reset: step;
}

.profix-steps strong {
    color: #174b79;
}

.profix-notice {
    margin-bottom: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    background: #fff8d6;
    color: #174b79;
    border: 1px solid #ffd600;
}

.profix-player .modal-header {
    background: #174b79;
    color: #ffd600;
}

.profix-player .modal-title {
    color: #ffd600;
}

.profix-player video {
    width: 100%;
    max-height: 70vh;
    background: #102c48;
    border-radius: 0.7rem;
}

.profix-login-screen {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 0, 0.28), transparent 28rem),
        linear-gradient(160deg, #174b79 0%, #0f3354 100%);
    padding: 1.5rem 0;
}

.profix-login-card {
    border-top: 5px solid #ffd600 !important;
}

@media (max-width: 1199px) {
    .profix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .profix-home-hero,
    .profix-hero,
    .profix-toolbar,
    .profix-upload-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profix-filters {
        grid-template-columns: 1fr 1fr;
    }

    .profix-public-nav .navbar-collapse {
        margin-top: 0.6rem;
    }
}

@media (max-width: 575px) {
    .profix-home-steps {
        grid-template-columns: 1fr;
    }

    .profix-grid,
    .profix-filters,
    .profix-filter-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .profix-filter-actions .btn,
    .profix-toolbar .btn,
    .profix-hero .btn,
    .profix-home-hero .btn {
        width: 100%;
    }

    .profix-video-title {
        flex-direction: column;
    }
}