/* New AddEvents.css */

h2 {
    text-align: center;
    margin-top: 20px;
}

#form-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

#add-event-form {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
/*    background-color: #fff;
*/    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

    #add-event-form h3 {
        margin-top: 0;
        font-size: 24px;
        font-weight: bold;
        text-align: center;
    }

.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .form-row label {
        flex: 0 0 100px;
        /*        margin-right: 20px;
*/ font-weight: bold;
        margin-left: 25px;
    }

    .form-row input[type="text"],
    .form-row input[type="datetime-local"],
    .form-row textarea,
    .form-row select {
        flex: 1;
        min-width: 100px;
        margin-left: 10px;
        margin-bottom: 10px;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .form-row input[type="datetime-local"] {
        max-width: calc(50% - 20px);
    }

    .form-row textarea {
        flex: -1 0 100%
    }

.actions {
    display: flex;
    justify-content: space-between;
}

    .actions button {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        background-color: #2d5581;
        color: #fff;
        cursor: pointer;
        font-size: 16px;

    }

        .actions button:hover {
            background-color: #0056b3;
        }

    .actions #cancel-event {
        background-color: #6c757d;
    }

        .actions #cancel-event:hover {
            background-color: #5a6268;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

        .form-row label {
            flex: 0 0 100%;
            margin-right: 0;
        }

        .form-row input[type="text"],
        .form-row input[type="datetime-local"],
        .form-row textarea,
        .form-row select {
            flex: 1 0 100%;
            margin-left: 0;
        }

        .form-row input[type="datetime-local"] {
            max-width: 100%;
        }
}
.form-row input[type="checkbox"] {
    margin-left: 25px;
    margin-right: 10px;
    margin-top: 5px;
}