@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

body, * {
    font-size: 1em;
    font-family: 'Google Sans';
    scroll-behavior: smooth;
}

.btn-rp {
    background-color: #1b1b1b;
    color: #fff;
}

.text-justify {
    text-align: justify;
}

.card-header {
    text-transform: uppercase;
    font-weight: bold;
}


.divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0 1.5rem 0;
    color: #1a1a1a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}



.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 0.75rem;
}

.divider::after {
    margin-left: 0.75rem;
}

/* Custom styling for Date, Time, and Datetime-local indicators */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    display: block;
    opacity: 1;
    cursor: pointer;
    width: 1.2em;
    /* Slightly more minimalist size */
    height: 1.2em;
    margin-inline-end: 5px;

    /* This filter specifically tints the icon to match Bootstrap Warning (#ffc107) */
    /* It works by taking the default black icon, making it bright, and shifting the hue */
    filter: invert(78%) sepia(64%) saturate(644%) hue-rotate(354deg) brightness(101%) contrast(101%);

    transition: transform 0.2s ease-in-out, opacity 0.2s;
}

/* Hover effect for that "cool" factor */
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator {
    transform: scale(1.1);
    filter: invert(78%) sepia(64%) saturate(1000%) hue-rotate(354deg) brightness(110%) contrast(101%);
}

/* Readonly input style */
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #e9ecef;
    /* Light gray like disabled */
    color: #6c757d;
    /* Gray text */
    cursor: not-allowed;
    /* Show not-allowed cursor */
    pointer-events: none;
    /* Optional: prevent interaction */
}

/* Optional: keep focus outline subtle */
input[readonly]:focus,
textarea[readonly]:focus,
select[readonly]:focus {
    box-shadow: none;
    outline: 1px solid #ced4da;
}

.readonly {
    pointer-events: none;
    /* disables clicks */
    opacity: 0.5;
    /* faded look */
    cursor: not-allowed;
}

/* PROFILE PHOTO */

.profile-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    max-width: 100%;
}

.profile-photo-menu {
    outline: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* PROFILE PHOTO */

/* FOOTER */
.footer {
    background-color: #1b1b1b;
    color: #fff;
    font-size: 0.95rem;
}

.footer-logo {
    height: 70px;
}

.footer-desc {
    color: #aaa;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-desc {
        margin: 0;
    }
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f0a500;
}

.footer-social {
    color: #aaa;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social:hover {
    color: #f0a500;
    transform: translateY(-2px);
}


/* FOOTER */


