html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f4c75 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Casino Table Background */
/* .casino-table {
    background: radial-gradient(ellipse at center, #010101 0%, #0101013d 70%, #052710 100%);
    border-radius: 50px;
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(13, 85, 35, 0.5);
    position: relative;
    margin: 5px;
    padding: 5px;
    max-height: 70vh;
    width: 100%;
} */

/*
.casino-table::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 45px;
    box-shadow: 
        inset 0 0 20px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.3);
}
*/

/* Casino Title */
.casino-title {
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Dealing Animation */
.dealing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

.casino-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 0, 0.3) 0%, transparent 50%);
    animation: casino-lights 2s infinite alternate;
}

@keyframes casino-lights {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.dealing-text {
    font-size: 2rem;
    text-shadow: 0 0 20px #ffd700;
    animation: pulse 1.5s infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dealer-hand-animation {
    margin-top: 30px;
    z-index: 10;
}

.dealing-card {
    width: 80px;
    height: auto;
    animation: flip-card 2s infinite;
}

@keyframes flip-card {
    0%, 100% { transform: rotateY(0deg); }
    25% { transform: rotateY(90deg); }
    50% { transform: rotateY(180deg); }
    75% { transform: rotateY(270deg); }
}

/* Hand Areas */
.dealer-area, .player-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Hands Container for Side-by-Side Layout */
.hands-container {
    max-width: 100%;
    margin: 0 auto;
}

.hands-container .hand {
    max-width: 48%;
    min-width: 300px;
}

/* Responsive: Stack hands on smaller screens */
@media (max-width: 768px) {
    .hands-container {
        flex-direction: column !important;
    }
    
    .hands-container .hand {
        max-width: 100%;
        min-width: unset;
    }
}

.hand-score {
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
}

/* Card Animations */
.card-animation-container {
    perspective: 1000px;
}

.card {
    width: 120px;
    height: auto;
    box-shadow: 
        0px 8px 16px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 
        0px 15px 25px rgba(0, 0, 0, 0.8),
        0 0 0 3px rgba(255, 215, 0, 0.6);
}

.card-slide-in-player {
    animation: slide-in-player 0.6s ease-out;
}

.card-slide-in-dealer {
    animation: slide-in-dealer 0.6s ease-out;
}

@keyframes slide-in-player {
    0% {
        transform: translateY(200px) rotateZ(180deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
}

@keyframes slide-in-dealer {
    0% {
        transform: translateY(-200px) rotateZ(-180deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
}

.placeholder-card {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Casino Buttons */
.casino-button {
    background: linear-gradient(45deg, #000000, #434343);
    border: 3px solid #b8860b;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.casino-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.casino-button:hover::before {
    left: 100%;
}

.casino-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.casino-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Game Controls */
.game-controls {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.winner-announcement {
    font-size: 2rem;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700;
    animation: winner-glow 2s infinite alternate;
}

.winner-message-top {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 2px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

@keyframes winner-glow {
    0% { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
    100% { text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700, 0 0 60px #ffd700; }
}

.bet-controls {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.main-wrapper {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #222;
    color: white;
    padding: 20px;
}

.game-area {
    flex: 1;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 20px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.card {
    width: 80px;
    height: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

    .card:hover {
        transform: scale(1.1);
    }

.winner-text {
    font-size: 1.5rem;
    color: gold;
    margin: 20px 0;
}

.highlight {
    color: #FFD700;
}

.controls {
    margin-top: 20px;
}

.container .hand {
    margin-top: 1rem;
}

/* Large Cards and Scores */
.large-card {
    width: 120px !important;
    height: auto;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s;
}

.large-card:hover {
    transform: scale(1.05);
}

.large-score {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 15px 0 !important;
}

.dealer-title, .player-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px !important;
}

.player-score {
    color: #ffd700 !important;
}

/* Winner Message Styling */
.winner-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 193, 7, 0.9));
    border: 2px solid #ffd700;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    margin: 20px 0;
    animation: winnerPulse 1s ease-in-out;
}

.winner-text {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none;
    margin: 0;
}

@keyframes winnerPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.game-toast {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 193, 7, 0.95));
    border: 2px solid #ffd700;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
    padding: 20px 30px;
    margin-bottom: 10px;
    min-width: 300px;
    text-align: center;
    pointer-events: auto;
    transform: scale(0);
    transition: all 0.4s ease-in-out;
}

.game-toast.show {
    transform: scale(1);
}

.game-toast.win {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(34, 139, 34, 0.95));
    border-color: #28a745;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.5);
}

.game-toast.lose {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(139, 34, 34, 0.95));
    border-color: #dc3545;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.5);
}

.game-toast.push {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 165, 0, 0.95));
    border-color: #ffc107;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.5);
}

.toast-title {
    color: #000;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.toast-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: scale(0) rotate(10deg);
        opacity: 0;
    }
}
