﻿/* ============================================
   MODERN FILTER CARD STYLES
   ============================================ */

/* ============================================
   MODERN HORIZONTAL FILTER BAR
   ============================================ */

.modern-filter-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 16px;
    pointer-events: none;
}

.modern-search-input {
    flex: 1;
    padding: 14px 50px 14px 44px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #2d3748;
    outline: none;
}

    .modern-search-input::placeholder {
        color: #a0aec0;
    }

.modern-search-btn {
    position: absolute;
    right: 4px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modern-search-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .modern-search-btn i {
        font-size: 18px;
    }

/* Date Range Wrapper */
.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.date-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

    .date-input-container i {
        position: absolute;
        left: 12px;
        color: #a0aec0;
        font-size: 14px;
        pointer-events: none;
    }

.modern-date-input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #2d3748;
    outline: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .modern-date-input:focus {
        background: #f7fafc;
    }

.date-separator {
    color: #cbd5e0;
    font-weight: 600;
    padding: 0 4px;
}

/* Filter Buttons Wrapper */
.filter-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Filter Chip */
.filter-chip {
    background: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

    .filter-chip i {
        font-size: 16px;
    }

    /* Filter Chip Colors */
    .filter-chip.success {
        color: #38a169;
    }

        .filter-chip.success:hover,
        .filter-chip.success.active {
            background: #38a169;
            border-color: #38a169;
            color: white;
            box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
        }

    .filter-chip.warning {
        color: #dd6b20;
    }

        .filter-chip.warning:hover,
        .filter-chip.warning.active {
            background: #dd6b20;
            border-color: #dd6b20;
            color: white;
            box-shadow: 0 4px 12px rgba(221, 107, 32, 0.4);
        }

    .filter-chip.primary {
        color: #3182ce;
    }

        .filter-chip.primary:hover,
        .filter-chip.primary.active {
            background: #3182ce;
            border-color: #3182ce;
            color: white;
            box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
        }

    .filter-chip.info {
        color: #0bc5ea;
    }

        .filter-chip.info:hover,
        .filter-chip.info.active {
            background: #0bc5ea;
            border-color: #0bc5ea;
            color: white;
            box-shadow: 0 4px 12px rgba(11, 197, 234, 0.4);
        }

    .filter-chip.secondary {
        color: #718096;
    }

        .filter-chip.secondary:hover {
            background: #718096;
            border-color: #718096;
            color: white;
        }

    .filter-chip:hover {
        transform: translateY(-2px);
    }

    .filter-chip.active {
        transform: translateY(-2px);
    }

/* Filter Divider */
.filter-divider {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-filter-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-filter-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-1px);
    }

    .quick-filter-btn i {
        font-size: 12px;
    }

/* Responsive */
@media (max-width: 992px) {
    .modern-filter-bar {
        padding: 16px;
    }

    .filter-buttons-wrapper {
        justify-content: flex-start;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 12px;
    }

        .filter-chip span {
            display: none;
        }

        .filter-chip i {
            font-size: 18px;
        }
}

@media (max-width: 768px) {
    .modern-filter-bar {
        padding: 12px;
    }

    .date-range-wrapper {
        flex-direction: column;
        gap: 4px;
    }

    .date-separator {
        transform: rotate(90deg);
    }

    .quick-filters {
        justify-content: center;
    }
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

    .pagination .page-link {
        color: #0d6efd;
        border: 1px solid #dee2e6;
    }

    .pagination .page-item.active .page-link {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

    .pagination .page-item.disabled .page-link {
        color: #6c757d;
        pointer-events: none;
        background-color: #fff;
        border-color: #dee2e6;
    }

    .pagination .page-link:hover:not(.disabled) {
        background-color: #e9ecef;
    }
