/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos de las pestañas */
.tabs {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    background: none;
    border: none;
    font-size: 16px;
    outline: none;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 2px solid #4CAF50;
    font-weight: bold;
}

.tab-contents {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos de la ruleta */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#wheel-canvas {
    margin-bottom: 20px;
    max-width: 100%;
}

#spin-button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#spin-button:hover {
    background-color: #45a049;
}

#result {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

/* Estilos del panel de administración */
.admin-panel {
    padding: 20px;
}

.admin-panel h2 {
    margin-top: 0;
    color: #333;
}

.admin-panel h3 {
    color: #555;
    margin-top: 20px;
}

.time-distribution {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

/* Estilos para los días de la semana */
.days-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.days-checkboxes label {
    display: flex;
    align-items: center;
    margin-right: 10px;
    font-weight: normal;
    cursor: pointer;
}

.days-checkboxes input[type="checkbox"] {
    margin-right: 5px;
}

/* Estilos de la tabla de opciones */
.options-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.options-table th,
.options-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.options-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.options-table input[type="text"],
.options-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.options-table input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.options-buttons {
    margin-bottom: 20px;
}

.options-buttons button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.options-buttons button:hover {
    background-color: #45a049;
}

/* Estilos de los botones de acción */
.action-buttons {
    margin-top: 30px;
}

.action-buttons button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.action-buttons button:hover {
    background-color: #45a049;
}

/* Estilos para los mensajes de administración */
#admin-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.message.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.message.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    #wheel-canvas {
        width: 300px;
        height: 300px;
    }
    
    .options-table th,
    .options-table td {
        padding: 5px;
    }
    
    .options-table input[type="text"],
    .options-table input[type="number"] {
        padding: 5px;
    }
}
