.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn {
    padding: 8px 20px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для отключенных пользователей */
.list-group-item.disabled-user {
    background-color: #f8f9fa !important;
    opacity: 0.7;
}

.disabled-user .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Стили для кнопок статуса */
.btn-group .btn {
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Улучшенные бейджи статуса */
.badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

/* Стили для модального окна продления доступа */
#extendAccessModal .alert {
    font-size: 0.9em;
}

#extendAccessModal .form-control,
#extendAccessModal .form-select {
    font-size: 0.9em;
}

/* Анимация для скрытия/показа поля количества */
#amountFieldContainer {
    transition: opacity 0.3s ease, height 0.3s ease;
}

#amountFieldContainer.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Анимация для бейджей истекающих аккаунтов */
.badge.bg-warning {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Улучшенная группа кнопок */
.btn-group .btn-sm {
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
}

/* Стили для модального окна уведомления о подписке */
#subscriptionWarningModal .modal-content {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

#subscriptionWarningModal .modal-header {
    border-bottom: 1px solid #ffc107;
}

#subscriptionWarningModal .fa-clock {
    animation: pulse-warning 2s infinite;
}

#subscriptionWarningModal .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

/* Анимация для иконки часов */
@keyframes pulse-clock {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#subscriptionWarningModal .fa-clock {
    animation: pulse-clock 2s infinite;
}

/* Стили для отображения информации о подписке на главной странице */
#subscriptionInfo {
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
}

#subscriptionInfo .alert {
    border-radius: 10px;
    border-width: 2px;
    font-size: 0.95em;
    margin: 0 !important;
    padding: 0.75rem !important;
    width: 100% !important;
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 576px) {
    #subscriptionInfo .alert {
        font-size: 0.85em !important;
        padding: 0.6rem !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    #subscriptionInfo .alert i {
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
    }
    
    #subscriptionInfo .alert strong {
        font-size: 0.9em;
        display: block;
        margin-bottom: 0.2rem;
    }
    
    #subscriptionInfo .alert small {
        font-size: 0.75em;
        line-height: 1.2;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
    #subscriptionInfo .alert {
        font-size: 0.8em !important;
        padding: 0.5rem !important;
        margin: 0 !important;
    }
    
    #subscriptionInfo .alert i {
        font-size: 0.9rem !important;
        margin-right: 0.4rem !important;
    }
    
    #subscriptionInfo .alert strong {
        font-size: 0.85em;
    }
    
    #subscriptionInfo .alert small {
        font-size: 0.7em;
    }
}

/* Обеспечиваем правильное отображение card-body */
.card-body {
    padding: 1rem;
    overflow: visible;
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
    }
}

/* Фиксируем позиционирование блока информации о подписке */
#subscriptionInfo {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Убираем сложные селекторы - они удалены */

#subscriptionInfo .alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    border-color: #198754;
}

#subscriptionInfo .alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border-color: #0dcaf0;
}

#subscriptionInfo .alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border-color: #ffc107;
    animation: pulse-warning-bg 3s infinite;
}

#subscriptionInfo .alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05));
    border-color: #dc3545;
    animation: pulse-danger-bg 2s infinite;
}

@keyframes pulse-warning-bg {
    0% { background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05)); }
    50% { background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1)); }
    100% { background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05)); }
}

@keyframes pulse-danger-bg {
    0% { background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05)); }
    50% { background: linear-gradient(135deg, rgba(220, 53, 69, 0.25), rgba(220, 53, 69, 0.1)); }
    100% { background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.05)); }
}

#subscriptionInfo .fa-infinity {
    color: #198754;
}

#subscriptionInfo .fa-calendar-check {
    color: #0dcaf0;
}

#subscriptionInfo .fa-clock {
    color: #ffc107;
}

#subscriptionInfo .fa-exclamation-triangle {
    color: #dc3545;
}

/* Стили для блока пожелания дня */
#dailyQuote {
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
}

#dailyQuote .alert {
    border-radius: 10px;
    border-width: 2px;
    font-size: 0.95em;
    margin: 0 !important;
    padding: 0.75rem !important;
    width: 100% !important;
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border-color: #0d6efd;
}

#dailyQuote .fa-quote-left {
    color: #0d6efd;
}

/* Адаптивные стили для блока пожелания дня */
@media (max-width: 576px) {
    #dailyQuote .alert {
        font-size: 0.85em !important;
        padding: 0.6rem !important;
        border-radius: 8px !important;
    }
    
    #dailyQuote .alert i {
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
    }
    
    #dailyQuote .alert strong {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    #dailyQuote .alert {
        font-size: 0.8em !important;
        padding: 0.5rem !important;
    }
    
    #dailyQuote .alert i {
        font-size: 0.9rem !important;
        margin-right: 0.4rem !important;
    }
    
    #dailyQuote .alert strong {
        font-size: 0.85em;
    }
} 