body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    overflow: hidden;
    font-size: 14px;

}

.container {
    min-height: 100vh;
    text-align: center;
    /* max-width: 600px; */
    padding: 20px;
    color: #444;
}

.logo {
    width: 120px;
    margin-bottom: 20px;
}

h1 {
    font-size: 22px;
    font-weight: normal;
    color: #444;
    margin-bottom: 15px;
}

p {
    font-size: 15px;
    margin: 8px 0;
}

.icon-text {
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.icon-text i {
    font-size: 14px;
    color: #444;
}

.login-btn {
    margin: 20px 0;
}

button {
    padding: 10px 25px;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
}

button i {
    margin-right: 8px;
}

button:hover {
    background-color: #f5f5f5;
}

a {
    color: #0044cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer-note {
    font-size: 13px;
    margin-top: 25px;
    color: #444;
}

.canto-logo {
    margin-bottom: 30px;
}

/* content */
@media (max-width: 400px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    /* .search-bar input {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    } */
}

#section-canto-asset {
    display: none;
    ;
}

/**asset */
/* body {
  margin: 0;
  font-family: sans-serif;
} */
.topbar {
    background-color: #f18700;
    padding: 10px 20px;
    display: flex;
    justify-content: center
}

.logo {
    height: 40px;
}

.main-container {
    display: flex;
    height: calc(100vh - 60px);
}

.sync_with_canto_container {
    display: none;
    height: calc(100vh - 60px);
}



.content {
    flex: 1;
    /* padding: 15px; */
    overflow-y: auto;
    height: 700px;
    background-color: #f4f4f4;
    position: relative;
}

.gallery.list-view {
    display: grid;
    grid-template-columns: auto;
    gap: 4px;
    margin-top: 25px;
    flex-direction: column;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px;
    margin-top: 25px;
}



.gallery img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.image-container {
    /* position: relative;
    width: 200px;
    height: 130px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); */
    /* width: 100%; */
    height: 0;
    padding-bottom: 75%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.image-container img {
    /* width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; */

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .icon-overlay {
    opacity: 1;
}

.gallery.list-view .image-container .icon-overlay i {
    color: white;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 7px;
    cursor: pointer;
}

.icon-overlay i {
    color: white;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}

.image-title {
    /* position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    padding: 6px;
    font-size: 13px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s;
    height: 20px; */

    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Truncate long names */
    box-sizing: border-box;
}

.box-view-section {
    font-size: 14px;
    color: #2a2a2a;
    height: 30px;
    display: flex;
    align-items: center;
    width: 100%;
    background: #eaeaea;
    padding: 0 5px;
    position: fixed;
    z-index: 99;
}

.box-view-section svg {
    width: 18px;
    height: 18px;
}

.box-view-section svg:hover {
    cursor: pointer;
}

.box-view-section .view-item.active {
    display: none;
}

.list-view .image-container img {
    width: 100px;
    height: 100px;
    position: inherit;
    order: 0;
}


.gallery.list-view .image-container {
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
}

.gallery.list-view .image-container .image-title {
    position: inherit;
    width: 40%;
    order: 1;
    background: inherit;
    color: #000;
    text-align: left;
}

.gallery.list-view .image-container .icon-overlay {
    order: 2;
    position: inherit;
    background-color: inherit;
    opacity: 0;
    width: 40%;
    text-align: right;
    display: block;
    margin-top: 60px;
}

.gallery.list-view .image-container:hover .icon-overlay {
    opacity: 1;
}

.gallery.list-view .image-container label {
    display: flex;
}

.gallery.list-view .image-container.active {
    border: 2px solid #000;
}

/* tab menu  start */
.tab-menu {
    display: flex;
    /* border-bottom: 2px solid #ccc; */
    /* margin-bottom: 10px; */
    width: 90%;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #333;
    background: #f9f9f9;
    font-weight: 500;
}

.tab.active {
    border-bottom: 3px solid #e87722;
    /* Canto orange */
    background: #fff;
    color: #e87722;
}

.tab-content {
    /* padding: 10px; */
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-menu-box {
    display: flex;
    align-items: center;
}

.tab-menu-button {
    width: 10%;
    display: flex;
    justify-content: flex-end;
    margin-right: 9px;
}

#user_profile_button {
    font-size: 17px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}

#user_profile_button:hover,
.close-user:hover {
    cursor: pointer;
}

.close-user {
    color: #aaa;
    font-size: 25px;
    font-weight: bold;
}

#logout_button {
    margin-left: 12px;
    font-size: 17px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}

/* tab menu end */
/*** sidebar css  start*/
.sidebar {
    width: 250px;
    background-color: #fff;
    /* padding: 15px; */
    overflow-y: auto;
    border-right: 1px solid #ccc;
    transition: all 0.3s ease;
    /* position: relative; */
    max-height: 680px;
    margin-bottom: 150px;
}

.sidebar.collapsed {
    width: 50px;
    overflow: hidden;
}

.sidebar h3,
.sidebar ul {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed h3,
.sidebar.collapsed ul {
    opacity: 0;
    pointer-events: none;
}

.sidebar ul {
    list-style: none;
    padding-left: 15px;
}

.sidebar li {
    /* margin: 8px 0; */
}

ul.menu,
ul.submenu {
    list-style: none;
    /* padding-left: 20px; */
    margin: 0;
    position: relative;
}

#album-media-ul ul.menu,
#album-media-ul ul.submenu {
    padding-left: 20px;
}

#album-media-ul li.li_top_border::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    width: 10px;
    border-top: 1px dotted #aaa;
}

