
/* Date Picker Styles */
.date_picker_ai-container {
    margin-bottom: 15px;
}

.date_picker_ai-card {
    border-radius: 15px;
    position: relative;
}

.date_picker_ai-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
    color: #797bf2;
}

.date_picker_ai-date-result-inline {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(121, 123, 242, 0.1);
    border: 1px solid rgba(121, 123, 242, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #b1b1b9;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.date_picker_ai-header {
    margin-bottom: 20px;
    padding-left: 35px;
}

.date_picker_ai-header h3 {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.date_picker_ai-selector-wrapper {
    position: relative;
}

.date_picker_ai-selector {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.is-dark .date_picker_ai-selector {
    border: 1px solid #1f1f26;
    background-color: #323236;
}

.date_picker_ai-selector:hover {
    border-color: #797bf2;
}

.date_picker_ai-selector.active {
    border-color: #797bf2;
    box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
}

.date_picker_ai-selector-text {
    color: #aaaab3;
    font-weight: 500;
}

.date_picker_ai-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ccc;
    transition: transform 0.3s ease;
}

.date_picker_ai-arrow.up {
    transform: rotate(180deg);
}

.date_picker_ai-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(59, 59, 65, 0.98);
    border: 1px solid #3b3b41;
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.date_picker_ai-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.date_picker_ai-section {
    padding: 15px;
    border-bottom: 1px solid #3b3b41;
}

.date_picker_ai-section:last-child {
    border-bottom: none;
}

.date_picker_ai-section-title {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.date_picker_ai-quick-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

@media (max-width: 480px) {
    .date_picker_ai-quick-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .date_picker_ai-option-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .date_picker_ai-selector {
        padding: 16px;
        font-size: 1rem;
    }

    .date_picker_ai-custom-range {
        gap: 8px;
    }

    .date_picker_ai-relative {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .date_picker_ai-number-input {
        width: 100%;
    }

    .date_picker_ai-select {
        width: 100%;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .date_picker_ai-quick-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.date_picker_ai-option-btn {
    padding: 8px 12px;
    background: #323236;
    color: #ccc;
    border: 1px solid #3b3b41;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.date_picker_ai-option-btn:hover {
    background: #797bf2;
    color: white;
    border-color: #797bf2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 123, 242, 0.4);
}

.date_picker_ai-option-btn.active {
    background: #797bf2;
    color: white;
    border-color: #797bf2;
}

.date_picker_ai-custom-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date_picker_ai-input {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #323236;
    color: #fff;
}

.date_picker_ai-input:focus {
    outline: none;
    border-color: #797bf2;
    box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
}

.date_picker_ai-relative {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
}

.date_picker_ai-number-input {
    width: 60px;
    padding: 6px 10px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #323236;
    color: #fff;
    text-align: center;
}

.date_picker_ai-number-input:focus {
    outline: none;
    border-color: #797bf2;
    box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
}

.date_picker_ai-select {
    padding: 6px 10px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: #323236;
    color: #fff;
    cursor: pointer;
}

.date_picker_ai-select:focus {
    outline: none;
    border-color: #797bf2;
    box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
}

.date_picker_ai-btn {
    padding: 8px 16px;
    background: #797bf2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.date_picker_ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 123, 242, 0.4);
}

.date_picker_ai-result {
    border-radius: 6px;
    padding: 0px;
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.date_picker_ai-result.show {
    display: flex;
}

.date_picker_ai-result-text {
    color: #aaaab3;
    font-size: 0.9rem;
    font-weight: 500;
}

.date_picker_ai-copy-btn {
    padding: 6px 12px;
    background: #797bf2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.date_picker_ai-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 123, 242, 0.4);
}

.date_picker_ai-copy-btn.copied {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .date_picker_ai-container {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .date_picker_ai-card {
        padding: 15px;
    }

    .date_picker_ai-quick-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .date_picker_ai-custom-range {
        flex-direction: column;
        align-items: stretch;
    }

    .date_picker_ai-input {
        width: 100%;
    }

    .date_picker_ai-relative {
        flex-wrap: wrap;
    }

    .date_picker_ai-header h3 {
        font-size: 0.9rem;
    }

    .date_picker_ai-section {
        padding: 12px;
    }
}

/* Scrollbar Styling */
.date_picker_ai-dropdown::-webkit-scrollbar {
    width: 8px;
}

.date_picker_ai-dropdown::-webkit-scrollbar-track {
    background: #323236;
    border-radius: 4px;
}

.date_picker_ai-dropdown::-webkit-scrollbar-thumb {
    background: #797bf2;
    border-radius: 4px;
}

.date_picker_ai-dropdown::-webkit-scrollbar-thumb:hover {
    background: #6668d9;
}

.date_picker_ai-date-interval-text {
    margin-left: 5px;
    margin-bottom: 5px;
}

.empty-filter-cell-text-label {
    font-size: .9rem;
    display: flex;
    margin-left: 5px;
    margin-bottom: 2px;
}