/* Estilos modernos para el Calendario de Recompensas */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f5f6fa;
    --text-color: #34495e;
    --border-color: #dcdde1;
}

#calendario {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Barra superior */
#top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

#form-actividad {
    display: flex;
    flex-grow: 1;
    margin-right: 1rem;
}

#nueva-actividad {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

#reset-btn, #clear-all-btn {
    background-color: #e74c3c;
}

#reset-btn:hover, #clear-all-btn:hover {
    background-color: #c0392b;
}

#drag-images {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

#drag-images img {
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
    cursor: move;
    transition: transform 0.3s ease;
}

#drag-images img:hover {
    transform: scale(1.1);
}

/* Tabla */
#tabla-container {
    overflow-x: auto;
}

#tabla-calendario {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#tabla-calendario th, #tabla-calendario td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

#tabla-calendario th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

#tabla-calendario td {
    height: 60px;
    transition: background-color 0.3s ease;
}

#tabla-calendario td:hover {
    background-color: #ecf0f1;
}

#tabla-calendario td img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #calendario {
        padding: 1rem;
    }

    #top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    #form-actividad {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    #tabla-calendario {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #tabla-calendario thead, #tabla-calendario tbody, #tabla-calendario tr {
        display: block;
    }

    #tabla-calendario td, #tabla-calendario th {
        display: inline-block;
        min-width: 100px;
    }

    #tabla-calendario td:first-child, #tabla-calendario th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: white;
    }
}