/* Standardized Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    text-align: center;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

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

/* Button Variants */
.btn-primary {
    background: var(--accent-color, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover, #2563eb);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    color: white !important;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color, #3b82f6);
    border: 1px solid var(--accent-color, #3b82f6);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.btn-danger {
    background: var(--danger-color, #ef4444);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-color, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
}

.btn-outline:hover {
    background: var(--surface-hover, rgba(0, 0, 0, 0.05));
    border-color: var(--text-secondary, #64748b);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
}

/* Button with Icon */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only.btn-sm {
    width: 36px;
    height: 36px;
}

.btn-icon-only.btn-lg {
    width: 52px;
    height: 52px;
}

/* Dark Mode Button Styles */
.dark-mode .btn-primary {
    background: var(--accent-color, #3b82f6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.dark-mode .btn-primary:hover {
    background: var(--accent-hover, #2563eb);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white !important;
}

.dark-mode .btn-secondary {
    color: var(--accent-color, #3b82f6);
    border-color: var(--accent-color, #3b82f6);
}

.dark-mode .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.15);
}

.dark-mode .btn-outline {
    color: var(--text-color, #f1f5f9);
    border-color: var(--border-color, #475569);
}

.dark-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary, #94a3b8);
}

/* Button Animation Effects */
@keyframes buttonPulse {
    0% { transform: translateY(-3px) scale(1.02); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-3px) scale(1.02); }
}

.btn-animated:hover {
    animation: buttonPulse 2s infinite;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none !important;
    }
    
    .btn::before {
        display: none !important;
    }
    
    .btn-animated:hover {
        animation: none !important;
    }
}
