/* Ethiopian Datepicker Styles - Premium Vanilla CSS */

.eth-datepicker-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.eth-datepicker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    user-select: none;
}

.eth-datepicker-trigger:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.eth-datepicker-trigger .placeholder {
    color: #9ca3af;
}

.eth-datepicker-trigger i {
    color: #6b7280;
    margin-left: 8px;
}

/* Popover Modal */
.eth-datepicker-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.eth-datepicker-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eth-dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.eth-dp-header button {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: background 0.2s, color 0.2s;
}

.eth-dp-header button:hover {
    background: #e5e7eb;
    color: #111827;
}

.eth-dp-month-year {
    font-weight: 600;
    color: #111827;
    font-size: 1.05rem;
    text-align: center;
}

.eth-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.eth-dp-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.eth-dp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #374151;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.eth-dp-day:hover:not(.empty) {
    background: #f3f4f6;
}

.eth-dp-day.selected {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.eth-dp-day.empty {
    cursor: default;
}

/* Time Picker Section */
.eth-dp-time {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.eth-dp-time select {
    appearance: none;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    outline: none;
}
.eth-dp-time select:focus {
    border-color: #3b82f6;
}
.eth-dp-time span {
    font-weight: 600;
    color: #4b5563;
}

.eth-dp-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.eth-dp-btn-primary {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.eth-dp-btn-primary:hover {
    background: #1f2937;
}

/* Utility to hide original input */
input.eth-dp-hidden {
    display: none !important;
}
