.participant-name {
    flex-grow: 0 !important;
    width: 400px; 
}

.btn.sending {
    position: relative;
    color: transparent !important;
}

.btn.sending::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* General Body and Typography */
body {
    font-family: 'Inter', sans-serif; /* Modern sans-serif font */
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light gray background */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* A more distinct font for headings */
    font-weight: 700;
    color: #212529;
}

/* Custom styles for the alternative page */
.alternative-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff; /* Primary blue */
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: #555;
}

/* Comparison Table */
.comparison-table .table {
    border-radius: .5rem;
    overflow: hidden; /* Ensures rounded corners apply to table */
    border: 1px solid #dee2e6;
}

.comparison-table thead th {
    background-color: #007bff; /* Primary blue */
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.comparison-table tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2; /* Light stripe for readability */
}

.comparison-table tbody tr:hover {
    background-color: #e9ecef; /* Subtle hover effect */
}

/* Origin Story Card */
.origin-story-card {
    background-color: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

/* Testimonials */
.scrolling-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem; /* Space for scrollbar */
}

.testimonial-scroller {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.testimonial-card {
    flex: 0 0 auto; /* Don't grow, don't shrink, base on content */
    width: 300px; /* Fixed width for cards */
    margin-right: 1.5rem;
    background-color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

.testimonial-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.testimonial-card .card-body {
    padding: 1.5rem;
}

.testimonial-card .card-text {
    font-style: italic;
    color: #495057;
}

.testimonial-card .blockquote-footer {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alternative-header {
        font-size: 2rem;
    }
    .lead {
        font-size: 1rem;
    }
    .testimonial-card {
        width: 250px; /* Smaller width on smaller screens */
    }
}

/* Hide scrollbar for testimonial scroller */
.scrolling-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.scrolling-wrapper {
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.list-group-item-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.list-group-item-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.password-checklist {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.9rem;
}
.password-checklist li {
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}
.password-checklist li.valid {
    color: #198754; /* Bootstrap success green */
}
.password-checklist li.invalid {
    color: #dc3545; /* Bootstrap danger red */
}
.password-checklist li::before {
    content: '✖';
    margin-right: 0.5rem;
    font-weight: bold;
}
.password-checklist li.valid::before {
    content: '✔';
}
::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #6c757d;
}
:root {
    --bs-primary-rgb: 8, 116, 255; /* A slightly more vibrant blue */
    --bs-font-sans-serif: 'Poppins', sans-serif;
}
body {
    font-family: Arial, sans-serif; /* Keep your preferred font */
    background-color: #f8f9fa; /* A very light grey base color */
    /* background-color: #f4f7f6; /* A softer off-white */
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23dce1e6' stroke-opacity='0.6' stroke-width='1.5'%3E%3Cpath d='M20 10 l20 20 l-20 5 Z'/%3E%3Ccircle cx='80' cy='25' r='10'/%3E%3Ccircle cx='75' cy='30' r='10'/%3E%3Cpath d='M25 80 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0 M40 80 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0 M32.5 95 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0'/%3E%3Cpath d='M90 90 l-20 -20 l20 -5 Z'/%3E%3Ccircle cx='30' cy='50' r='10'/%3E%3Ccircle cx='25' cy='55' r='10'/%3E%3Cpath d='M85 60 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0 M100 60 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0 M92.5 75 a5,5 0 1,1 10,0 a5,5 0 1,1 -10,0'/%3E%3C/g%3E%3C/svg%3E");

}
.navbar {
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card {
    border-radius: 16px; /* Softer corners */
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}
.card-header {
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: rgb(var(--bs-primary-rgb));
    border: none;
}
.container {
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Custom Gradient Header for the homepage */
.hero-section {
    background: linear-gradient(45deg, #007bff, #00d4ff); /* A vibrant blue gradient */
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
}
.public-header {
    background: linear-gradient(45deg, rgba(var(--bs-primary-rgb), 1), #00d4ff);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
}
/* Custom Flash Messages Styling (match Bootstrap alerts) */
.flashes {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem; /* Bootstrap spacing */
}
.flashes li.message {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
.flashes li.message.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.flashes li.message.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.flashes li.message.info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}
.auth-links {
    text-align: right;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6; /* Light border */
    margin-bottom: 1rem;
}
.auth-links .nav-link { /* Use Bootstrap nav-link style */
    display: inline-block;
    margin-left: 1rem;
    font-weight: bold;
}
.auth-links strong {
    color: #28a745; /* Green for username */
}

/* Adjustments for buttons and inputs previously set with width: calc(100% - ...) */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%; /* Bootstrap form-control handles this */
}
.add-trip-form,
.add-participant-form {
    display: flex;
    align-items: flex-end;
    gap: 10px; /* Spacing between input and button */
}
.add-trip-form input[type="text"],
.add-participant-form input[type="text"] {
    flex-grow: 1; /* Allow input to take remaining space */
    width: auto; /* Override 100% width to allow flex-grow to work */
}
.add-trip-form button,
.add-participant-form button {
    width: auto; /* Override 100% width */
    margin-bottom: 0; /* Remove margin added by form-group */
}
.split-amount-group input[type="number"] {
    width: 100px; /* Keep fixed width for split amounts */
    text-align: right;
}
#split_evenly_btn {
    width: auto;
}
/* --- NEW: CSS for Loading Overlay --- */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-card-inner-border-radius);
}

.trip-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6e8efb;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
}

/* Underline animation on hover */
.trip-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #6e8efb;
    transition: width 0.3s ease;
}

.trip-link:hover::after {
    width: 100%;
}

.trip-link:hover {
    color: #a777e3;
    transform: translateY(-1px);
}

/* Archived state */
.trip-link.archived {
    color: #999;
    text-decoration: line-through;
}

.social-btn {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #222;
}

.social-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.instagram {
    color: #E4405F;
}

.twitter {
    color: #000;
}

.youtube {
    color: #FF0000;
}

/* Neon hover effect */
.instagram:hover {
    box-shadow: 0 0 20px #E4405F;
}

.twitter:hover {
    box-shadow: 0 0 20px #000;
}

.youtube:hover {
    box-shadow: 0 0 20px #FF0000;
}


@media (max-width: 576px) {
    .action-btn-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .action-btn-group .btn,
    .action-btn-group form {
        margin-bottom: 0.5rem;
    }
}

/* Custom Confirmation Modal */
#custom-confirm-modal .modal-content {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#custom-confirm-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

#custom-confirm-modal .modal-body {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

#custom-confirm-modal .modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
}

.location-search-input {
    width: 115%; /* Make it span the full width of its container */
}

.location-search-input::placeholder {
    font-size: 0.75rem; /* Adjust as needed */
}

/* Increase space between search box and map */
#mapid {
    margin-top: 100px; /* Add margin to the top of the map */
}

.settled-transaction {
    text-decoration: line-through;
    opacity: 0.6;
}
