.admin-login {
    margin: 0 auto;
}

.mb-error {
    list-style-type: none;
    padding: 0;
    color: red;
}

.mb-template-group .form-check-label {
    position: relative;
    cursor: pointer;
}

.fa-sort-btn {
    cursor: pointer;
    top: 0;
    right: 0;
    position: absolute;
}

.mb-template-group .form-check-input {
    position: absolute;
    left: 16px;
    top: -7px;
}

.mb-template-group {
    padding: 15px;
}

.mb-template-group p {
    padding-top: 5px;
    text-align: center;
}

.form-label.required::after {
    content: " *";
    color: red;
    font-weight: bold;
    font-size: 1em;
}

.mb-template-image {
    max-height: 200px;
}

.mb-left-5 {
    margin-left: 5px;
}

.video-title {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.mb-error-register ul {
    padding: 0 17px;
    color: red;
}

.mb-logo {
    width: 150px;
}

.hidden {
    display: none !important;
}

.has-pagination nav.justify-between {
    padding: 20px;
    text-align: center;
}

#invitationLinkModal #invitationLink {
    background: #f5f5f5;
    margin-top: 15px;
}

.form-check-mb {
    border: 1px solid #d9d9d9;
}

.mb-disabled {
    background: #f9f9f9 !important;
}

.form-control::placeholder {
    color: #c6c6c6;
}

.logo-box-bottom {
    position: absolute;
    border-top: 1px solid #656565;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #000000;
}

.bg-mb {
    background: #fbfbfb;
}

.select2-selection__choice {
    color: black !important;
}

.mb-input-sm {
    max-width: 400px;
}

.bg-mb1 {
    background: #dddddd;
}

.noti-name {
    font-style: italic !important;
}

.swal2-modal .swal2-title {
    font-size: 17px !important;
}


.timeInput {
    max-width: 180px !important;
}

#device-select,
.device-select {
    padding: 3px 10px;
    border: none;
    background: #ebebeb;
    border-radius: 0;
}

.device-info {
    background: aliceblue;
    padding: 10px;
    width: 400px;
}

.mb-label {
    position: absolute;
    bottom: 0;
    color: brown;
    font-size: 12px;
}

.mb-label.no-product,
.mb-label.has-sound {
    left: 5px;
}

.mb-label.has-product {
    left: 22px;
}

.view-count.red-1 {
    background: #ffcccc;
}

.view-count.red-1 *,
.view-count.red-2 *,
.view-count.red-3 *,
.view-count.red-4 * {
    color: black;
}

.view-count.red-2 {
    background: #ff6666;
}

.view-count.red-3 {
    background: #ff3333;
}

.view-count.red-4 {
    background: #cc0000;
}

.mb-img-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.spy-table tr th,
.spy-table tr td {
    width: calc(100% / 15) !important;
    text-align: center;
    word-wrap: break-word;
}

/* Fullscreen loading overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999999999999999999;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.upload-icon {
    width: 100%;
    height: 140px;
    margin-bottom: 20px;
    object-fit: cover;
}

.mb-close-video {
    position: absolute;
    top: 0;
    right: 0;
}

.mb-img-thumb {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.paginationjs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.paginationjs .paginationjs-page {
    cursor: pointer;
}

.paginationjs .paginationjs-page.active {
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
}

.mb-form-select {
    border: none;
    padding: 3px;
}

.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.loading-container .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mb-ml-20 {
    margin-left: 17px;
}

#channels-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

#saveOrder {
    display: none;
}

#dataContainer {
    counter-reset: dev-counter;
}

.video-item-count {
    counter-increment: dev-counter;
    position: absolute;
    top: 2px;
    left: 5px;
}

.video-item-count::before {
    content: counter(dev-counter);
    position: absolute;
    left: 0;
}

/* Timeline */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs .nav-link {
    padding: 10px 15px;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-color: #ddd #ddd transparent;
}

.tab-content {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 15px;
}

.timeline-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #ddd;
}

.timeline li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 50px;
}

.timeline-badge {
    position: absolute;
    left: 16px;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.progress-small-md {
    font-size: 10px;
    margin-top: 3px;
    color: #c6c6c6;
}

.mb-disabled-page {
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.mb-channels {
    font-size: 11px;
}

.mb-progress-bar {
    height: 8px;
}

.mb-large-progress-bar {
    height: 12px;
}

.timeline-content {
    padding: 10px 15px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.timeline-content .text-muted {
    font-size: 0.85rem;
}

.field-channel_name,
.field-project_id {
    display: none;
}

.btn-channel-delete {
    position: absolute;
    top: 15px;
    right: 10px;
}

.btn-channel-delete .btn {
    font-size: 11px;
}

.follower-histories {
    max-height: 150px;
    overflow: auto;
}

.channel-item-select.active {
    background-color: darkslateblue !important;
    border-color: darkslateblue !important;
}