body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: white;
}

.container {
    background-color: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.wheel-container {
    position: relative;
    margin: 0 auto;
    padding: auto;
    width: 500px;
    height: 500px;
}

#result {
    margin-top: 18px;
    font-size: 24px;
    color: #ffffff;
}

button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.shortcut-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.shortcut-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    font-size: 16px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    transition: all 0.3s ease;
}

.shortcut-btn:hover {
    background: linear-gradient(135deg, #38a169, #48bb78);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.controls-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.5);
    backdrop-filter: blur(5px);
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    margin-left: 24px;
}

.custom-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #4a5568;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.slider-value {
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

.random-btn {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    margin-top: 15px;
}

.random-btn:hover {
    background: linear-gradient(135deg, #dd6b20, #ed8936);
}

.add-option {
    margin-top: 25px;
}

.add-option input {
    padding: 12px 16px;
    width: 60%;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(45, 55, 72, 0.9);
    color: white;
}

.add-option input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(45, 55, 72, 1);
}

.add-option input::placeholder {
    color: #a0aec0;
}

.add-option button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 12px 20px;
    margin-left: 10px;
}

.current-options {
    margin-top: 20px;
    text-align: left;
}

.current-options h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.current-options ul {
    list-style: none;
    padding: 0;
}

.current-options li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.current-options button {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    padding: 6px 12px;
    font-size: 14px;
}

canvas {
    border: 4px solid #4a5568;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Keyboard Shortcuts Section */
.keyboard-shortcuts {
    margin-top: 30px;
    padding: 20px;
    background: rgba(45, 55, 72, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.keyboard-shortcuts h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.key {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.action {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
    }

    .add-option input {
        width: 50%;
    }

    button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .add-option input {
        width: 100%;
        margin-bottom: 10px;
    }

    .add-option button {
        width: 100%;
    }
}

/* Smooth Theme Transitions */
body, .container, button, .add-option input, canvas {
    transition: background-color 0.5s, color 0.5s, border 0.5s;
}

/* Icon Styling */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.theme-toggle img {
    width: 30px;
    height: 30px;
}

/* Scrollable options container with blue scrollbar */
.options-scroll-container {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: rgba(45, 55, 72, 0.8);
    margin-top: 8px;
    scrollbar-width: thin;
    scrollbar-color: #667eea #4a5568;
}

/* Custom scrollbar for Webkit browsers */
.options-scroll-container::-webkit-scrollbar {
    width: 8px;
    background: #4a5568;
    border-radius: 4px;
}

.options-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

#optionList {
    list-style: none;
    margin: 0;
    padding: 0;
}

#optionList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 16px;
    border-bottom: 1px solid #4a5568;
    font-size: 16px;
    background: transparent;
    color: #ffffff;
}

#optionList li:last-child {
    border-bottom: none;
}

.remove-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

/* Konfetti Canvas - separate styling */
#confetti-canvas {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Probability Overview */
.probability-overview {
    margin-top: 20px;
    text-align: left;
}

.probability-overview h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.probability-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.probability-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.probability-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.probability-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.probability-stats {
    text-align: right;
}

.probability-percentage {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

.probability-count {
    color: #a0aec0;
    font-size: 12px;
    margin-top: 2px;
}