/* assets/css/taquilla_styles.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0 0 80px 0; /* Añadir margen inferior para la barra fija */
    background-color: #f4f4f4;
}

.navbar {
    background-color: #28a745;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.navbar h1 { margin: 0; font-size: 1.5rem; }
.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem; /* Padding for button look */
    border-radius: 5px; /* Rounded corners */
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
    margin-left: 15px; /* Keep margin for spacing between buttons */
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Darker background on hover */
}

.container { padding: 1rem; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.card { 
    background-color: #fff; 
    border-radius: 8px; 
    padding: 1.5rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: bold; margin-bottom: 0.5rem; }
select { 
    width: 100%; 
    padding: 0.75rem; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-size: 1.2rem; 
}

#ejemplares-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Changed to 5 columns */
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-top: 1rem;
}

.ejemplar-item {
    /* Remove flex properties as parent is now grid */
    /* display: flex; */
    /* align-items: center; */
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center; /* Center content within each grid item */
    display: flex; /* Use flex inside item to align content */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
}

.ejemplar-item:hover {
    background-color: #f8f9fa;
}

.ejemplar-item.selected {
    background-color: #d4edda;
    border-color: #28a745;
}

.ejemplar-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

.ejemplar-item label {
    margin: 0;
    font-size: 1em; /* Reduced font size */
    font-weight: bold;
    text-align: center; /* Ensure text is centered within the label */
    line-height: 1.2; /* Adjust line height for better spacing */
}



.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.monto-apuesta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 1.5rem;
}

.monto-apuesta label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #adb5bd;
    font-weight: normal;
}

.monto-apuesta input {
    width: 150px;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.monto-apuesta input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.btn-procesar {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.btn-procesar:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .footer-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .monto-apuesta {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .monto-apuesta input {
        width: 100%;
    }
}

.ejemplar-retirado {
    background-color: #ffe0e0; /* Light red background */
    color: #8b0000; /* Dark red text */
    border-color: #ffb3b3; /* Lighter red border */
    cursor: not-allowed; /* Indicate it's not selectable */
}

.ejemplar-retirado:hover {
    background-color: #ffcccc; /* Slightly darker red on hover */
}

.ejemplar-retirado input[type="radio"] {
    cursor: not-allowed;
}

.ejemplar-retirado label {
    color: #8b0000; /* Ensure label text is also dark red */
}

.retirado-label {
    font-size: 0.8em;
    font-weight: normal;
    color: #8b0000;
    margin-left: 0.5rem;
    background-color: #ffb3b3;
    padding: 0.2em 0.5em;
    border-radius: 3px;
}