/*
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f8f9ff;
} */

.main-calendar-container {
   /* flex: 1; */
   margin-left: 100px;
}

.side-container{
    display:flex;
}

.calendar-container {
    width: 1600px;        /* 고정 가로 */
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#add-event-btn {
    padding: 10px 20px;
    background: #6a5acd;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}


.day {
    border: 1px solid #ccc;
    padding: 10px;
    height: 100px;
    position: relative;
}

.day.disabled {
    background-color: #f0f0f0;
    color: #aaa;
}

.month-btn {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px;
}
.month-btn:hover {
    color: #007bff;
}

.day-name {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #efeefe;
    border-radius: 8px;
    width: 220px;
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    position: relative;
}

.calendar-day .date-number {
    font-weight: bold;
    width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.event-item {

    color: white;
    padding: 4px 6px;
    margin-top: 4px;
    border-radius: 6px;
    font-size: 12px;
}

.event-item small {
    opacity: 0.8;
    margin-left: 4px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    width: 320px;
    border-radius: 12px;
}

.modal-content input {
    width: 100%;
    margin: 5px 0 15px 0;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

.modal-actions {
    display: flex;
    justify-content: right;
    gap: 10px;
}

.modal-actions button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#save-event {
    background: #6a5acd;
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#event-title{
    width: 100%;
    margin: 5px 0 15px 0;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

.back-color{
    background-color: #a6a3cf;
    color:white;
}