/* =============================================
   Button Styles - GoForLo Dashboard
   ============================================= */

/* Action Button Container */
.action-button {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Base Button Styles */
.btn-action {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6366f1;
    color: white;
    border-color: #4f46e5;
}

/* Full Width Buttons */
.btn-full {
    width: 100%;
    margin-bottom: 0;
}

/* Half Width Buttons Row */
.btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-half {
    flex: 1;
    width: calc(50% - 5px);
    margin-bottom: 0;
}

/* Hover State */
.btn-action:hover:not(:disabled) {
    background-color: #4f46e5;
    border-color: #4338ca;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* Active State */
.btn-action:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

/* Buffalo Button (Red) */
.btn-buffalo {
    background-color: #ef4444;
    border-color: #dc2626;
    color: white;
}

.btn-buffalo:hover {
    background-color: #dc2626;
    border-color: #b91c1c;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Disabled Button State */
.btn-action:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #d1d5db;
}

.btn-action:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Button Focus State (Accessibility) */
.btn-action:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-button {
        padding: 15px;
        gap: 8px;
    }

    .btn-action {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 42px;
    }

    .btn-half {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .action-button {
        padding: 12px;
        gap: 6px;
    }

    .btn-action {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 40px;
    }

    .btn-row {
        flex-direction: column;
        gap: 6px;
    }

    .btn-half {
        width: 100%;
    }
}

/* Loading State */
.btn-action.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-action.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.btn-action.success {
    background-color: #10b981;
    border-color: #059669;
    color: white;
}

.btn-action.success:hover {
    background-color: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* Error State */
.btn-action.error {
    background-color: #ef4444;
    border-color: #dc2626;
    color: white;
}

.btn-action.error:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}
