/**
 * Единые стили кнопок для всего проекта
 * Этап 1.1: Кнопки
 * 
 * Использованы лучшие стили:
 * - Primary: ripple эффект из Messenger
 * - Quick Action: shine эффект из Dashboard
 * - Градиент: linear-gradient(135deg, #10b981 0%, #3b82f6 100%)
 */

/* ==================== БАЗОВЫЕ СТИЛИ КНОПОК ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== РАЗМЕРЫ КНОПОК ==================== */

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-md {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ==================== PRIMARY КНОПКА (RIPPLE ЭФФЕКТ) ==================== */

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ==================== SECONDARY КНОПКА ==================== */

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ==================== SUCCESS КНОПКА ==================== */

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-success:active {
    transform: translateY(0);
}

/* ==================== DANGER КНОПКА ==================== */

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ==================== QUICK ACTION КНОПКА (SHINE ЭФФЕКТ) ==================== */

.btn-quick-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-quick-action:hover::before {
    left: 100%;
}

.btn-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-quick-action:active {
    transform: translateY(0);
}

/* ==================== КНОПКА С ИКОНКОЙ ==================== */

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon i {
    font-size: 1em;
}

/* ==================== КНОПКА ТОЛЬКО С ИКОНКОЙ ==================== */

.btn-icon-only {
    padding: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only.btn-sm {
    width: 32px;
    height: 32px;
    padding: 8px;
}

.btn-icon-only.btn-lg {
    width: 48px;
    height: 48px;
    padding: 16px;
}

/* ==================== OUTLINE ВАРИАНТЫ ==================== */

.btn-outline-primary {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-outline-primary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==================== LOADING СОСТОЯНИЕ ==================== */

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

