.calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-wrapper.template-template1 {
    flex-direction: column;
}

.calendar-wrapper.template-template2 {
    flex-direction: row;
}

.calendar-wrapper.template-template3 {
    flex-direction: column-reverse;
}

.calendar-wrapper.template-template4 {
    flex-direction: row-reverse;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.month-selector button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--wp-admin-theme-color, #2271b1);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-selector button:hover {
    background-color: var(--wp-admin-theme-color, #2271b1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.month-selector span {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.month {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 16px;
    background-color: #fff;
    padding: 15px;
    transition: all 0.3s ease;
}

.day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% / 7 - 10px);
    height: 40px;
    text-align: center;
    margin: 5px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    background-color: #fff;
}

.day:hover {
    background-color: var(--wp-admin-theme-color, #2271b1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.day a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.day.selected {
    background-color: var(--wp-admin-theme-color, #2271b1);
    border-color: var(--wp-admin-theme-color, #2271b1);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.day.selected a {
    color: white;
}

.current-day {
    background-color: #e8f4ff;
    font-weight: 600;
    border-color: var(--wp-admin-theme-color, #2271b1);
}

#post-display {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #fff;
    display: none;
}

#post-display.active {
    display: block;
}

.month-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
}

.month-popup.active {
    display: block;
}

.month-popup .month-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.month-popup .month-item {
    width: 100px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold; /* Bold font for months */
}

.month-popup .month-item:hover {
    background-color: #0360A8;
    color: #fff;
}

.month-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .calendar-wrapper .month {
        max-width: 100%;
    }
    #post-display {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .calendar-wrapper .month {
        max-width: 100%;
    }
    #post-display {
        max-width: 100%;
    }
}

.calendar-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    max-width: 400px; /* הגבלת רוחב לוח השנה */
    margin: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-wrapper.template-template1 {
    flex-direction: column;
}

.calendar-wrapper.template-template2 {
    flex-direction: row;
}

.calendar-wrapper.template-template3 {
    flex-direction: column-reverse;
}

.calendar-wrapper.template-template4 {
    flex-direction: row-reverse;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.month-selector button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--wp-admin-theme-color, #2271b1);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-selector span {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.month {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100%;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 16px;
    background-color: #fff;
    padding: 15px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% / 7 - 10px);
    height: 40px;
    text-align: center;
    margin: 5px;
    border: 1px solid #eee;
    border-radius: 12px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    background-color: #fff;
}

.day:hover {
    background-color: var(--wp-admin-theme-color, #2271b1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.day a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.day.selected {
    background-color: var(--wp-admin-theme-color, #2271b1);
    border-color: var(--wp-admin-theme-color, #2271b1);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.day.selected a {
    color: white;
}

.current-day {
    background-color: #e8f4ff;
    font-weight: 600;
    border-color: var(--wp-admin-theme-color, #2271b1);
}

#custom-post-display {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #fff;
    display: none;
}

#custom-post-display.active {
    display: block;
}

.month-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
}

.month-popup.active {
    display: block;
}

.month-popup .month-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.month-popup .month-item {
    width: 100px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold; /* Bold font for months */
}

.month-popup .month-item:hover {
    background-color: #0360A8;
    color: #fff;
}

.month-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .calendar-wrapper .month {
        max-width: 100%;
    }
    #custom-post-display {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .calendar-wrapper .month {
        max-width: 100%;
    }
    #custom-post-display {
        max-width: 100%;
    }
}
