﻿.back-btn-container {
    display: flex;
    justify-content: flex-start; /* default: left aligned */
    margin: 1rem 0 0.5rem 0;
}

/* Base button style */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #2e2b2b;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    /* Icon sizing consistency */
    .back-button i {
        font-size: 14px;
    }

    /* Hover (desktop) */
    .back-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
        text-decoration: none;
    }

    /* Active (tap / click) */
    .back-button:active {
        transform: translateY(1px);
    }

    /* Focus (accessibility) */
    .back-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
    }

/* Subtle border on light backgrounds */
.back-button {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Mobile: slightly bigger tap target */
@media (max-width: 768px) {
    .back-btn-container {
        margin: 0.25rem 0 0.5rem 0;
    }

    .back-button {
        padding: 0.65rem 0.9rem;
        font-size: 16px;
    }
}