/* General */
:root {

    --font-poppins: "Poppins", sans-serif;
    --body-color: #ffffff;  --theme-color: #51AF5B;
    --theme-hover-bg: #b4f9bb;
    --dark-theme-color: #1b1b1b;
    --dark-theme-body-color: #131313;
    --dark-border-color: #24262d;
}

body {
    background-color: #F9F9F9 !important;
    padding: 10px;
}

a {
    color: #333844;
    text-decoration: none !important;
    cursor: pointer;
}

#nav a,
#fab a {
    color: #333844;
}

#nav,
#nav .dropdown-menu,
.bg-main {
    background-color: white;
    margin-bottom: 10px;
}

#nav .dropdown-menu>a:hover {
    color: #fff;
    background-color: var(--theme-color) !important;
}

#actions {
    text-align: end;
}

#actions>a {
    display: inline-block;
    line-height: 3rem;
    text-align: center;
    width: 10%;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 10px;
    margin: 5px;
    color: #fff;
    background-color: var(--theme-color);
}

#actions>a>i {
    margin-right: .25rem;
}

#actions>a+a {
    border-left: 1px solid #dee2e6;
}

#multi_selection_toggle>i {
    font-size: 20px;
}

.breadcrumb-item:not(.active) {
    transition: .2s color;
}

.breadcrumb-item:not(.active):hover {
    cursor: pointer;
    color: #75C7C3;
}

.breadcrumb {
    padding: 0px 25px !important;
    position: relative;
    margin-bottom: 0px !important;
    background-color: #fff !important;
}

#to-previous {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 5;
}

#main {
    width: 100%;
}

@media screen and (min-width: 992px) {
    #main {
        padding: 1rem;
    }

    .invisible-lg {
        visibility: hidden;
    }
}

#tree {
    background-color: white;
    width: 300px;
}

@media screen and (max-width: 991px) {
    #tree {
        position: absolute;
        z-index: 999;
        left: 0;
        transform: translateX(-100%);
        transition: 1s transform;
    }

    #tree.in {
        transform: translateX(0);
    }
}

#empty {
    height: 60vh;
    color: #333844;
}

#empty:not(.d-none) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#empty>i {
    font-size: 10rem;
}

.carousel-image {
    height: 50vh;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.carousel-indicators {
    bottom: 0;
}

.carousel-label,
.carousel-label:hover {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent 10px, rgba(0, 0, 0, .4), rgba(0, 0, 0, .5));
    padding: 40px 20px 30px;
    width: 100%;
    color: white;
    word-break: break-word;
    text-align: center;
}

.carousel-control-background {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    box-shadow: 0 0 10px #666;
    background-color: #666;
}

#uploadForm>.dz-default.dz-message {
    border: 2px dashed #ccc;
    border-radius: 5px;
    color: #aaa;
    margin: 0;
    padding: 3rem 0;
}

.disabled {
    pointer-events: none;
}

/* Loader */

#lfm-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: gray;
    opacity: 0.7;
    z-index: 9999;
    text-align: center;
}

#lfm-loader:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

#lfm-loader img {
    width: 100px;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
}

/* Sidebar */

.nav-pills>.nav-item>.nav-link {
    height: 5rem;
    display: flex;
    align-items: center;
}

.nav-pills>.sub-item>.nav-link {
    height: 3rem;
    padding-left: 3rem;
}

.nav-pills>li.active>a,
.nav-pills>li:hover>a {
    background-color: #ddd;
    border-radius: 0;
    color: #333844;
}

/* Items */

#pagination>ul.pagination {
    justify-content: center;
}

#pagination.preserve_actions_space {
    /* padding-top: 1em; */
    padding-bottom: 0rem;
}

#total-items {
    font-size: 14px;
    margin-top: 2px;
}

time {
    font-size: .9rem;
}

.info>* {
    max-width: calc(100vw - 70px - 60px);
}

/* Mime icon generator overwrite */

.grid .mime-icon:before {
    top: calc(45% - 1rem);
    font-size: 2rem;
}

.list .mime-icon .ico:before {
    top: calc(45% - .5rem);
    font-size: 1rem;
}