/* NAVBAR */
.navbar-overlay {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* solid dark when scrolling */
.navbar-overlay.scrolled {
    background: #1b1b1b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-overlay .nav-link {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-overlay.scrolled .nav-link {
    color: #fff;
}

.scroll-logo {
    opacity: 0;
    transform: translateY(-20px);
    /* start slightly above */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.navbar-overlay.scrolled .scroll-logo {
    opacity: 1;
    transform: translateY(0);
    /* slides down into place */
}

/* Optional: Hides scrollbar but keeps functionality for a cleaner look */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* NAVBAR */

/* EVENT BANNER */
.event-banner {
    max-height: 350px;
    object-fit: cover;
    width: 100%;
}

/* EVENT BANNER */

/* CUSTOM SCROLL BAR */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    /* horizontal scrollbar */
    background-color: #F5F5F5;
}

::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Optional: scrollbar hover effect */
::-webkit-scrollbar-thumb:hover {
    background-color: #333;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}

/* CUSTOM SCROLL BAR */

/* INPUT NUMBER */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* INPUT NUMBER */
.form-control,
.form-select {
    border: none;
    /* Use a semi-transparent border so it works on light or dark bg */
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 0;
    padding: 10px 0 10px 10px;
    font-size: 1.1rem;
    background-color: transparent;
    /* Inherit ensures text color matches the surrounding text/label color */
    color: inherit;
    transition: all 0.3s ease;
}

/* Chrome/Safari fix for text color in dark areas */
.form-control:not(:focus) {
    opacity: 0.9;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    outline: none;
    border-bottom-color: #ffc107;
    /* Bootstrap Warning Gold */
    /* A very subtle gold glow that works on any background */
    background-color: rgba(255, 193, 7, 0.08);
    color: inherit;
}

/* Minimalist Arrow for Select */
.form-select {
    appearance: none;
    /* Uses a gold arrow to match the focus theme */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1rem;
}

/* Placeholder visibility */
.form-control::placeholder {
    color: rgba(128, 128, 128, 0.6);
    font-weight: 300;
}

/* Add this to your existing CSS */

.form-select option {
    /* Set a neutral dark-grey/black background for the dropdown menu */
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* For browsers that support styling the hovered option (like Firefox) */
.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* 1. Remove the background and borders from the group container */
.input-group {
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* 2. Style the "09" prefix */
.input-group-text {
    background: transparent !important;
    border: none !important;
    padding: 10px 5px 10px 10px;
    font-size: 1.1rem;
    color: inherit;
    /* Matches your light/dark text */
    opacity: 0.7;
    border-radius: 0;
}

/* 3. Adjust the input to remove its own border (the group handles it) */
.input-group .form-control {
    border-bottom: none !important;
    padding-left: 0;
    /* Tighten space between 09 and number */
}

/* 4. Focus state for the ENTIRE group */
/* When the input is focused, the underline of the whole group turns gold */
.input-group:focus-within {
    border-bottom-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.08);
}

.input-group:focus-within .input-group-text {
    color: #ffc107;
    /* Prefix turns gold on focus for extra "cool" factor */
    opacity: 1;
}

/* Style the Checkbox to match the Warning Gold theme */
.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    border-color: #ffc107;
}

.form-check-input {
    cursor: pointer;
    background-color: transparent;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

/* Ensure labels inherit text color for Light/Dark compatibility */
.form-check-label {
    color: inherit;
    transition: opacity 0.2s;
}

.form-check-label:hover {
    opacity: 1;
}

.btn-wave-action {
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    color: #000;
    /* Text color for warning button */

    /* Create a gradient that is twice the width of the button */
    background: linear-gradient(120deg,
            #ffc107 0%,
            /* Warning Gold */
            #ffc107 40%,
            /* Gold continues */
            #212529 50%,
            /* Dark wave center */
            #ffc107 60%,
            /* Gold starts again */
            #ffc107 100%
            /* Gold ends */
        );
    background-size: 250% 100%;
    /* Stretch it so the 'dark' part is hidden to the side */
    background-position: 0% 50%;
    transition: background-position 0.5s ease-out, color 0.4s ease;
}

.btn-wave-action:hover {
    /* Shift the gradient to pull the dark wave through the center */
    background-position: 100% 50%;
    color: #fff;
    /* Flip text to white while the dark wave is passing */
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

/* Ensure icons also change color during the wave */
.btn-wave-action:hover i {
    color: #fff;
    transition: color 0.4s ease;
}

.col-form-label {
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

button[type="submit"] {
    height: 40px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    margin-top: 2rem;
}

.profile-banner {
    height: 40vh !important;
    /* Force the height */
    width: 100%;
    object-fit: cover;
    /* Prevents stretching */
    object-position: center;
    /* Keeps the focus in the middle */
}

/* Only apply the asterisk if the label is NOT inside a .star-rating container */
label:not(.star-rating label):has(+ input:required)::after,
label:not(.star-rating label):has(+ select:required)::after {
    content: ' *';
    color: #f44336;
}

/* No space between .dropdown-item and .active */
.dropdown-item.active {
    font-weight: bold;
    border-left: 4px solid #ffc107;
}

/* Hide the banner by default on all screens */
#install-banner {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border: 1px solid #eee;
}

/* Class to show it via JS */
#install-banner.show {
    display: block !important;
}

.banner-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-text strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.banner-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.banner-actions {
    display: flex;
    gap: 8px;
}

.btn-install {
    flex: 1;
    background: #ffc107;
    /* RunnersPod Yellow */
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #000;
}

.btn-dismiss {
    flex: 1;
    background: #f0f0f0;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: #555;
}