/* date picker */
.date-picker-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-picker-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: "Galano", sans-serif;
    font-size: 14px;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.date-picker-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-picker-input::placeholder {
    color: #9ca3af;
}

.date-picker-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7280;
    pointer-events: none;
}

.date-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    margin-top: 4px;
    padding: 20px;
    display: none;
}

.date-picker-dropdown.active {
    display: block;
}

.date-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
}

.date-input-label {
    font-family: "Galano", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-input-field {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: "Galano", sans-serif;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s;
}

.date-input-field:focus {
    outline: none;
    border-color: #3b82f6;
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calendar-month {
    min-width: 280px;
}

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

.calendar-nav-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: #f3f4f6;
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-title {
    font-family: "Galano", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    padding: 8px 4px;
    text-align: center;
    font-family: "Galano", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Galano", sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    color: #374151;
}

.calendar-day:hover {
    background-color: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day.selected {
    background-color: #3b82f6;
    color: white;
}

.calendar-day.in-range {
    background-color: #dbeafe;
    color: #1e40af;
}

.calendar-day.today {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-picker-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.date-picker-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: "Galano", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.date-picker-btn.reset {
    background-color: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.date-picker-btn.reset:hover {
    background-color: #f3f4f6;
}

.date-picker-btn.cancel {
    background-color: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.date-picker-btn.cancel:hover {
    background-color: #f3f4f6;
}

.date-picker-btn.apply {
    background-color: #3b82f6;
    color: white;
}

.date-picker-btn.apply:hover {
    background-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .date-range-inputs {
        grid-template-columns: 1fr;
    }

    .calendar-month {
        min-width: auto;
    }
}
