/* 
 * Custom Admin Styles для Django Unfold
 * Используются CSS переменные Unfold вместо жестко заданных цветов
 */

/* Стили для статусов объектов недвижимости */
.rc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rc-status--in-title {
    margin-left: 12px;
}

.rc-status__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.rc-status__label {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 16px;
    border: 1px solid transparent;
}

/* Активный статус */
.rc-status--active .rc-status__dot {
    background: #16a34a;
    border-color: #15803d;
}

.rc-status--active .rc-status__label {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

/* Архивный статус */
.rc-status--archive .rc-status__dot {
    background: #f59e0b;
    border-color: #d97706;
}

.rc-status--archive .rc-status__label {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

/* Стоп статус */
.rc-status--stop .rc-status__dot {
    background: #ef4444;
    border-color: #dc2626;
}

.rc-status--stop .rc-status__label {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .rc-status--active .rc-status__label {
        background: rgba(22, 163, 74, 0.2);
        color: #4ade80;
        border-color: rgba(74, 222, 128, 0.3);
    }
    
    .rc-status--archive .rc-status__label {
        background: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
        border-color: rgba(251, 191, 36, 0.3);
    }
    
    .rc-status--stop .rc-status__label {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
        border-color: rgba(248, 113, 113, 0.3);
    }
}
