body {
    padding-top: 70px;
}

/* Ensure the body allows for scrolling even with full-height elements */
/* Sticky Footer Logic */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Push the footer to the bottom */
main {
    flex: 1 0 auto;
}

/* Ensure the footer stays its own size */
footer {
    flex-shrink: 0;
    width: 100%;
}

/* Spacing fix so content isn't hidden under fixed navbar */
body {
    padding-top: 0 !important; /* We handle this with margin-top on main instead */
}

/* Force Purple on all Primary and Success buttons */
body .btn-primary,
body .btn-success,
body .bg-primary,
body .btn-dark,
body .btn-info,
body .badge.bg-success,
body .badge.bg-primary {
    background-color: #5b0694 !important;
    border-color: #5b0694 !important;
    color: #ffffff !important;
}

/* Fix Hover for all of them */
body .btn-primary:hover,
body .btn-success:hover,
body .btn-dark:hover,
body .btn-info:hover {
    background-color: #450472 !important;
    border-color: #450472 !important;
}

/* Outline buttons */
body .btn-outline-primary {
    color: #5b0694 !important;
    border-color: #5b0694 !important;
}

body .btn-outline-primary:hover {
    background-color: #5b0694 !important;
    color: #ffffff !important;
}

/* Ensure the cards use the purple border */
body .card {
    border-color: #5b0694 !important;
}

/* Navigation brand/links */
body .navbar-brand,
body .nav-link {
    color: #5b0694 !important;
}

.profile-image-col {
    padding: 0;
}

.profile-image-col img {
    width: 100%;
    height: auto;        /* preserves natural aspect ratio */
    display: block;      /* removes inline gaps */
    object-fit: contain; /* ensures full image is visible */
}

/* Styling Allauth's default 'as_p' output */
.custom-form p {
    margin-bottom: 1rem;
}

.custom-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="password"],
.custom-form input[type="number"],
.custom-form select,
.custom-form textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    /* Square styling to match your listings */
    transition: border-color 0.15s ease-in-out;
}

.custom-form input:focus {
    outline: none;
    border-color: #5b0694;
    box-shadow: 0 0 0 0.2rem rgba(91, 6, 148, 0.25);
}

/* Fixes for allauth error lists */
.errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

/* Hide the actual radio button circles */
.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

/* Color stars when checked or hovered */
.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffc107;
}