.card {
    height: calc(100vh - 2rem);
    margin: 1rem 0;
    border: none;
    border-radius: 1rem;
}

.calendar-container {
    height: calc(100% - 60px);
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    height: 100%;
    grid-template-rows: auto repeat(6, 1fr);
}

.year-month-display {
    font-size: 1.2em;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.year-month-display:hover {
    background-color: #e9ecef;
}

.year-month-select {
    display: flex;
    gap: 8px;
}

.year-month-select .form-select {
    min-width: 100px;
    max-width: 120px;
    padding: 4px 8px;
    font-size: 0.9em;
    border-radius: 0.5rem;
    border-color: #dee2e6;
}

.search-wrapper {
    position: relative;
}

.search-wrapper .input-group {
    width: 200px;
}

.search-wrapper input {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
}

.search-wrapper .clear-btn {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.search-wrapper #searchBtn {
    border-radius: 0 0.5rem 0.5rem 0;
}

#currentYearMonth {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    min-width: 180px;
    cursor: pointer;
    transition: color 0.2s;
}

#currentYearMonth:hover {
    color: #0d6efd;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    color: #495057;
    font-size: 0.9em;
}

.calendar-header.sunday,
.calendar-day.sunday {
    color: #dc3545;
}

.calendar-header.saturday,
.calendar-day.saturday {
    color: #0d6efd;
}

.calendar-day {
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
}

.calendar-day:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-day.weekend {
    color: #dc3545;
}

.calendar-day.today {
    background-color: #e7f1ff;
    font-weight: 600;
    border-color: #0d6efd;
}

.calendar-day.other-month {
    color: #adb5bd;
    background-color: #f8f9fa;
}

.calendar-day.other-month.sunday {
    color: #f4a4ac;
}

.calendar-day.other-month.saturday {
    color: #a4c2f4;
}

.lunar-date {
    font-size: 0.75em;
    color: #6c757d;
    margin-top: 2px;
}

.solar-term {
    font-size: 0.7em;
    color: #198754;
    margin-top: 2px;
    font-weight: 500;
}

.solar-date {
    font-size: 1.1em;
    margin-bottom: 2px;
    font-weight: 500;
}

.d-none {
    display: none !important;
}

#clearSearch {
    padding: 0.375rem 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 0;
}

#homeBtn, #prevMonth, #nextMonth {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#homeBtn:hover, #prevMonth:hover, #nextMonth:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

.clear-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    color: #adb5bd;
    line-height: 1;
    border-radius: 0;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #6c757d;
}

#searchBtn {
    padding: 0.375rem 0.75rem;
}

.form-select:focus, .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.calendar-subtitle {
    font-size: 0.8em;
    font-weight: 400;
    color: #6c757d;
    display: block;
    margin-top: 2px;
    font-style: italic;
} 