* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    font-size: 24px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

main {
    flex: 1;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    transition: background 0.3s ease;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

#calendar {
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.fc-daygrid-event {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    padding: 3px;
    font-size: 12px;
    color: white;
}

.fc-day-today {
    background-color: #e3f2fd !important;
}

.fc-toobar {
    background-color: #343a40;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.fc-button {
    background-color: #28a745 !important;
    border: none !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
}

.fc-button:hover {
    background-color: #218838 !important;
}

button, input {
    transition: all 0.3s ease-in-out;
}

.swal2-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    width: 100%;
}

.swal2-form-group label {
    font-weight: bold;
}

.swal2-form-group input {
    width: 100%;
    margin: 16px 0px 3px !important;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.error-message {
    color: red;;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 4px;
    display: block;
}

.swal2-input.error {
    border: 2px solid red !important;
    background-color: #ffe6e6;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    margin-top: 20px;
}


@media (max-width: 768px) {
    #calendar {
        max-width: 100%;
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
    }
}

.swal2-input {
    width: 100% !important;
}

@media screen and (max-width: 480px) {
    .swal2-popup {
        width: 95% !important;
    }

    .swal2-input {
        font-size: 14px;
        padding: 10px;
    }

    .swal2-form-group label {
        font-size: 14px;
    }
}