/* ═══════════════════════════════════════════════
   Çetaş Date Range Picker
   ═══════════════════════════════════════════════ */

.cetas-dp-wrapper {
    position: relative;
    z-index: 9999;
}

.cetas-dp-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.cetas-dp-field {
    position: relative;
    cursor: pointer;
}

.cetas-dp-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.cetas-dp-field .cetas-dp-display {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cetas-dp-field .cetas-dp-display:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.cetas-dp-field.active .cetas-dp-display {
    border-color: #1152d4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 82, 212, 0.1);
}

.cetas-dp-field .cetas-dp-display .cetas-dp-icon {
    color: #1152d4;
    font-size: 22px;
    flex-shrink: 0;
}

.cetas-dp-field .cetas-dp-display .cetas-dp-date-text {
    flex: 1;
}

.cetas-dp-field .cetas-dp-display .cetas-dp-placeholder {
    color: #94a3b8;
}

/* Calendar Dropdown */
.cetas-dp-calendar {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.15), 0 4px 20px -4px rgba(0,0,0,0.08);
    padding: 20px;
    display: none;
    min-width: 620px;
    animation: cetas-dp-fadeIn 0.2s ease-out;
}

.cetas-dp-calendar.show {
    display: block;
}

@keyframes cetas-dp-fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendar Grid (Two Months) */
.cetas-dp-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cetas-dp-month {
    min-width: 280px;
}

/* Month Header */
.cetas-dp-month-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.cetas-dp-month-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.cetas-dp-nav {
    position: absolute;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s;
    padding: 0;
}

.cetas-dp-nav:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cetas-dp-nav.prev { left: 0; }
.cetas-dp-nav.next { right: 0; }

/* Day Names */
.cetas-dp-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cetas-dp-dayname {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    padding: 6px 0;
}

/* Days Grid */
.cetas-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cetas-dp-day {
    position: relative;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
    user-select: none;
    line-height: 1;
}

.cetas-dp-day:hover:not(.disabled):not(.empty) {
    background: #f1f5f9;
}

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

.cetas-dp-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.cetas-dp-day.today {
    background: #1152d4;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cetas-dp-day.today:hover {
    background: #0d3fa8;
}

.cetas-dp-day.in-range {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 0;
}

.cetas-dp-day.range-start {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    border-radius: 8px 0 0 8px;
}

.cetas-dp-day.range-end {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    border-radius: 0 8px 8px 0;
}

.cetas-dp-day.range-start.range-end {
    border-radius: 8px;
}

.cetas-dp-day.today.in-range,
.cetas-dp-day.today.range-start,
.cetas-dp-day.today.range-end {
    border-radius: 50%;
}

.cetas-dp-day.today.range-start {
    background: #dc2626;
}

.cetas-dp-day.today.range-end {
    background: #dc2626;
}

/* Holiday dot */
.cetas-dp-day .holiday-dot {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
}

.cetas-dp-day.range-start .holiday-dot,
.cetas-dp-day.range-end .holiday-dot {
    background: #fff;
}

/* Holiday Legend */
.cetas-dp-holidays {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.cetas-dp-holiday-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.cetas-dp-holiday-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 680px) {
    .cetas-dp-calendar {
        min-width: auto;
        width: calc(100vw - 32px);
        max-width: 360px;
        padding: 16px;
    }
    .cetas-dp-months {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cetas-dp-month {
        min-width: auto;
    }
}
