        .fdatepicker-input {
            padding: 12px 16px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            background: white;
            cursor: pointer;
            min-width: 200px;
            transition: border-color 0.2s;
        }

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

        .fdatepicker-popup {
            position: absolute;
            top: 100%;
            bottom: auto;
            left: 0;
            margin-top: 1px;
            background: white;
            border: 1px solid #e1e5e9;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            padding: 3px;
            min-width: 240px;
            z-index: 1000;
            display: none;
        }

        .fdatepicker-popup.active {
            display: block;
        }

        .fdatepicker-popup-bottom {
            margin-top: 0;
            margin-bottom: 4px;
        }

        .fdatepicker-popup-middle {
            margin-top: 0;
            transform: translateY(-50%); /* Move 50% bove the calculated position */
        }

        .fdatepicker-popup-top {
            margin-top: 0;
            transform: translateY(-100%); /* Move above the calculated position */
        }

        .fdatepicker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
            border-bottom: 1px solid #e5e7eb;
        }

        .fdatepicker-nav {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: background-color 0.2s;
            margin: auto;
            color: initial;
        }

        .fdatepicker-nav:hover, .fdatepicker-nav:focus {
            background: #f3f4f6;
            outline: 1px solid #3b82f6;
            outline-offset: 1px;
        }

        .fdatepicker-title {
            font-weight: 600;
            font-size: 16px;
            color: #374151;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: background-color 0.2s;
        }

        .fdatepicker-title:hover, .fdatepicker-title:focus {
            background: #f3f4f6;
            outline: 1px solid #3b82f6;
            outline-offset: 1px;
        }

        .fdatepicker-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }

        .fdatepicker-grid.months {
            grid-template-columns: repeat(3, 1fr);
            gap: 2px;
        }

        .fdatepicker-grid.years {
            grid-template-columns: repeat(3, 1fr);
            gap: 2px;
        }

        .fdatepicker-day-header {
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            padding: 8px 4px;
        }

        .fdatepicker-day, .fdatepicker-month, .fdatepicker-year {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.2s;
            position: relative;
            outline: none;
            height: 32px;
        }

        .fdatepicker-month, .fdatepicker-year {
            aspect-ratio: 2.5/1;
        }

        .fdatepicker-day.focus, .fdatepicker-month.focus, .fdatepicker-year.focus {
            outline: 2px solid #3b82f6;
            outline-offset: 1px;
            z-index: 1;
        }
        .fdatepicker-day.focus:not(.selected), .fdatepicker-month.focus:not(.selected), .fdatepicker-year.focus:not(.selected) {
            background: #e0e7ff !important;
        }

        .fdatepicker-day.other-month, .fdatepicker-year.other-decade {
            color: #d1d5db;
        }

        .fdatepicker-day.other-month:hover, .fdatepicker-year.other-decade:hover {
            background: #f3f4f6;
        }

        .fdatepicker-day.today, .fdatepicker-month.current, .fdatepicker-year.current {
            color: #1d4ed8;
            outline: 2px solid #3b82f6;
            font-weight: 600;
        }

        .fdatepicker-day.selected, .fdatepicker-month.selected, .fdatepicker-year.selected {
            background: #3b82f6;
            color: white;
            font-weight: 600;
        }

        .fdatepicker-day.weekend {
            color: #ef4444;
        }

        .fdatepicker-day.in-range {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .fdatepicker-day.range-start, .fdatepicker-day.range-end {
            background: #3b82f6;
            color: white;
        }

        .fdatepicker-day.multi-selected {
            background: #10b981;
            color: white;
            font-weight: 600;
        }

        .fdatepicker-day.disabled {
            color: #d1d5db !important;
            cursor: not-allowed !important;
            pointer-events: none !important;
        }

        .fdatepicker-buttons {
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            gap: 6px;
        }

        .fdatepicker-button-text {
            background: transparent;
            border: none;
            color: #374151;
            font-size: 14px;
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s;
            flex: 1;
            text-align: center;
            margin: auto;
        }

        .fdatepicker-button-text:hover,
        .fdatepicker-button-text:focus {
            background-color: #f3f4f6;
            color: #111827;
            outline: 2px solid #d1d5da;
            outline-offset: -2px;
        }

        .fdatepicker-button-text:active {
            background-color: #e5e7eb;
        }

        .fdatepicker-timepicker {
            border-top: 1px solid #e5e7eb;
            padding: 5px;
            margin-top: 5px;
            display: block;
        }

        .fdatepicker-time-inputs {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: center;
        }

        input.fdatepicker-time-input {
            width: 60px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            text-align: center;
            font-size: 14px;
        }

        .fdatepicker-time-separator {
            font-weight: bold;
            font-size: 18px;
        }

        .fdatepicker-time-ampm {
            padding: 4px 10px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            background: white;
        }

        .fdatepicker-time-ampm.active {
            background: #3b82f6;
            color: white;
        }
        .fdatepicker-time-ampm:focus {
            outline: 2px solid #3b82f6;
            outline-offset: -2px;
        }
