* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header p {
    font-size: 1rem;
    color: #999;
    font-weight: 300;
}

.setup-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto 40px;
    transition: border-color 0.3s ease;
}

.setup-panel:hover {
    border-color: #555;
}

.setup-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #ccc;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #666;
    background: #111;
}

.input-group input:hover,
.input-group select:hover {
    border-color: #555;
}

.currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 400;
    margin-top: 16px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.inline-input {
    width: 80px !important;
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    width: 100%;
    border-color: #666;
}

.btn-primary:hover {
    background: #222;
    border-color: #888;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #222;
    border-color: #555;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #333;
    border-color: #777;
}

.btn-danger {
    background: #222;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
}

.stat-card.win .stat-value {
    color: #28a745;
}

.stat-card.loss .stat-value {
    color: #dc3545;
}

.roulette-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 30px;
}

.roulette-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spin-result {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.spin-result:hover {
    border-color: #666;
}



.spin-result .number {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.spin-result .outcome {
    font-size: 0.9rem;
    text-align: center;
    color: #999;
}

.bet-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-left: 1px solid #333;
    padding-left: 30px;
}

.bet-info h3 {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.2rem;
    color: #999;
}

.bet-amount {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
}

.bet-type {
    font-size: 0.9rem;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-section {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

.chart-section:hover {
    border-color: #555;
}

.chart-section h3 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    font-weight: 300;
    font-size: 1.2rem;
}

.chart-section canvas {
    max-height: 300px;
}

.detailed-stats {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    transition: border-color 0.3s ease;
}

.detailed-stats:hover {
    border-color: #555;
}

.detailed-stats h3 {
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    font-weight: 300;
    font-size: 1.2rem;
}

.stats-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.stat-row:hover {
    border-color: #555;
}

.stat-label {
    font-weight: 400;
    color: #999;
}

.stat-value {
    font-weight: 400;
    color: #fff;
}

.game-over {
    background: #111;
    border: 2px solid #dc3545;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
}

.game-over h2 {
    color: #dc3545;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.8rem;
}

.game-over p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ccc;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
}

.final-stats div {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
}

.bankruptcy-warning {
    background: #222;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    color: #dc3545;
}

.bankruptcy-warning h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 400;
}

.risk-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
}

.risk-label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #ccc;
}

.risk-value {
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
}

/* Animations - spinning animation removed */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .setup-panel {
        padding: 20px;
        margin: 0 auto 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .chart-section {
        margin-bottom: 20px;
    }
    
    .roulette-display {
        flex-direction: column;
        align-items: center;
    }
    
    .bet-info {
        margin-top: 15px;
        text-align: center;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary, .btn-danger {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    input, select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .stat-card {
        padding: 20px;
    }
}

/* Dark mode support (already implemented but enhanced) */
@media (prefers-color-scheme: dark) {
    /* The app is already dark, but we can add some enhancements */
    .setup-panel {
        border-color: #444;
    }
    
    .stat-card {
        background: #1a1a1a;
        border-color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}