.calendar {
    margin: 0 auto;
}
.nav a{
    border: 1px solid #ddd;
    font-size:20px;
    font-weight: 100 !important;
	width: 35px;
	height: 35px;
	line-height: 35px;
	border-radius: 100px;
	text-align: center;
	color: #4574b9;
	display: inline-block;
}
.calendar .nav, .view-switch {
    align-items: center;
    margin: 10px 0;
	width: 100%;
	text-align: center;
}
.calendar .nav .center {
    font-size: 22px;
    font-weight: bold;
    padding-right: 10px;
	text-align: center;
	display: inline-block;
}
.calendar .calendar-grid {
    width: 100%;
    border-collapse: collapse;
}
.calendar-grid th {
    width: 14%;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    position: relative;
}
.calendar-grid td {
    width: 14%;
    border: 1px solid #ddd;
    padding: 5px;
    height: 150px;
    text-align: left;
    vertical-align: top;
    position: relative;
    font-weight: bold;
}


.calendar-grid td:hover {
    background-color: rgba(0, 123, 255, 0.1);
}
.calendar-grid th {
    background: #f4f4f4;
    text-align: center;
}
.calendar-grid .dayoff {
    color: red;
    font-weight: bold;
}
.calendar-grid .off_text{
    color: red;
    float: right;
}
.prev-month, .next-month {
    color: #dbdbdb;
    cursor: pointer;
}
.prev-month:hover, .next-month:hover {
    color: #777;
    text-decoration: underline;
}
.calendar-grid .weekdays{
    height:auto;
}
.calendar-grid td.has-schedule {
    background-color: #e0f7fa; 
}

td.has-schedule + td.has-schedule {
    border-left: 0;
}

.calendar-grid .day_top{
    width: 100%;
    padding-bottom: 5px;
}

.calendar-grid .schedule-item {
    font-size: 13px;
    width: 100%;
    padding: 5px;
}

.calendar-grid .schedule-item span {
    font-weight: 400;
}

.calendar-grid .today{
    border: 1px solid transparent;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    display: inline-block;
    text-align: center;
    line-height: 25px;
    color: #fff;
    background: #000000;
}

.calendar-grid .scoring {
    position: absolute;
    top: -3px;
    left: -5px;
}
.calendar-grid .scoring img{
    width:30px;
}
.schedule-item a span:hover{
    font-weight: bold;
    color:black;
    transition : 1s;
    font-size:13.2px;
}

.shadow-md{
    z-index: 99999;
    width: 400px;
}
.m-1{
    margin: 0px !important;
}

.con_box img {
    margin: 0px auto !important;
}

/* 모바일 달력 스타일 */
.mobile-calendar {
    display: none;
}

/* PC에서는 PC용 달력만, 모바일에서는 모바일용 달력만 표시 */
@media (max-width: 768px) {
    .desktop-calendar {
        display: none;
    }

    .mobile-calendar {
        display: block;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }

    /* 요일 헤더 */
    .mobile-calendar-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        background: #f8f9fa;
        border-bottom: 2px solid #e0e0e0;
    }

    .mobile-weekday {
        padding: 10px 4px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

    .mobile-weekday.weekend {
        color: #cc2220;
    }

    /* 날짜 그리드 */
    .mobile-calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
        background: #e0e0e0;
    }

    .mobile-day-cell {
        background: #fff;
        min-height: 60px;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: background 0.2s ease;
        position: relative;
    }

    .mobile-day-cell.empty {
        background: #f8f9fa;
        cursor: default;
    }

    .mobile-day-cell.dayoff {
        background: #fff5f5;
    }

    .mobile-day-cell.today {
        background: #e8f4f8;
    }

    .mobile-day-cell.has-schedule {
        background: #fffbf0;
    }

    .mobile-day-cell.today.has-schedule {
        background: #e1f5e1;
    }

    .mobile-day-cell:not(.empty):active {
        background: #f0f0f0;
    }

    .mobile-day-number {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
    }

    .mobile-day-cell.today .mobile-day-number {
        background: #000;
        color: #fff;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .mobile-day-cell.dayoff .mobile-day-number {
        color: #cc2220;
    }

    /* 일정 점 표시 */
    .mobile-schedule-dots {
        display: flex;
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .schedule-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
    }

    /* 일정 상세 (아코디언) */
    .mobile-schedule-detail {
        grid-column: 1 / -1;
        background: #f8f9fa;
        border-top: 3px solid #4574b9;
        padding: 0;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 1000px;
        }
    }

    .mobile-schedule-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: #4574b9;
        color: #fff;
    }

    .mobile-schedule-detail-date {
        font-size: 16px;
        font-weight: 700;
    }

    .mobile-schedule-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .mobile-schedule-close:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-schedule-detail-content {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-schedule-group {
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-schedule-category {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .mobile-schedule-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-schedule-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .mobile-schedule-item {
        background: rgba(255, 255, 255, 0.3);
        padding: 12px;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        transition: background 0.2s ease;
    }

    .mobile-schedule-link:active .mobile-schedule-item {
        background: rgba(255, 255, 255, 0.5);
    }

    .mobile-schedule-title {
        font-size: 14px;
        font-weight: 500;
        flex: 1;
        line-height: 1.4;
    }

    .mobile-schedule-capacity {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.4);
        padding: 4px 10px;
        border-radius: 12px;
    }

    /* 날짜 네비게이션 모바일 조정 */
    .calendar .nav {
        padding-bottom: 16px;
    }

    .calendar .nav .center {
        font-size: 20px;
        padding-left: 12px;
        padding-right: 12px;
    }
}