#album-media-ul li {
    cursor: pointer;
    padding: 3px 0 5px 5px;
    position: relative;
}

ul.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    border-left: 1px dotted #aaa;
}

li {
    cursor: pointer;
    padding: 3px 0 5px 10px;
    position: relative;
}

li.li_top_border::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -6px;
    width: 10px;
    border-top: 1px dotted #aaa;
}

li>.icon {
    margin-left: -20px;
    margin-right: 5px;
    font-size: 15px;
    transition: transform 0.3s ease;
}

.submenu {
    display: none;
}

li.open>.submenu {
    display: block;
}

li.open>.icon {
    transform: rotate(90deg);
}

ul.menu li {
    color: black;
}

li.active-link {
    color: #e87722 !important;
}

.menu .icon_menu {
    margin-right: 4px;
}

#sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding-bottom: 10px;
}

#sidebar-menu ul.menu {
    min-width: 200px;
    white-space: normal;
}

#sync-sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding-bottom: 10px;
}

#sync-sidebar-menu ul.menu {
    min-width: 200px;
    white-space: normal;
}

#sync_with_canto_sidebar {
    margin-bottom: 250px;
}

.tree-view-sort {
    /* font-size: 15px;
    color: #2a2a2a;
    height: 30px; */
    /* border-bottom: 1px solid #777; */
    /* position: absolute;
    top: 0;
    left: 0; */
    /* width: 100%;
    background: #eaeaea; */

    font-size: 15px;
    color: #2a2a2a;
    height: 30px;
    width: 100%;
    background: #eaeaea;
    flex-shrink: 0;
    /* prevent from shrinking */
    position: sticky;
    top: 0;
    z-index: 9;
}

.tree-view-sort .sort-item {
    display: inline-block;
    line-height: 30px;
    width: 50px;
    text-align: center;
    cursor: pointer;
    z-index: 9999;
    position: relative;
}

.tree-view-sort .sort-item .sort-badge {
    display: inline-block;
    margin: 3px;
    cursor: pointer;
    border-color: #2a2a2a;
    margin-left: 5px;
}

.tree-view-sort .sort-item.active-refresh-menu {
    color: #fff;
    background: rgb(240, 136, 1);
}

.tree-view-sort .sort-item .sort-badge.arrow-down {
    border-right: 4px solid transparent;
    border-top: 5px solid;
    border-left: 4px solid transparent;
}

.tree-view-sort .sort-item .sort-badge.arrow-up {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid;
}

/*** sidebar css  end*/
/** modal  start*/

