html, body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #333;
}

*, ::before, ::after {
    box-sizing: border-box;
}

.main-layout {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

.sidebar {
    width: 260px;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    padding: 1rem 0.5rem;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 2rem;
    background: #fff;
}

.nav.flex-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

    .nav-link.active,
    .nav-link:hover {
        background: #2563eb;
        color: #fff;
    }

.btn {
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}

.bi-pencil-square {
    color: #2563eb; 
    border:none;
    transition: background-color 0.2s ease, border 0.2s ease;
}

    .bi-pencil-square:hover {
        background-color: #fff;
        border-radius: 20%;
        border: 1px solid #2563eb;
        cursor: pointer;
    }
.btn-danger {
    background: none;
    color: #fff;
    border: 2px;
}

    .btn-danger:hover {
        background: #fff;
        border: 1px solid #e50000;
        border-radius: 20%;
        transition: background-color 0.2s ease, border 0.2s ease;
    }

.bi-trash {
    color: red; 

}

.btn-success {
    background: #16a34a;
    color: #fff;
    border: none;
}

    .btn-success:hover {
        background: #f5bbbb;
    }

.me-2 {
    margin-right: 0.5rem;
}

.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.table-dark th {
    background: #374151;
    color: #fff;
    font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
    background: #f1f5f9;
}

.table-bordered {
    border: 1px solid #e2e8f0;
}

.shadow-sm {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.validation-message {
    color: #e50000;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-family: sans-serif;
    padding-top: 2rem;
}

.selection-screen h1,
.game-screen h2 {
    margin-bottom: 1.5rem;
}

.player-buttons {
    display: flex;
    gap: 1rem;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px;
    margin-top: 1rem;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .cell:hover:not(:disabled) {
        background-color: #e0e0e0;
    }

    .cell:disabled {
        cursor: not-allowed;
    }


/* Colores para los jugadores */
.player-x {
    color: #e50000;
}
/* Rojo */

.player-o
{
    color: #1d4ed8;
}

/* Estilo general del contenedor */
:host {
    display: block;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    max-width: 900px;
    margin: 2rem auto;
}

/* Título */
h3 {
    color: #2d3748;
    font-weight: 700;
    letter-spacing: 1px;
}




