@charset "UTF-8";

.mini-calendar {
    width: 360px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
}
.mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    height: 50px;
}
.mini-cal-header span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.mini-cal-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    padding: 0 4px;
    line-height: 1;
}
.mini-cal-header button:hover { color: #333; }

.mini-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.mini-cal-week span {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 4px 0;
}
.mini-cal-week .sun { color: #e74c3c; }
.mini-cal-week .sat { color: #3A43AC; }

.mini-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}
.mini-day {
    min-height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    cursor: pointer;
    border-radius: 4px;
}
.mini-day:hover { background: #f5f5f5; }
.mini-day.empty { cursor: default; }
.mini-day.empty:hover { background: none; }

.mini-day .day-num {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}
.mini-day.sun  .day-num { color: #e74c3c; }
.mini-day.sat  .day-num { color: #3A43AC; }
.mini-day.holiday .day-num { color: #e74c3c; }
.mini-day.today .day-num {
    background: #3A43AC;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.mini-day .dots {
    display: flex;
    gap: 2px;
    margin-top: 1px;
}
.mini-day .dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: block;
}

.mini-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.mini-cal-legend span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    color: #666;
}
.mini-cal-legend i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}


/* 팝업 딤 */
.mini-cal-dim {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* 팝업 */
.mini-cal-pop {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    width: 720px;        /* 360px → 720px */
    max-height: 1000px;  /* 500px → 1000px */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.mini-cal-pop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;  /* 16px 20px → 32px 40px */
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.mini-cal-pop-header span {
    font-size: 24px;     /* 15px → 20px */
    font-weight: 600;
    color: #333;
}
.mini-cal-pop-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;     /* 16px → 22px */
    color: #888;
    line-height: 1;
    padding: 0;
}
.mini-cal-pop-body {
    /* padding: 32px 40px;   *//* 16px 20px → 32px 40px */
}
.mini-cal-pop-empty {
    text-align: center;
    color: #999;
    font-size: 16px;     /* 13px → 16px */
    padding: 60px 0;     /* 30px → 60px */
}
.mini-cal-pop-item {
    display: flex;
    align-items: center;
    gap: 20px;           /* 12px → 20px */
    padding: 18px 18px;     /* 10px → 18px */
    border-bottom: 1px solid #f5f5f5;
}
.mini-cal-pop-color {
    width: 14px;         /* 8px → 14px */
    height: 14px;        /* 8px → 14px */
    border-radius: 50%;
    flex-shrink: 0;
}
.mini-cal-pop-title {
    font-size: 18px;     /* 14px → 18px */
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;  /* 3px → 5px */
}
.mini-cal-pop-date {
    font-size: 14px;     /* 12px → 14px */
    color: #999;
}

@media all and (max-width:1200px) {
	.mini-calendar {
		width:100%; max-width:600px; margin:40px auto;
	}
	.mini-cal-header span {
		font-size:20px;
	}
	.mini-day .day-num {
		font-size:16px;
	}
}
@media (max-width: 768px) {
    .mini-cal-pop {
        width: 90%;
        max-height: 80vh;
    }
}