.msg_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.msg_modal .msg_modal_box {
    background: white;
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
}

.msg_modal .msg_modal_box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.msg_modal .msg_modal_box p {
    margin: 0;
    font-weight: bold;
    color: #555;
}

/** modal end*/
/** search bar design start*/

.search-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
}

.search-box {
    position: relative;
    flex: 1;
    /* input takes available space */
    min-width: 120px;
}

.search-bar input {
    width: 100%;
    padding: 8px 35px 8px 10px;
    /* space for search icon */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
}

.search-bar .menu-icon,
.search-bar .icon {
    font-size: 18px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    /* don’t shrink icons */
}

/* ✅ Medium widths (like your screenshot) */
@media (max-width: 1100px) and (min-width: 601px) {
    .search-bar {
        flex-wrap: nowrap;
        /* keep one row */
    }

    .search-box {
        flex: 1;
    }

    .search-bar .icon {
        margin-left: 5px;
    }
}

/* ✅ Small screens (stack input below) */
@media (max-width: 600px) {
    .search-bar {
        flex-wrap: wrap;
    }

    .search-box {
        order: 2;
        width: 100%;
    }

    .search-bar .menu-icon {
        order: 1;
    }

    .search-bar .icon {
        order: 3;
    }
}

#multiple-scheme-link {
    display: none;
}

.multiple-share-box {
    display: none;
    position: absolute;
    top: 6px;
    color: #fff;
    width: 100%;
    font-size: 13px;
    text-align: right;
    right: 6px;
    z-index: 9;
}

.sync_with_canto_radio {
    position: absolute;
    top: 6px;
    color: #fff;
    width: 100%;
    font-size: 13px;
    z-index: 9;
}


div#selected-scheme-count {
    padding: 6px;
    text-align: center;
    display: none;
}

#show-error-msg {
    display: none;
    font-weight: 400;
    background: rgb(254, 217, 204);
    box-sizing: border-box;
    color: rgb(50, 49, 48);
    min-height: 32px;
    width: 100%;
    word-break: break-word;
    flex-direction: column;
    /* position: fixed; */
    top: 183px;
    z-index: 99999;
    line-height: 35px;
    padding-left: 20px;
}

#show-success-msg {
    display: none;
    font-weight: 400;
    background: rgba(72, 240, 72, 0.185);
    box-sizing: border-box;
    color: rgb(50, 49, 48);
    min-height: 32px;
    width: 100%;
    word-break: break-word;
    line-height: 35px;
    padding-left: 20px;
}

#show-error-msg .error-box,
#show-success-msg .error-box {
    display: flex;
}

#show-error-msg .error-box p,
#show-success-msg .error-box p {
    width: 95%;
}

#show-error-msg .close-btn-error,
#show-success-msg .close-btn-error {
    font-size: 28px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

#show-error-msg .close-btn-error:hover,
#show-success-msg .close-btn-error:hover {
    cursor: pointer;
}

.load-check {
    color: #f18700 !important;
}

/* search bar design end*/
/** loader start */
.full-page-toggle #assets_media_canto_loader_gif {
    width: 100%;
}

#assets_media_canto_loader_gif {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    width: calc(100% - 250px);
    height: 100%;
    z-index: 10;
    background-color: rgb(0 0 0 / 30%);
}

#assets_media_canto_loader_gif svg {
    position: relative;
    top: -150px;
    /* right: 100px; */
}

#assets_sidebar_canto_loader_gif {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 100%;
    z-index: 9999;
    background-color: rgb(0 0 0 / 30%);
}

#assets_sidebar_canto_loader_gif svg {
    position: absolute;
    top: 80px;
}

.full-page-toggle #sync_with_canto_media_canto_loader_gif {
    width: 100%;
}

#sync_with_canto_media_canto_loader_gif {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    width: calc(100% - 250px);
    height: 100%;
    z-index: 10;
    background-color: rgb(0 0 0 / 30%);
}

#sync_with_canto_media_canto_loader_gif svg {
    position: relative;
    top: -150px;
    /* right: 100px; */
}

