/* Ethiopian calendar & clock widgets (see ethiopian-calendar.js). Class names
   match the old ethiopian-date-picker plugin so page theming keeps working. */

.ethio-datepicker-wrapper { position: relative; width: 100%; }

.picker-container { position: relative; width: 100%; }

.picker-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all .3s;
    background: #f8f9fa;
    cursor: pointer;
    font-family: inherit;
    color: #333;
}
.picker-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px #667eea1a; }
.picker-input:hover { border-color: #764ba2; }

.ethio-date-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .7;
}

.calendar-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px #0003;
    z-index: 1000;
    overflow: hidden;
    animation: ethioSlideDown .3s ease;
    font-family: inherit;
}
@keyframes ethioSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calendar-header { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 18px 20px; }
.selected-date-large { font-size: 22px; font-weight: 700; line-height: 1.4; }

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}
.nav-button, .nav-title {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s;
    font-family: inherit;
}
.nav-button { font-size: 20px; padding: 6px 15px; color: #667eea; }
.nav-title { font-size: 17px; font-weight: 600; color: #333; padding: 5px 15px; }
.nav-button:hover, .nav-title:hover { background: #e0e0e0; color: #764ba2; }

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #667eea;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px; gap: 5px; }
.calendar-day {
    aspect-ratio: 1;
    width: 40px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    font: inherit;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all .2s;
}
.calendar-day:hover { background: #667eea; color: #fff; }
.calendar-day.selected { background: #764ba2; color: #fff; font-weight: 700; }
.calendar-day.today { border: 2px solid #667eea; font-weight: 700; }
.calendar-day.empty { cursor: default; }
.calendar-day.empty:hover { background: none; }
.calendar-day.disabled, .calendar-day.disabled:hover { color: #c3c7cf; background: none; cursor: not-allowed; }

.month-grid, .year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}
.month-item, .year-item {
    padding: 13px 5px;
    text-align: center;
    border: 0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    font: inherit;
    cursor: pointer;
    transition: all .2s;
}
.month-item:hover, .year-item:hover { background: #667eea; color: #fff; }
.month-item.selected, .year-item.selected { background: #764ba2; color: #fff; }

.calendar-footer {
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
}
.footer-button { padding: 8px 16px; border: none; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; transition: all .2s; }
.footer-button.today { background: #667eea; color: #fff; }
.footer-button.today:hover { background: #764ba2; }
.footer-button.today:disabled { opacity: .45; cursor: not-allowed; }
.footer-button.clear { background: #e0e0e0; color: #333; }
.footer-button.clear:hover { background: #d0d0d0; }

/* Date + Ethiopian-clock time (datetime-local fields) */
.ethio-datetime { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.ethio-datetime > .ethio-datepicker-wrapper { flex: 1 1 14rem; width: auto; }
.ethio-datetime > .ethio-time-select { flex: 1 1 10rem; width: auto; min-width: 0; }

.ethio-date-static { display: block; padding: 6px 8px; min-height: 35px; line-height: 1.5; }
