﻿.calendar {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    z-index: 999;
    width: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dp-nav {
    cursor: pointer;
    padding: 4px 8px;
}

.dp-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day {
    padding: 6px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
}

    .day:hover {
        background: #f2f2f2;
    }

.today-active {
    background: #007bff;
    color: white;
}

.today {
    margin-top: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #007bff;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .calendar {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* ===== root wrapper ===== */
.plan-date {
    width: 100%;
    font-family: Arial, sans-serif;
}

/* ===== label ===== */
.plan-date__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

/* ===== field container ===== */
.plan-date__field {
    position: relative;
    display: flex;
    align-items: center;
   /* background: #f9fafb;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 6px 40px 6px 10px;
    min-height: 44px;*/
    transition: all 0.15s ease;
}

    /* hover subtle */
    .plan-date__field:hover {
        border-color: #bfc6d4;
        background: #f6f7f9;
    }

    /* focus state (enterprise feel) */
    .plan-date__field:focus-within {
        border-color: #3b82f6;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    }

    /* ===== input ===== */
    .plan-date__field input {
        border: none;
        outline: none;
        background: transparent;
        font-size: 14px;
        color: #101828;
        font-weight: 500;
        height: 30px;
    }

        /* placeholder style */
        .plan-date__field input::placeholder {
            color: #98a2b3;
        }

/* ===== icon inside ===== */
.plan-date__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    /* icon hover */
    .plan-date__icon:hover {
        background: #eef2f7;
    }

    /* icon active click */
    .plan-date__icon:active {
        transform: translateY(-50%) scale(0.95);
    }

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .plan-date__field {
        min-height: 48px;
        border-radius: 12px;
    }

        .plan-date__field input {
            font-size: 16px; /* prevent zoom iOS */
        }
}

/* ===== OPTIONAL DARK MODE READY ===== */
@media (prefers-color-scheme: dark) {
    .plan-date__label {
        color: #e5e7eb;
    }

    .plan-date__field {
        background: #1f2937;
        border-color: #374151;
    }

        .plan-date__field input {
            color: #f9fafb;
        }

    .plan-date__icon:hover {
        background: #374151;
    }
}