#sync_with_canto_sidebar_canto_loader_gif {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 100%;
    z-index: 9999;
    background-color: rgb(0 0 0 / 30%);
}

#sync_with_canto_sidebar_canto_loader_gif svg {
    position: absolute;
    top: 80px;

}

.loader-container {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: rgb(0 0 0 / 30%);
}

#canto_loader_gif {
    display: none;
    z-index: 99999999;
    position: fixed;
}

/* loader end*/

/** setting page design start*/

.settings-content {
    padding: 10px 20px;
}

.title {
    font-weight: bold;
    margin-bottom: 10px;
}

.required {
    color: red;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.radio-option input {
    margin-right: 8px;
    cursor: pointer;
}

.save-btn {
    background: #0078d7;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin: 15px auto 0;
}

.save-btn:hover {
    background: #005fa3;
}

/** setting page end**/
/** sync with canto tab conatent form start*/
.sync-with-canto-content {
    padding: 0px 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Each field */
.form-group {
    flex: 1 1 45%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}

.required {
    color: red;
}

input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.options {
    display: flex;
    gap: 15px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    width: auto;
    min-width: 140px;
    height: auto;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: #0056b3;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        flex: 1 1 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/** sync with canto tab conatent form end*/
.no-media {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 50px 20px;
    color: #666;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
}

.no-media h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

#sync_with_canto_search_bar {
    display: none;
}

/** model popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.overlay .modal_box {
    background: #fff;
    border-radius: 8px;
    width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.overlay .modal_header {
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.overlay .modal_header h3 {
    margin: 0;
    font-size: 18px;
    color: #f7931e;
    padding-bottom: 8px;
}

.overlay .modal_header .close {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.overlay .modal_content {
    padding: 10px 16px;
    overflow-y: auto;
    flex: 1;
    background-color: #fff;
    color: #333;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.overlay .modal_box .close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 20px;
    cursor: pointer;
    color: #ccc;
    font-weight: bold;
}

.overlay .modal_box .close:hover {
    color: #837a7a;
}

.overlay .modal_content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overlay .form-group label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.overlay .radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.overlay .radio-group label {
    font-weight: normal;
    color: #444;
}

.overlay .form-actions {
    text-align: right;
    margin-top: 10px;
}

.overlay .form-actions button {
    background-color: #f7931e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.overlay .form-actions button:hover {
    background-color: #d97d13;
}

.overlay #formErrorMsg {
    color: red;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}


.overlay .search-section strong {
    display: block;
    margin-bottom: 4px;
    /* reduced */
    color: #222;
    font-weight: 600;
}

.overlay .search-section label {
    display: inline-block;
    margin-right: 8px;
    /* tighter spacing */
    margin-bottom: 4px;
    cursor: pointer;
    color: #444;
}

.overlay .radio-group {
    margin: 6px 0;
    /* reduced vertical spacing */
}

.overlay .field-group {
    margin-top: 6px;
}

.overlay .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 8px;
    /* tighter grid gap */
    margin-top: 2px;
}

.overlay .save-row {
    display: flex;
    align-items: center;
    /* vertically center both text and button */
    justify-content: space-between;
    /* keep text left, button right */
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding: 8px 0 0 0;
    /* even padding on top */
}

.overlay .save-row span {
    font-size: 13px;
    color: #333;
}

.overlay .save-btn {
    background-color: #00a3e0;
    color: #fff;
    border: none;
    padding: 4px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    height: 26px;
    /* gives consistent height */
    line-height: 1;
    display: flex;
    align-items: center;
    /* centers text vertically */
    justify-content: center;
    transition: background 0.2s;
}

.overlay .save-btn:hover {
    background-color: #008ac2;
}

/* modal code end */

.upload_on_button {
    position: relative;
    display: inline-block;

}

#clear_update_album_id {
    display: none;
    position: absolute;
    top: -10px;
    right: -8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    background: black;
    border-radius: 50%;
    padding: 5px 8px 5px 8px;
    font-size: 10px;

}

#up_content_data table td tr {
    color: #000;
    border: none;
}