 :root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --white: #fff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1,
h2 {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Import Section */

.import-section {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.file-input-wrapper {
    margin: 1.5rem 0;
}

input[type="file"] {
    display: none;
}

.file-label {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #0056b3;
}

#fileName {
    margin-top: 1rem;
    font-style: italic;
    color: var(--secondary-color);
}
/* Data Table Section */

.data-section {
    display: none;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

th {
    background-color: #e9ecef;
    font-weight: 600;
}
/* Wheel Popup */

.wheel-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-shrink: 0; /* Prevents shrinking in flex container */
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheelCanvas {
    border-radius: 50%;
    border: 5px solid white;
    transition: transform 8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pointer {
    position: absolute;
    /* top: 50%; */
    right: -20px;
    transform: translateY(-50%) rotate(180deg);;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 40px solid var(--background-color);
    z-index: 10;
}

#spinBtn {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    border: 8px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
/* Winner Popup */

.winner-popup {
    color: black;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    text-align: center;
}

.winner-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.5s;
}

.winner-content h2 {
    color: var(--success-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.winner-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 5px 0;
}

#closeWinnerBtn {
    margin-top: 2rem;
    background-color: var(--danger-color);
    color: var(--white);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}