.mime-icon .ico {
    height: 100%;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

/* Floating action buttons */

.fab-wrapper {
    margin: 1.5rem;
    right: 0;
    bottom: 0;
    position: fixed;
}

.fab-wrapper .fab-button {
    position: relative;
    background-color: #333844;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.fab-wrapper .fab-toggle {
    z-index: 1;
}

.fab-wrapper .fab-toggle i {
    -webkit-transform: scale(1) rotate(0deg);
    transform: scale(1) rotate(0deg);
    -webkit-transition: -webkit-transform 350ms;
    transition: transform 350ms;
}

.fab-wrapper.fab-expand .fab-toggle i {
    -webkit-transform: scale(1) rotate(-225deg);
    transform: scale(1) rotate(-225deg);
    -webkit-transition: -webkit-transform 350ms;
    transition: transform 350ms;
}

.fab-wrapper .fab-action {
    z-index: -1;
    margin-bottom: -3.5rem;
    opacity: 0;
    transition: margin-bottom 350ms, opacity 350ms;
}

.fab-wrapper.fab-expand .fab-action {
    margin-bottom: 1rem;
    opacity: 1;
    transition: margin-bottom 350ms, opacity 350ms;
}

.fab-wrapper .fab-action:before {
    position: absolute;
    right: 4rem;
    padding: .15rem .75rem;
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .4);
    color: rgba(255, 255, 255, .8);
    text-align: right;
    font-size: .9rem;
    white-space: nowrap;
    content: attr(data-label);
}



/* custom css */


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

.btn-primary:hover {
    background-color: #fff !important;
    border-color: var(--theme-color) !important;
    color: var(--theme-color) !important;
}

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

.btn-outline-primary:hover {
    background-color: var(--theme-color) !important;
    color: #fff !important;
}

.dropdown-toggle::after {
    display: none !important;
}

.sortBtn {
    border-radius: 6px;
    padding: 5px 20px !important;
    border: 1px solid #ddd !important;
    margin-top: 5px;
}

#multi_selection_toggle {
    border-radius: 6px;
    padding: 8px 20px !important;
    border: 1px solid #ddd !important;
    margin-top: 5px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:first-child {
    border-top: none;
}

#content .dropdown-menu li {
    border-top: 1px solid rgb(221, 221, 221);
}

#content .dropdown-menu li:first-child {
    border-top: none !important;
}


#confirm .modal-footer {
    border-top: none;
}

#confirm .modal-content {
    box-shadow: 0px 2px 4px 0px #0c0c0c5a;
    ;
}

#confirm .modal-body {
    padding: 20px;
    font-size: 22px;
}

#dialog .modal-footer {
    border-top: none;
}

#dialog button {
    width: 70px;
}

#nav-buttons [data-action="rename"],
#nav-buttons [data-action="resize"],
#nav-buttons [data-action="download"],
#nav-buttons [data-action="preview"],
#nav-buttons [data-action="crop"] {
    display: none !important;
}

#nav-buttons [data-action="trash"] {
    background-color: red;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-top: 5px;
    margin-right: 5px;
    border-radius: 5px;
    color: white;
}

.gridCart {
    display: inline-block;
}

/* .square .folder-icon-container {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
} */


.list a {
    border-top: 1px solid rgb(221, 221, 221);
    padding: 5px;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding-right: 10px;
}

.list a:last-child {
    border-bottom: 1px solid rgb(221, 221, 221);
}

.list a:has(.square.selected) {
    border: 1px solid var(--theme-color);
}

.list .square {
    margin-right: 1rem;
    width: 70px;
    height: 70px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.card:has(.selected) {
    border: 2px solid var(--theme-color);
}

.grid .item_name {
    margin-top: -1px;
    padding: 10px;
    text-align: center;
    /* max-width: calc(285px); */
    font-weight: 600;
}

.list .item_name {
    font-size: 1.25rem;
    padding: 5px 0 5px;
}


#confirm-button-yes {
    background: red !important;
    border: red !important;
}


/* .folder-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
} */

.gridDotBtn {
    background-color: #fff;
    color: #131313;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
}

.listDotBtn {
    background-color: #e8e7e7;
    color: #000000;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 200px;
    /* Fixed height for all cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space between content */
}

.card:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 8px rgba(6, 177, 234, 0.425);
}

/* .image-container {
    height: 155px;
    width: 100%;
    overflow: hidden;
    position: relative;
} */

.card-img-top {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.card-body.folder-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.folder-icon-container {
    font-size: 3.5rem;
    color: #4285F4;
    padding: 10px;
}

.card-body h6 {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-body p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.dropdown-container {
    position: absolute;
    top: 5px;
    right: 5px;
}


.grid.square {
    height: 150px;
    width: 100%;
    position: relative;
}

.square .image-container,
.square .folder-icon-container {
    height: 100%;
    width: 100%;
    text-align: center;
}

.folder-icon-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.page-item.active .page-link{
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.paginationBox{
    margin-bottom: -10px !important;
}
.paginationBox.custom-hide {
    display: none !important;
}

.sm-gap{
    gap: 5px ;
    @media screen and (min-width: 768px) {
        gap: 0px ;
    }
}

[data-display] {
    padding: 5px 20px;
    margin-top: 5px;
    border-radius: 5px;
    margin-left: 4px;
    color: black;
    background: #f1f1f1;
}

/* Active state */
[data-display].active-display {
    background: var(--theme-color) !important;
}




