html, body {
    height: 100%;
    overflow: hidden;
}

#layout-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .file-manager-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        z-index: 1050;
        background: #fff;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .file-manager-sidebar.menubar-show {
        background-color:white;
        left: 0;
    }

    .dropdown-menu {
        position: fixed;
        will-change: transform;
    }

    .btn-icon {
        min-width: 40px;
        min-height: 40px;
    }

    .modal .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .filepond--root.mobile-friendly .filepond--drop-label {
        font-size: 1rem;
        padding: 1.5rem 0.5rem;
    }

    .filepond--file-action-button {
        width: 2rem !important;
        height: 2rem !important;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .table td, .table th {
        padding: 0.75rem 0.5rem;
    }

    input[type="file"] {
        font-size: 16px;
    }

    .file-actions, .folder-actions {
        opacity: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .folder-actions {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .file-manager-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        z-index: 1045;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .file-manager-sidebar.menubar-show {
        left: 0;
    }
}

@media (max-width: 576px) {
    .folder-grid-small {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 12px;
    }

    .folders-container {
        max-height: 300px;
    }
}

@media (min-width: 768px) {
    .folder-grid-small {
        grid-template-columns: repeat(3, 1fr);
    }

    .folders-container {
        max-height: 300px;
    }
}

@media (min-width: 992px) {
    .folder-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .folder-grid-small {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) {
    .folder-grid-small {
        grid-template-columns: repeat(6, 1fr);
    }
}

.file-manager-menu .register-container {
  gap: 6px !important;
}

.file-manager-menu .list-group-item {
  padding-top: 6px  !important;
  padding-bottom: 6px  !important;
}

.channel-dropdown:focus,
.channel-dropdown:active {
    box-shadow: none !important;
}

.ri-folder-2-fill.text-warning {
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.2));
}

.selected {
    border-radius: 15px !important;
    background-color: rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

.selected-card {
    border-color: transparent !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 15px !important;
}

#fileListContainer td {
    vertical-align: middle;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #0d6efd;
    font-weight: 500;
}

.file-card {
    transition: all 0.2s ease;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-state {
    padding: 2rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.file-actions, .channel-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.file-icon {
    font-size: 2.5rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-manager-sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--vz-card-bg);
    border-right: 1px solid var(--vz-border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.file-manager-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    height: auto;
}

.file-manager-content-scroll {
    flex: 1;
    overflow: auto;
    padding-bottom: 20px;
    height: auto;
}

.file-menu-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.file-menu-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    height: auto;
    max-height: none;
}

[data-simplebar] {
    height: 100%;
}

.simplebar-content-wrapper {
    height: auto !important;
}

.simplebar-content {
    height: auto !important;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

.file-manager-menu {
    padding: 0;
}

.file-manager-menu li a {
    display: flex;
    align-items: center;
    color: var(--vz-body-color);
    padding: 10px 2px !important;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.file-manager-menu li a:hover,
.file-manager-menu li a.active {
    background-color: var(--vz-light);
    color: var(--vz-primary);
}

.file-manager-content {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-manager-content-scroll {
    flex: 1;
    overflow: auto;
    height: calc(100vh - 70px);
    padding-bottom: 20px;
}

@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .file-manager-content-scroll {
            height: 100%;
            max-height: calc(100vh - 100px);
        }
    }
}

.file-menu-sidebar-scroll {
    height: auto;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content-resize-watcher {
    width: 100%;
    height: 100%;
    position: relative;
}

.folders-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.folder-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 16px;
    width: 100%;
    margin: 0;
    height: auto;
}

.folders-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 6px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folder-card {
    position: relative;
    height: 100%;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.folder-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-icon {
    text-align: center;
    margin-bottom: 14px;
}

.folder-icon i {
    font-size: 2.8rem;
    color: #ffc107;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.folder-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    color: #333;
}

.folder-details {
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #777;
}

.folder-actions {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folders-container.is-scrollable::after {
    opacity: 1;
}

.folder-card:hover .folder-actions {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    top: 0;
    height: 100%;
    width: 35px;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-indicator-right {
    right: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9) 70%);
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(0);
    }
    60% {
        transform: translateX(calc(-100% + 100px));
    }
    90% {
        transform: translateX(calc(-100% + 100px));
    }
    100% {
        transform: translateX(0);
    }
}

.folder-name-scrolling {
    position: absolute;
    white-space: nowrap;
    animation: scrollText 4s ease-in-out infinite;
    display: inline-block;
    padding: 0;
    margin: 0;
    left: 0;
    top: 0;
}

.folder-name {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    width: 100%;
    height: 1.5em;
}

.file-revisions-container {
    max-height: 300px;
    overflow-y: auto;
}

.file-revision-item {
    background-color: var(--bs-gray-50);
    border: 1px solid var(--bs-border-color);
    transition: background-color 0.15s ease-in-out;
}

.file-revision-item:hover {
    background-color: var(--bs-gray-100);
}

.file-revision-info {
    flex-grow: 1;
    min-width: 0;
}

.file-revision-actions {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .file-revision-item {
        padding: 0.75rem 0.5rem;
    }

    .file-revision-actions {
        width: 100%;
        justify-content: center;
    }

    .file-grid-item .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 475px) {
    .file-revision-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

.custom-bg-position {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60vh;
}

.custom-bg {
    background-image: url(../images/medvestcapital-bg.png);
    background-position: center;
    background-size: cover;
}

@media (max-width: 575.98px) {
        .custom-bg-position {
        height: 80vh;
    }

    .custom-bg {
        background-repeat: no-repeat;
        background-size: 550%;
        background-position: 65% 45%;        
    }
}

@media (max-width: 767.98px) {
    .auth-page-wrapper {
        max-height: 100vh;
        overflow-y: auto;
        position: relative;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .auth-page-wrapper {
        padding-bottom: 6rem;
    }

    .auth-page-content img {
        max-width: 200px;
        width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-page-content > .container > .row {
        margin-left: 0;
        margin-right: 0;
    }
}


.navbar-header {
    position: relative;
}

.mobile-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}