.search-container {
    width: 100%; 
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-input { 
    width:100%;
    padding: 12px 16px;
    background-color: white;
    border-bottom: 2px solid #e54917;
    border-radius: 15px;
    font-size: 16px; 
    outline: none;
} 
 
    .search-input:focus {
        background-color: #4842e333;
        box-shadow: inset 0px -1px 4px 2px #5a27d636;
    }

.search-results {
    background-color: white; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}


/* Mini setup buttons */
.tournament-setup {
    margin: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.setup-btn {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #593a0d, #ff511a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
}

    .setup-btn:hover {
        transform: translateY(-5px);
    }

/* Member list scrollable */
.member-list {
    max-width: 500px;
    flex: 1; /* Take remaining height */
    overflow-y: auto;
    margin: 0 auto;
    border-radius: 12px;
  
}

.member {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.25s, color 0.25s;
    cursor: default;
    margin: 5px;
    border-radius: 10px;
    font-style: italic;
    font-weight: 500;
}

    .member:hover {
        background: #e8f4fd;
    }

.member-list .member:nth-child(odd) {
    background: linear-gradient(90deg, #e3f0f2, #fedda1);
}

.member-list .member:nth-child(even) {
    background: linear-gradient(270deg, #e3f0f2, #fedda1);
}

    /* Still keep special highlight for current user */
    .member-list .member.cuser {
        background-color: rgba(255, 215, 0, 0.35) !important;
        font-weight: bold;
    }


    .member:last-child {
        border-bottom: none;
    }




.calendar-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.year-nav {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.selected-date-inputs input {
    width: 60px;
    padding: 8px;
    margin: 0 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.months-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.month-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .month-card h2 {
        margin-bottom: 15px;
        font-size: 1.5rem;
        color: #555;
    }

.weeks-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
}
 
.week-btn {
    text-align: center; 
    padding: 12px 0;
    border: none;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1rem;
}

    .week-btn.free {
        background: linear-gradient(135deg, #34d399, #059669);
    }

    .week-btn.taken {
        background: linear-gradient(135deg, #f87171, #b91c1c);
    }

    .week-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.post-category {
    position: relative;
    top: 100%;
    left: -57px;
    background-color: #e34817;
    color: white;
    padding: 10px;
    padding-left: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


.main-modal {
    place-items: center;
    align-content: center;
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(20 22 26 / 88%);
    z-index: 1000;
    overflow: auto;
}

.main-modal-content {
    padding: 20px;
    background-color: #ffffff00;
    border-radius: 8px;
    width: 95vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.main-modal-close:hover {
    color: #333;
}

#close-btn {
    float: right;
    border: none;
    background: transparent;
    font-size: 30px;
    color:white;
    cursor: pointer;
    font-weight: bold;
}

    #close-btn:hover {
        color: red;
    }



/* Container grid */
.membership-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}





/* Card styling */
.membership-card {
    background: linear-gradient(142deg, #FFA500 0%, #FFB733 40%, #FFD580 60%, #FFA500 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .membership-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    /* Highlight selected membership */
    .membership-card.selected {
        border: 3px solid #007bff; /* blue highlight */
    }
     
.membership-title {
    justify-self: center;
    background: linear-gradient(285deg, #000000, #6b6b6b, #000000, #000000, #636363);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.membership-title-text {
    justify-self: center;
    color: #585654;
}


/* Card content */
.membership-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Name and description */
.membership-card-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.membership-card-desc {
    flex-grow: 1;
    font-size: 1rem;
    color: #555;
}

/* Footer with price and button */
.membership-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.membership-card-price {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.membership-card-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-default {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

    .btn-default:hover {
        background-color: #007bff;
        color: #fff;
    }

.btn-selected {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}
.selected-membership {
    border: 2px solid #ff511a;
    border-radius: 16px;
}
.toggle-checkbox-div {
    display: flex;
}
.toggle-checkbox {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
    .toggle-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-checkbox input {
        opacity: 0;
        width: 0;
        height: 0;  
    }

    .toggle-checkbox .track {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ccc;
        border-radius: 12px;
        transition: .2s;
    }

    .toggle-checkbox .knob {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        transition: .2s;
    }

    .toggle-checkbox input:checked + .track {
        background: #e34817;
    }

        .toggle-checkbox input:checked + .track + .knob {
            transform: translateX(16px);
        }
>
/* === Form Container === */
.create-campaign-form {
    margin-top:10px;
    max-width: 500px;
    margin: 50px auto;
    padding: 35px 30px;
    background: white !important; 
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* === File Upload Area === */
.upload-file {
    position: relative;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ffb59a;
    border-radius: 16px;
    padding: 50px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff511a;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .file-label:hover {
        border-color: #ff511a;
        background-color: #fff1ed;
    }

    .file-label .plus-icon {
        font-size: 28px;
        color: #ff511a;
        margin-bottom: 8px;
        transition: transform 0.2s ease;
    }

    .file-label:hover .plus-icon {
        transform: rotate(90deg);
    }

    .file-label img,
    .file-label video {
        width: 100%;
        max-height: 350px;
        border-radius: 16px;
        margin-top: 12px;
        object-fit: cover;
    }

/* === Input Fields === */
.create-campaign-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

.create-campaign-input,
.create-campaign-description {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #f5c0a3;
    font-size: 15px;
    background: #fff6f2;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .create-campaign-input:focus,
    .create-campaign-description:focus {
        outline: none;
        border-color: #ff511a;
        box-shadow: 0 0 0 4px rgba(255,81,26,0.2);
        background: #fff;
    }

/* === Card Section === */
.create-campaign-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Toggle Switches */
.toggle-checkbox-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1 1 45%;
    background: #fff0eb;
    padding: 12px 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .toggle-checkbox-div:hover {
        background: #ffe3d9;
    }

/* Number Inputs */
.create-campaign-input[type="number"]::-webkit-inner-spin-button,
.create-campaign-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Textarea */
.create-campaign-description {
    min-height: 90px;
    resize: vertical;
}

/* Flex small fields */
.create-campaign-card > div {
    flex: 1 1 45%;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .create-campaign-card {
        flex-direction: column;
    }

        .toggle-checkbox-div,
        .create-campaign-card > div {
            flex: 1 1 100%;
        }
}
/* Select2 container */
.select2-container .select2-selection--multiple { 
    min-height: 45px;
    border: 1px solid #f5c0a3 !important;
    border-radius: 10px !important;
    padding: 6px !important;
    transition: 0.2s ease;
}

/* Focus */
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ff5722 !important;
    box-shadow: 0 0 4px rgba(255, 87, 34, 0.5) !important;
}

/* Tags (selected items) */
.select2-container--default .select2-selection__choice {
    background-color: #ff9800 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 13px !important;
}

/* Close (x) icon on tags */
.select2-container--default .select2-selection__choice__remove {
    color: rgba(255,255,255,0.9) !important;
    margin-right: 6px !important;
    font-size: 14px !important;
    font-weight: bold;
}

    .select2-container--default .select2-selection__choice__remove:hover {
        color: #fff !important;
    }

/* Dropdown styling */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ffa726 !important;
    color: #fff !important;
}

.select2-results__option {
    padding: 10px !important;
    font-size: 14px !important;
}

.select2-selection__placeholder {
    color: #999 !important;
    font-size: 14px;
}
.label-note {
    color: #888; /* soft gray */
    font-weight: normal;
    font-size: 13px;
}
.toggle-checkbox-labeldiv {
    display: flex;
    flex-direction: column;
    width:75%
}




.range-slider-container {
    position: relative;
    width: 100%;
    height: 50px;
}

    /* Both sliders stacked */
    .range-slider-container input[type=range] {
        position: absolute;
        left: 0;
        top: 20px;
        width: 100%;
        pointer-events: none; /* allow JS to handle overlapping */
        -webkit-appearance: none;
        background: transparent;
    }

        /* Track */
        .range-slider-container input[type=range]::-webkit-slider-runnable-track {
            height: 8px;
            background: #ffd8b0; /* light orange */
            border-radius: 5px;
        }

        .range-slider-container input[type=range]::-moz-range-track {
            height: 8px;
            background: #ffd8b0;
            border-radius: 5px;
        }

        /* Thumb */
        .range-slider-container input[type=range]::-webkit-slider-thumb {
            pointer-events: all;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: #ff511a; /* orange circle */
            border-radius: 50%;
            border: 2px solid #fff;
            cursor: pointer;
            box-shadow: 0 0 3px rgba(0,0,0,0.4);
            margin-top: -6px; /* centers thumb on track */
        }

        .range-slider-container input[type=range]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #ff511a;
            border-radius: 50%;
            border: 2px solid #fff;
            cursor: pointer;
            box-shadow: 0 0 3px rgba(0,0,0,0.4);
        }

        /* Optional: focus effect */
        .range-slider-container input[type=range]:focus::-webkit-slider-thumb {
            box-shadow: 0 0 0 4px rgba(255,81,26,0.2);
        }


input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;   
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.header-div {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #593a0d, #ff511a);
    border-radius: 15px;
    box-shadow: 0px 1px 20px 1px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.header-div-under {
    border-radius: 15px;
    background: linear-gradient(90deg, #000000, #a52800);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}
    .header-div h1 {
        font-size: 2rem;
        font-weight: 900;
        margin: 0;
        background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    } 
     
    .header-div .header-subtitle {
        font-size: 1.25rem; 
        font-weight: 500;
        margin-top: 15px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    }
    .header-subtitle-small {
        color: #c7c7c7 !important;
        font-size: 12px !important;
    }

    /* Optional: subtle animated floating light effect */
    .header-div::after {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 90%);
        top: -50%;
        left: -50%;
        animation: floatLight 10s linear infinite;
        pointer-events: none;
    }

@keyframes floatLight {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(30%, 30%);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}
.header-div a, .header-div-a {
    display: inline-block;
    padding: 10px 11px;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff00003d, #9f9c9c);
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    position: relative;
    z-index: 3;
}
.header-div-a {
    color:white !important;
}
    .header-div a:hover, .header-div-a:hover {
        background: linear-gradient(135deg, #111, #333);
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0px 6px 18px rgba(0,0,0,0.45);
    }

    .header-div a:active, .header-div-a:active {
        transform: translateY(-1px);
        box-shadow: 0px 3px 10px rgba(0,0,0,0.35);
    }
.header-div-back {
    text-decoration: none; 
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 6px 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-top-right-radius: 8px;
}
.header-div-back a{
    padding:0px !important;
    background:none;
}
#backToTop {
    position: fixed;
    bottom: 55px;
    right: 25px;
    background: #00000061;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 20px 1px rgba(0, 0, 0, 0.2);
    text-decoration:none;
    display: none; /* hide by default */
    z-index: 1000;
    transition: background 0.3s, transform 0.3s;
}

    #backToTop:hover {
        background: linear-gradient(135deg, #ff511a, #593a0d);
        transform: translateY(-3px);
    }
.tournament-info {
    border: 1px solid #632410;
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
    place-items: center;
    margin-bottom: 25px;
    background: white;
    color: #2e0c00; 
}


@media (min-width: 900px) {
    .Memberships-fix-width {  
        max-width: 50% !important; 
        place-self: anchor-center;
    }
}

