* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at center, #1a0033 0%, #000000 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Main Container */
.slot-machine {
    max-width: 1200px;
    margin: 0 auto;
}

.neon-border {
    background: linear-gradient(135deg, #2a0a3d 0%, #1a1a2e 50%, #0f0f1e 100%);
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
}

/* Text Headers */
.neon-text {
    font-size: 2rem;
    text-align: center;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow:
        0 0 10px #FFD700,
        0 0 20px #FFD700,
        0 0 30px #FFD700;
}

.neon-text-small {
    font-size: 1.2rem;
    color: #FFD700;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 10px #FFD700;
}

/* Timer */
.timer {
    text-align: center;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #ff1744 0%, #c41c00 100%);
    border-radius: 10px;
    border: 3px solid #ff5252;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
    font-weight: bold;
}

/* Orderer Announcement */
.orderer-announcement {
    text-align: center;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #00C853 0%, #00897B 100%);
    border: 3px solid #00E676;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.5);
    font-weight: bold;
    line-height: 1.8;
}

/* Restaurant List */
.restaurant-list {
    margin: 20px 0;
}

.restaurant-item {
    background: linear-gradient(135deg, #37474F 0%, #263238 100%);
    border: 3px solid #FFA726;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.restaurant-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
    border-color: #FFD54F;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.restaurant-name {
    font-size: 1.1rem;
    color: #FFD700;
    flex: 1;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.vote-btn {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
}

.vote-btn:disabled {
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.vote-count {
    font-size: 1.1rem;
    color: #FFD700;
    min-width: 50px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.delete-restaurant-btn {
    background: linear-gradient(135deg, #FF1744 0%, #C62828 100%);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(255, 23, 68, 0.4);
}

.delete-restaurant-btn:hover {
    background: linear-gradient(135deg, #D50000 0%, #B71C1C 100%);
}

.menu-link {
    color: #40C4FF;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(64, 196, 255, 0.5);
}

.menu-link:hover {
    color: #80DEEA;
    text-shadow: 0 0 10px rgba(64, 196, 255, 0.8);
}

/* Buttons */
.neon-button {
    background: linear-gradient(135deg, #AA00FF 0%, #6A1B9A 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(170, 0, 255, 0.4);
}

.neon-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.6);
}

.neon-button.add-btn {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.neon-button.add-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.6);
}

.neon-button.cancel-btn {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.4);
}

.neon-button.cancel-btn:hover {
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.6);
}

.neon-button.danger-btn {
    background: linear-gradient(135deg, #FF1744 0%, #C62828 100%);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.neon-button.danger-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

.neon-button.stats-btn {
    background: linear-gradient(135deg, #FFD600 0%, #FFA000 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
    width: 100%;
    margin: 20px 0;
}

.neon-button.stats-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.6);
}

.neon-button.reopen-btn {
    background: linear-gradient(135deg, #FF6D00 0%, #E65100 100%);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

.neon-button.reopen-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.6);
}

.neon-button.close-btn {
    background: linear-gradient(135deg, #FF1744 0%, #C62828 100%);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.neon-button.close-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.6);
}

/* Forms */
.add-form, .reopen-form {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #263238 0%, #1a1a2e 100%);
    border: 3px solid #FFA726;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.2);
}

.retro-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #1a1a2e;
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #FFD700;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.retro-input::placeholder {
    color: rgba(255, 215, 0, 0.5);
}

.retro-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Players */
.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.player-card {
    background: linear-gradient(135deg, #37474F 0%, #263238 100%);
    border: 3px solid #29B6F6;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.player-avatar {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.player-name {
    font-size: 0.9rem;
    color: #FFD700;
    word-wrap: break-word;
    font-weight: bold;
}

.player-card.has-voted {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.voted-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 8px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.not-voted-badge {
    background: linear-gradient(135deg, #757575 0%, #424242 100%);
    color: #bbb;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 8px;
    display: inline-block;
}

.delete-player-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #FF1744 0%, #C62828 100%);
    color: #fff;
    border: none;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4);
}

.delete-player-btn:hover {
    background: linear-gradient(135deg, #D50000 0%, #B71C1C 100%);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.avatar-option {
    font-size: 2.5rem;
    padding: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s;
    text-align: center;
    background: #1a1a2e;
}

.avatar-option:hover {
    border-color: #40C4FF;
    background: #263238;
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #00E676;
    background: linear-gradient(135deg, #00C853 0%, #00897B 100%);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #2a0a3d 0%, #1a1a2e 100%);
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.stats-content {
    min-width: 800px;
}

.player-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.player-select-card {
    background: linear-gradient(135deg, #37474F 0%, #263238 100%);
    border: 3px solid #29B6F6;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.player-select-card:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(41, 182, 246, 0.5);
    border-color: #40C4FF;
}

.player-select-card.voted {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stats */
.stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-tab {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #37474F 0%, #263238 100%);
    border: 3px solid #FFA726;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.stats-tab.active {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    border-color: #42A5F5;
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.5);
}

.stats-display {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    border: 2px solid #FFA726;
    text-align: left;
}

.stats-table th {
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.stats-table td {
    background: linear-gradient(135deg, #37474F 0%, #263238 100%);
    color: #ffffff;
}

.stats-table tr:hover td {
    background: linear-gradient(135deg, #455A64 0%, #37474F 100%);
}

/* Sections */
.add-restaurant-section,
.players-section,
.reopen-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 15px;
    border: 3px solid #7C4DFF;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.2);
}

/* Confirm Dialog */
.confirm-content {
    text-align: center;
}

.confirm-content p {
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #FFD700;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .neon-text {
        font-size: 1.4rem;
    }

    .neon-text-small {
        font-size: 1rem;
    }

    .neon-button {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .stats-content {
        min-width: auto;
    }

    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .restaurant-header {
        flex-wrap: wrap;
    }

    .timer {
        font-size: 1rem;
    }
}
