:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f9fafb;
}

.vote-button {
    position: relative;
    overflow: hidden;
}

.vote-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.vote-button:hover::before {
    left: 100%;
}

.pagination-button {
    transition: all 0.2s;
}

.pagination-button:hover {
    transform: translateY(-2px);
}

.pagination-button.active {
    background-color: #0f5934;
    color: white;
}

.search-input:focus {
    border-color: #0f5934;
    box-shadow: 0 0 0 3px rgba(15, 89, 52, 0.2);
}

.contestant-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.votes-count {
    background: linear-gradient(135deg,
            rgba(15, 89, 52, 0.1),
            rgba(15, 89, 52, 0.05));
}




/* ###########################  Contestants Registration  ######################### */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0F5934;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked+.custom-checkbox {
    background-color: #0F5934;
}

input[type="checkbox"]:checked+.custom-checkbox::after {
    display: block;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-input:focus {
    border-color: #0F5934;
    box-shadow: 0 0 0 3px rgba(15, 89, 52, 0.2);
}

.form-input.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.file-input-container {
    position: relative;
    overflow: hidden;
}

.file-input-container input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


/* ###########################  Vote  ######################### */
.countdown-segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.25rem 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.countdown-expired {
    color: #DC2626;
    font-weight: 600;
}


input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.vote-modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-option {
    transition: all 0.2s ease;
}

.payment-option:hover {
    transform: translateY(-2px);
}

.payment-option.selected {
    border-color: #0F5934;
    background-color: rgba(15, 89, 52, 0.05);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-radio {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    position: relative;
    transition: all 0.2s;
}

.payment-option.selected .custom-radio {
    border-color: #0F5934;
}

.payment-option.selected .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0F5934;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: #0F5934;
}

input:checked+.switch-slider:before {
    transform: translateX(20px);
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}


