/* ============================================
   DRP Components CSS
   Organized by component with CSS nesting
   ============================================ */


/* ============================================
   Status Column Component (RadzenDataGridColumnStatus)
   ============================================ */
.drp-status-column {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 120px;
    padding: var(--space-1);
}

.drp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-transform: capitalize;
    min-height: 24px;
    max-width: 140px;
    background: color-mix(in srgb, var(--status-color, var(--muted)) 15%, white);
    color: var(--status-color, var(--muted-foreground));
    border: 1px solid color-mix(in srgb, var(--status-color, var(--border)) 25%, transparent);

    &:hover {
        background: color-mix(in srgb, var(--status-color, var(--muted)) 20%, white);
        border-color: color-mix(in srgb, var(--status-color, var(--border)) 35%, transparent);
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);

        .drp-status-badge__indicator {
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-color, transparent) 15%, white);
        }
    }
}

.drp-status-badge__indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-color, currentColor);
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-color, transparent) 10%, white);
}

.drp-status-badge__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.drp-status-filter {
    width: 100%;
    min-width: 140px;
}

.drp-status-filter__dropdown {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--input) !important;
    background: var(--background) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;

    &:focus,
    &:focus-within {
        outline: none !important;
        border-color: var(--ring) !important;
        box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 0.1) !important;
    }
}

.drp-status-edit {
    width: 100%;
    min-width: 140px;
}

.drp-status-edit__dropdown {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--input) !important;
    background: var(--background) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;

    &:focus,
    &:focus-within {
        outline: none !important;
        border-color: var(--ring) !important;
        box-shadow: 0 0 0 3px oklch(from var(--ring) l c h / 0.1) !important;
    }
}

/* ============================================
   Responsive Behavior
   ============================================ */
@media (max-width: 768px) {
    .drp-status-badge {
        padding: var(--space-0-5) var(--space-2);
        font-size: 0.6875rem;
        min-height: 20px;
        max-width: 120px;
    }

    .drp-status-badge__indicator {
        width: 4px;
        height: 4px;
    }

    .drp-status-column {
        min-width: 100px;
    }
}