/* Remove the pointer-mirror styles and update pointer styles */

.wheel-container {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

.pointer {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(180deg);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Keep all other CSS the same */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-section {
    margin-top: 20px;
}

.login-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    width: 200px;
}

.btn-primary {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-logout.hidden {
    display: none;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

.game-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.user-input-section {
    margin-bottom: 20px;
    text-align: center;
}

.user-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.user-input-section input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 250px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.user-input-section input:focus {
    outline: none;
    border-color: #3498db;
}

.spin-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.4);
}

.spin-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #27ae60;
}

.result.hidden {
    display: none;
}

.result h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.close-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.prizes-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.winners-section {
    margin-bottom: 30px;
}

.winners-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.winners-list {
    max-height: 300px;
    overflow-y: auto;
}

.winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #3498db;
}

.winner-name {
    font-weight: 500;
    color: #2c3e50;
}

.winner-prize {
    color: #27ae60;
    font-weight: 600;
}

.winner-date {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.admin-prizes-section.hidden {
    display: none;
}

.admin-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.admin-section h3 {
    color: #3498db;
    margin-bottom: 5px;
}

.admin-section p {
    color: #666;
    font-size: 0.9rem;
}

.prizes-list {
    display: grid;
    gap: 10px;
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.prize-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.prize-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.prize-stock {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.stock-available {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
}

.stock-unlimited {
    background: #d1ecf1;
    color: #0c5460;
}

.admin-controls {
    display: flex;
    gap: 5px;
}

.btn-small {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-reset {
    background: #e74c3c;
}

.btn-reset:hover {
    background: #c0392b;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

/* Confetti animation */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti.hidden {
    display: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background: #ffd300;
    top: 0;
    opacity: 0;
}

@keyframes confetti-drop {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

.loading-winners {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

.no-winners {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.password-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.8;
}

#wheel {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: rotate(0deg);
}
/* Add these styles to your existing CSS */

.stock-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center;
}

.btn-set {
    background: #9b59b6 !important;
}

.btn-set:hover {
    background: #8e44ad !important;
}

/* Update result styles for different messages */
.result h3 {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* Keep all your existing CSS below */

/* Logo Styles */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    height: 80px;
    width: auto;
}

.header-text {
    text-align: center;
}

/* Probability Styles */
.probability-display {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: #3498db;
    color: white;
    font-size: 0.9rem;
}

.probability-input {
    width: 70px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.probability-warning {
    margin-top: 10px;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.probability-warning.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.probability-warning:not(.warning) {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Prize Item States */
.prize-item.prize-inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.prize-item.prize-inactive .prize-name {
    text-decoration: line-through;
    color: #6c757d;
}

/* Button Styles */
.btn-save {
    background: #27ae60 !important;
}

.btn-save:hover {
    background: #219653 !important;
}

.btn-disable {
    background: #e74c3c !important;
}

.btn-enable {
    background: #2ecc71 !important;
}

.btn-disable:hover {
    background: #c0392b !important;
}

.btn-enable:hover {
    background: #27ae60 !important;
}

/* Keep all existing CSS and add above styles */