/* Root Container */
.bim-collapse {
    background-color: var(--bim-bg-color, #ffffff);
    border: 1px solid var(--bim-border-color, #d9d9d9);
    border-radius: 4px;
    font-size: 14px;
    color: var(--bim-text-color, rgba(0, 0, 0, 0.88));
}

.bim-collapse.is-ghost {
    background-color: transparent;
    border: none;
}

.bim-collapse.is-ghost .bim-collapse-item {
    border-bottom: none;
}

.bim-collapse.is-ghost .bim-collapse-header {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.bim-collapse.is-ghost .bim-collapse-content {
    background-color: transparent;
    border-top: none;
}

/* Item */
.bim-collapse-item {
    border-bottom: 1px solid var(--bim-border-color, #d9d9d9);
}

.bim-collapse-item:last-child {
    border-bottom: none;
}

.bim-collapse-item.is-disabled .bim-collapse-header {
    color: var(--bim-disabled-color, rgba(0, 0, 0, 0.25));
    cursor: not-allowed;
}

/* Header */
.bim-collapse-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bim-header-bg-color, rgba(0, 0, 0, 0.02));
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.bim-collapse-header:hover {
    background-color: var(--bim-header-hover-bg-color, rgba(0, 0, 0, 0.05));
}

/* Arrow Icon */
.bim-collapse-arrow {
    margin-right: 12px;
    font-size: 12px;
    width: 12px;
    height: 12px;
    transition: transform 0.24s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bim-collapse-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.bim-collapse-item.is-active .bim-collapse-arrow {
    transform: rotate(90deg);
}

/* Icon (User provided) */
.bim-collapse-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.bim-collapse-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Title */
.bim-collapse-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Extra */
.bim-collapse-extra {
    margin-left: auto;
}

/* Content */
.bim-collapse-content {
    overflow: hidden;
    background-color: var(--bim-content-bg-color, #ffffff);
    border-top: 1px solid var(--bim-border-color, #d9d9d9);
    transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.bim-collapse-content.is-hidden {
    display: none;
}

.bim-collapse-content-box {
}
