.arkos-bim-library {
    position: relative;
    padding: 54px 0 80px;
    background: #fff;
}

.arkos-bim-library__header {
    max-width: 760px;
    margin-bottom: 24px;
}

.arkos-bim-library__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #171717;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.arkos-bim-library__header h1 {
    margin: 0 0 12px;
    color: #181818;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.arkos-bim-library__header p {
    margin: 0;
    color: #818181;
    font-size: 18px;
    line-height: 1.6;
}

/* Breadcrumb */

.arkos-bim-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 32px;
    padding: 12px 16px;
    border: 1px solid #ededed;
    border-radius: 12px;
    background: #fafafa;
}

.arkos-bim-breadcrumb > span {
    color: #a1a1a1;
    font-size: 18px;
}

.arkos-bim-breadcrumb__item {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #555;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color 180ms ease;
}

.arkos-bim-breadcrumb__item:hover {
    color: #111;
}

.arkos-bim-breadcrumb__item:last-child {
    color: #111;
    font-weight: 600;
}

/* Status */

.arkos-bim-library__status {
    min-height: 0;
    margin: 0;
    color: #777;
    font-size: 14px;
}

.arkos-bim-library__status:not(:empty) {
    min-height: 22px;
    margin-bottom: 12px;
}

/* Pastas */

.arkos-bim-library__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.arkos-bim-folder {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 106px;
    padding: 22px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fff;
    color: #161616;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.arkos-bim-folder:hover {
    border-color: #d4d4d4;
    background: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.arkos-bim-folder__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5dc;
    color: #f4b633;
}

.arkos-bim-folder__icon svg {
    width: 27px;
    height: 27px;
}

.arkos-bim-folder__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.arkos-bim-folder__content strong {
    overflow: hidden;
    color: #181818;
    font-size: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arkos-bim-folder__content small {
    color: #929292;
    font-size: 14px;
}

/* Arquivos */

.arkos-bim-library__files {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.arkos-bim-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 15px 18px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    background: #fff;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.arkos-bim-file:hover {
    border-color: #d7d7d7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.arkos-bim-file__info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.arkos-bim-file__type {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f1f1;
    color: #444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.arkos-bim-file__type--rvt {
    background: #eaf2ff;
    color: #2868c7;
}

.arkos-bim-file__type--pdf {
    background: #fff0ef;
    color: #d8433e;
}

.arkos-bim-file__type--dwg {
    background: #fff5df;
    color: #a86d00;
}

.arkos-bim-file__type--skp {
    background: #eef8ef;
    color: #39804a;
}

.arkos-bim-file__type--zip {
    background: #f3efff;
    color: #6847aa;
}

.arkos-bim-file__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.arkos-bim-file__text strong {
    overflow: hidden;
    color: #171717;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arkos-bim-file__text small {
    color: #929292;
    font-size: 13px;
}

.arkos-bim-file__download {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 10px;
    background: #171717;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.arkos-bim-file__download:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

.arkos-bim-file__download svg {
    width: 18px;
    height: 18px;
}

.arkos-bim-library__error,
.arkos-bim-library__empty {
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fafafa;
    color: #555;
}

/* Loading */

.arkos-bim-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.84);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
    backdrop-filter: blur(4px);
}

.arkos-bim-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.arkos-bim-loading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 340px);
    padding: 34px 28px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.arkos-bim-loading__spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 3px solid #e4e4e4;
    border-top-color: #111;
    border-radius: 50%;
    animation: arkos-bim-spin 700ms linear infinite;
}

.arkos-bim-loading__content strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.arkos-bim-loading__content small {
    color: #777;
    line-height: 1.5;
}

.arkos-bim-library.is-loading .arkos-bim-folder,
.arkos-bim-library.is-loading .arkos-bim-breadcrumb__item {
    pointer-events: none;
}

@keyframes arkos-bim-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .arkos-bim-library {
        padding: 40px 0 60px;
    }

    .arkos-bim-library__header h1 {
        font-size: 36px;
    }

    .arkos-bim-library__header p {
        font-size: 16px;
    }

    .arkos-bim-breadcrumb {
        margin-bottom: 24px;
        padding: 10px 12px;
    }

    .arkos-bim-library__grid {
        grid-template-columns: 1fr;
    }

    .arkos-bim-folder {
        min-height: 94px;
        padding: 18px;
    }

    .arkos-bim-file {
        align-items: stretch;
        flex-direction: column;
    }

    .arkos-bim-file__download {
        width: 100%;
    }

      .arkos-bim-library {
        padding: 40px 0 60px;
    }

    .arkos-bim-library__header h1 {
        font-size: 36px;
    }

    .arkos-bim-library__header p {
        font-size: 16px;
    }

    .arkos-bim-breadcrumb {
        margin-bottom: 24px;
        padding: 10px 12px;
    }

    .arkos-bim-library__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .arkos-bim-folder {
        min-height: 68px;
        padding: 13px 14px;
    }

    .arkos-bim-file {
        align-items: stretch;
        flex-direction: column;
    }

    .arkos-bim-file__download {
        width: 100%;
    }
}

/* pastas */

/* Pastas */

.arkos-bim-library__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.arkos-bim-folder {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    background: #fff;
    color: #161616;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.arkos-bim-folder:hover {
    border-color: #d5d5d5;
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.arkos-bim-folder__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff5dc;
    color: #f4b633;
}

.arkos-bim-folder__icon svg {
    width: 22px;
    height: 22px;
}

.arkos-bim-folder__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.arkos-bim-folder__content strong {
    overflow: hidden;
    color: #181818;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arkos-bim-folder__content small {
    color: #929292;
    font-size: 12px;
}

@media (max-width: 1199px) {
    .arkos-bim-library__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .arkos-bim-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

