:root{
    --acent-color:#377C2B;
    --amarillo:#FAD900;
    --btn-succes:#79BA78;
    --background-amarillo:#ffd9009c;
}

body {
    font-family: Arial, sans-serif;
    background-color: white; 
    margin: 0;
    padding: 0;
    color: #333; 
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    color: var(--acent-color); 
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--background-amarillo);
}

.header h1 {
    color: var(--acent-color);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--background-amarillo); 
}

.tabs button {
    flex: 1;
    padding: 10px;
    background-color: var(--acent-color); 
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    border-radius: 10px 10px 0 0; 
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: var(--background-amarillo);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--amarillo);
    font-weight: bold;
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--amarillo);
    color: var(--acent-color);
}

.event-details, .relevant-info, .filters, .total-budget {
    margin-bottom: 20px;
}

.event-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.event-info label, .event-info input {
    flex: 1;
    /*margin-right: 10px;*/
    padding: 1rem;
}

.event-info label:last-child, .event-info input:last-child {
    margin-right: 0;
}

select, input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--background-amarillo);
    color: var(--acent-color);
    transition: background-color 0.3s, color 0.3s;
    appearance: none;
}

select:hover, input[type="date"]:hover {
    background-color: var(--amarillo);
}

select:focus, input[type="date"]:focus {
    outline: none;
    border-color: var(--acent-color);
}

.relevant-info textarea{
    width: 100%;
    min-height: 300px; 
    box-sizing: border-box;
}
.cont-participantes{
    width: 100%;
    display: flex;
}
#participantes{
    font-weight: bold;
    text-align: center;
    font-size: large;
    font-family: math;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filters label, .filters select, .filters input {
    margin-right: 10px;
}

#eventSelect {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    padding: 10px;
}

.tasks {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.tasks th, .tasks td {
    padding: 15px;
    text-align: left;
}

.tasks th {
    background-color: var(--acent-color);
    color: var(--amarillo);
    font-weight: bold;
}

.tasks tr {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tasks tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.total-budget {
    display: flex;
    justify-content: flex-end;
}

.total-budget input {
    border: none;
    color: var(--amarillo); 
    font-weight: bold;
    background-color: var(--acent-color); 
    padding: 5px;
    border-radius: 5px;
    text-align: right;
}

.btn, .btn-agregar-tarea, .btn-modificar-evento, .btn-eliminar-tarea, .btn-editar-tarea {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 5px;
    background-color: var(--acent-color); 
    color: white;
    text-decoration: none;
}

.btn:hover, .btn-agregar-tarea:hover, .btn-modificar-evento:hover, .btn-eliminar-tarea:hover, .btn-editar-tarea:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.state-no-init{
    background-color: #ccc;
    border-radius: .5rem;
}
.state-init{
    background-color: var(--amarillo);
    border-radius: .5rem;
}
.state-finish{
    background-color: var(--acent-color);
    border-radius: .5rem;
    font-weight: bold;
    color: var(--amarillo);
}
.btn-eliminar-tarea { background-color: #e74c3c; color: white; }
.btn-agregar-tarea { background-color: #2ecc71; color: white; }
.btn-editar-tarea { background-color: #3498db; color: white; }
.btn-modificar-evento { background-color: #f1c40f; color: white; }

@media (max-width: 1200px) {
    .event-info {
        flex-direction: column;
        align-items: stretch;
    }

    .event-info label, .event-info input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .cont-participantes{
        width: 100%;
        display: block;
    }
}
@media (max-width:994px) {
    .swal2-show{
        width: 90% !important;
    }
}
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        margin-top: 10px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex-basis: calc(50% - 5px);
        margin-bottom: 10px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters label, .filters select, .filters input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .tasks {
        font-size: 14px;
    }

    .btn, .btn-agregar-tarea, .btn-modificar-evento, .btn-eliminar-tarea, .btn-editar-tarea {
        width: 100%;
        margin: 5px 0;
    }
    
}