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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.config-panel,
.info-panel,
.game-panel,
.result-panel,
.error-panel,
.logs-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.config-panel h2,
.info-panel h2,
.game-panel h2,
.result-panel h2,
.logs-panel h3,
.error-panel h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.roulette-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin: 20px 0;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Slot Machine Styles */
.slot-machine-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
}

.reels-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(180deg, #2d2d44 0%, #1a1a2e 100%);
    border-radius: 15px;
    border: 4px solid #ffd700;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.reel {
    background: white;
    border-radius: 10px;
    padding: 10px;
    border: 3px solid #333;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reel-label {
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slot-machine-container .win-indicator {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

.slot-machine-container .win-indicator.winner {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.slot-machine-container .win-indicator.loser {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #ccc;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.roulette-message {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #667eea;
    min-height: 30px;
}

.button-group {
    text-align: center;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-item strong {
    color: #667eea;
}

.result-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.result-item {
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.1em;
}

.result-item.prize {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding: 25px;
}

.error-panel {
    background: #fff5f5;
    border-color: #fc8181;
}

.error-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    color: #c53030;
    font-weight: 600;
}

.logs-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.log-entry {
    margin: 5px 0;
    padding: 5px;
    border-left: 3px solid #667eea;
    padding-left: 10px;
}

.log-entry.error {
    border-left-color: #fc8181;
    color: #fc8181;
}

.log-entry.success {
    border-left-color: #48bb78;
    color: #48bb78;
}

.hidden {
    display: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background: #fed7d7;
    color: #742a2a;
}

.status-pending {
    background: #feebc8;
    color: #7c2d12;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 2s linear infinite;
}

/* Games List Styles */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.game-card.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.game-icon {
    font-size: 2em;
}

.game-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

.game-card-body {
    margin-bottom: 15px;
}

.game-detail {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
    color: #555;
}

.game-detail:last-child {
    border-bottom: none;
}

.game-detail strong {
    color: #667eea;
}

.btn-select-game {
    width: 100%;
    margin-top: 10px;
    margin-right: 0;
}

.game-card.selected .btn-select-game {
    background: #28a745;
}

.game-card.selected .btn-select-game:hover {
    background: #218838;
}
