html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
    color: #e0e0e0;
}

a, .btn-link {
    color: #6ea8fe;
}

.btn-primary {
    color: #fff;
    background-color: #4488ff;
    border-color: #3366cc;
}

.btn-primary:hover {
    background-color: #5599ff;
    border-color: #4488ff;
}

.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem rgba(68, 136, 255, 0.3), 0 0 0 0.25rem rgba(68, 136, 255, 0.15);
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error."
}

/* Lobby */
.game-app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.lobby-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 2rem;
}

.lobby-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4488ff, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.lobby-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2.5rem;
}

.lobby-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
}

.lobby-buttons .btn {
    padding: 0.8rem 2rem;
}

.lobby-waiting, .lobby-join {
    text-align: center;
}

.room-code {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    font-family: 'Courier New', monospace;
    color: #4488ff;
    background: rgba(68, 136, 255, 0.1);
    border: 2px dashed #4488ff;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    margin: 1rem 0;
    user-select: all;
}

.code-input {
    max-width: 200px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
}

.code-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4488ff;
    color: #fff;
}

/* Game page */
.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #333;
    min-height: 50px;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-left, .status-center, .status-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-center {
    font-size: 1.1rem;
}

.player-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.piece-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.piece-blue {
    background: #4488ff;
    box-shadow: 0 0 6px #4488ff;
}

.piece-red {
    background: #ff4444;
    box-shadow: 0 0 6px #ff4444;
}

.game-canvas {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.text-success { color: #44ff88 !important; }
.text-danger { color: #ff4444 !important; }
.text-warning { color: #ffcc44 !important; }
.text-info { color: #44ccff !important; }

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem;
    text-align: center;
    color: white;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}
