body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.calendar {
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 50%;
    margin: 0 auto;
}

.calendar-day{
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 60%;
    margin: 20px;
}

.logout-link {
    position: absolute;
    top: 20px; /* Adjust this value to move the link up/down */
    right: 20px; /* Adjust this value to move the link left/right */
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-link:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.logout-link:active {
    background-color: #003f7f;
    border-color: #003f7f;
}


h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #333;
    color: white;
    padding: 5px;
    text-transform: uppercase;
}

.calendar td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    vertical-align: center;
    height: 100px;
    position: relative;
}

.calendar-day td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    vertical-align: center;
    height: 60px;
    position: relative;
}

.days {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    box-sizing: border-box;
}

.days:hover {
    background: rgba(0, 0, 0, 0.1); /* Darker color on hover */
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 5px;
    transition: background 0.3s ease;
    font-size: 22px;
    width: 40px;
    height: 40px;
}

.btn-danger-icon {
    background-color: #f44336;
}

.btn-danger-icon:hover {
    background-color: #d32f2f;
}

.btn-warning-icon {
    background-color: #ff9800;
}

.btn-warning-icon:hover {
    background-color: #e68900;
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #007bffb9;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    max-width: 200px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0162ca;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 16px;
    text-decoration: none;
    color: #ffffff;
    background-color: #6c757d;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #5a6268;
}

.back-button i {
    margin-right: 8px;
}

.highlighted-day {
    background-color: #71c7ec;
}

.highlighted-day a {
    color: white;
}

.highlighted-day:hover {
    background-color: #5ba8d0;
}

.add-event {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-event form{
    width: 100%;
}


.add-event input[type="text"],
.add-event input[type="date"],
.add-event input[type="time"],
.add-event select,
.add-event textarea,
.add-event input[type="file"] {
    width: 98%;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    text-align: center;
}

.add-event input[type="submit"] {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1em;
    width: 98%;
    margin: 10px;
}

.add-event input[type="submit"]:hover {
    background: #0056b3;
}

.log_in{
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: #333;
    color: white;
    padding: 30px;
}

.btn-export{
    float: right;
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #007bffb9;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    max-width: 200px;
    transition: background 0.3s ease;
}

.btn-export:hover{
    background-color: #0162ca;
}

@media (max-width: 768px) {
    .calendar {
        width: 70%;
    }

    .calendar-day {
        width: 60%;
    }

    .add-event {
        width: 50%;
    }
}

@media (max-width: 1500px) {
    .calendar {
        width: 50%;
    }

    h1{
        font-size: 25px;
    }

    a, th{
        font-size: 12px;
    }

    .calendar td, .calendar-day td{
        height: 50px;
        font-size: 12px;
    }

    .calendar-day {
        width: 70%;
    }

    .btn-primary, .back-button, .btn-export{
        padding: 10px;
    }

    .btn-icon{
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .add-event {
        width: 30%;
    }
}