/* Адаптация под мобильные устройства Telegram */
body {
    background: #f8f9fa;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
}

.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-circle.active { background: #28a745; }
.status-circle.inactive { background: #dc3545; } 

.spinner-border {
    vertical-align: middle;
    margin-right: 8px;
}

.alert-danger {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Стиль для подсказки региона */
.text-muted.small {
    font-size: 0.8em;
    opacity: 0.7;
}
/* Подсветка введенных ключевых слов */
.keyword-preview {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.keyword-badge {
    background: #e3f2fd;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

/* Анимация появления заданий */
.card {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Стили для бейджей */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}
