/* Accordion Components */

.accordion-item {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(31, 41, 55, 0.7);
    cursor: pointer;
    transition: background-color .2s ease;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.accordion-header:hover {
    background-color: rgba(55, 65, 81, 0.7);
}

.accordion-content {
    padding: 0 0.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out, padding-bottom 0.3s ease-out;
    position: relative;
    z-index: 1;
    background-color: rgba(31, 41, 55, 0.3);
}

.accordion-content.open {
    max-height: 1000px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: max-height 0.5s ease-in, padding-top 0.5s ease-in, padding-bottom 0.5s ease-in;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}
