/* Game Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    padding: 20px;
}

/* Current Player Banner */
.current-player-banner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    margin-bottom: 20px;
}

.player-turn-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-name {
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dice styles are now in dices.css */

/* Board Styles */
.board-table {
    font-size: 12px;
    margin-bottom: 0;
}

.board-cell {
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
    min-width: 80px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.empty-cell {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    font-size: 10px;
    color: #6c757d;
}

.empty-cell:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.normal-cell {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    font-weight: bold;
}

.mano-cell {
    background-color: #fff3e0;
    border: 2px solid #ff9800;
    font-weight: bold;
}

.deleted-cell {
    background-color: #ffebee;
    border: 2px solid #f44336;
    color: #f44336;
    font-size: 20px;
}

.grandes-cell {
    background-color: #f3e5f5;
    border: 2px solid #9c27b0;
    text-align: center;
    font-weight: bold;
}

/* Player Board Styles */
.player-board {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
}

.player-board.current-player {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Control Panel Styles */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #007bff;
    color: white;
    border-radius: 8px 8px 0 0 !important;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

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

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

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* Dice Container */
#dice-display {
    min-height: 80px;
    padding: 15px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Score Options */
.score-option {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s ease;
}

.score-option:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.score-option.mano-option {
    background-color: #fff3e0;
    border-color: #ff9800;
}

/* Game Status */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-info i {
    color: #17a2b8;
    margin-right: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-warning i {
    color: #ffc107;
    margin-right: 8px;
}

.alert-success {
    background-color: #d1f2eb;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-success i {
    color: #28a745;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-turn-title {
        font-size: 1.4rem;
    }
    
    .board-cell {
        font-size: 10px;
        padding: 4px 2px;
        min-width: 60px;
        height: 40px;
    }
    
    .container-fluid {
        padding: 10px;
    }
}

/* Dice animations are now in dices.css */

/* Player banner animation */
@keyframes playerPulse {
    0% { box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5); }
    100% { box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); }
}

.current-player-banner {
    animation: playerPulse 2s ease-in-out infinite;
}

/* Highlight available scoring options */
.available-score {
    background-color: #d4edda;
    border-color: #28a745;
}

/* Game over styles */
.game-over {
    opacity: 0.7;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Sound Controls */
.sound-controls {
    z-index: 1050;
}

.sound-controls .btn {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}

.sound-controls .dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.sound-controls .form-range {
    margin-bottom: 10px;
}

.sound-controls .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

/* Music enable button */
#enable-music-btn {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}