/* Status Modal Overlay */
.status-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.status-modal-overlay.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 50px;
}

.status-modal-overlay.fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.status-modal-overlay.fadeOut {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Status Modal Container */
.status-modal {
    background-color: #ffffff;
    border-radius: 6px;
    max-width: 340px;
    width: calc(100% - 32px);
    overflow: visible;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: auto;
}

.status-modal.slideIn {
    animation: slideUpFromBottom 0.3s ease-out;
}

.status-modal.slideOut {
    animation: slideDownToBottom 0.3s ease-out forwards;
}

/* Modal Header */
.status-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    gap: 16px;
}

.status-modal-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.status-modal-icon svg {
    width: 100%;
    height: 100%;
}

.status-modal-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    width: 100%;
}

.status-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 25px;
    letter-spacing: -0.45px;
    margin: 0;
}

.status-modal-description {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    line-height: 18px;
    letter-spacing: -0.4px;
    margin: 0;
}

.status-modal-description-highlight {
    color: #0f172a;
}

/* Status Selector */
.status-selector-wrapper {
    padding: 0 32px;
    margin-bottom: 16px;
    position: relative;
}

.status-combobox {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    height: 40px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.status-combobox:hover {
    border-color: #d4d4d8;
}

.status-combobox-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 13px;
    gap: 10px;
}

.status-combobox-label {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    line-height: 20px;
}

.status-combobox-emoji {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-combobox-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-combobox-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-combobox.open .status-combobox-arrow {
    transform: rotate(180deg);
}

.status-combobox-arrow svg {
    width: 100%;
    height: 100%;
}

/* Status Listbox */
.status-listbox {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    max-height: 0;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.status-listbox.open {
    max-height: 264px;
    opacity: 1;
}

.status-listbox-items {
    padding: 4px;
    overflow-y: auto;
    max-height: 264px;
}

.status-list-item {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.status-list-item:hover {
    background-color: #f8fafc;
}

.status-list-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-list-item.disabled:hover {
    background-color: transparent;
}

.status-list-item-label {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    line-height: 20px;
}

.status-list-item.disabled .status-list-item-label {
    color: #64748b;
}

.status-list-item:not(.disabled) .status-list-item-label {
    color: #0f172a;
}

.status-list-item-emoji {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-list-item-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Button */
.status-modal-button {
    margin: 0 32px 16px;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: calc(100% - 64px);
}

.status-modal-button:hover {
    background-color: #1e293b;
}

.status-modal-button:active {
    transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownToBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Scrollbar Styling */
.status-listbox-items::-webkit-scrollbar {
    width: 6px;
}

.status-listbox-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.status-listbox-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.status-listbox-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile adjustments */
@media (max-height: 600px) {
    .status-modal-overlay.active {
        padding-bottom: 20px;
    }
}
