/* Frontend Styles for Fluent Forms Table Pro */

.fftp-table-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.fftp-user-filter-notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    background: #e7f5fe;
    border-left: 4px solid #2271b1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1e1e1e;
}

.fftp-user-filter-notice .dashicons {
    color: #2271b1;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fftp-user-filter-notice.fftp-notice-warning {
    background: #fcf3cf;
    border-left-color: #f9a825;
}

.fftp-user-filter-notice.fftp-notice-warning .dashicons {
    color: #f9a825;
}

.fftp-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.fftp-date-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fftp-date-filter label {
    font-weight: 600;
    margin: 0;
}

.fftp-date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    min-width: 150px;
}

.fftp-date-separator {
    color: #646970;
    margin: 0 5px;
}

.fftp-apply-filter,
.fftp-clear-filter {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fftp-apply-filter:hover {
    background: #135e96;
    border-color: #135e96;
}

.fftp-clear-filter {
    background: #fff;
    color: #2271b1;
}

.fftp-clear-filter:hover {
    background: #f6f7f7;
}

.fftp-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.fftp-table-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fftp-count {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
}

.fftp-count-number {
    color: #2271b1;
    font-size: 18px;
}

.fftp-selected-info {
    font-size: 14px;
    color: #646970;
    padding: 5px 10px;
    background: #f0f6fc;
    border-radius: 3px;
    border: 1px solid #2271b1;
}

.fftp-selected-count {
    font-weight: 600;
    color: #2271b1;
}

.fftp-actions {
    display: flex;
    gap: 10px;
}

.fftp-export {
    display: flex;
    gap: 10px;
}

.fftp-export-btn,
.fftp-export-selected-btn {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #2271b1;
    background: #fff;
    color: #2271b1;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fftp-export-btn:hover,
.fftp-export-selected-btn:hover {
    background: #2271b1;
    color: #fff;
}

.fftp-export-selected-btn {
    background: #2271b1;
    color: #fff;
}

.fftp-export-selected-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

/* DataTable Customization */
.fftp-datatable {
    border-collapse: collapse;
}

.fftp-datatable thead th {
    background: #f9f9f9;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 2px solid #e5e5e5;
}

.fftp-datatable tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.fftp-datatable tbody tr:hover {
    background: #f9f9f9;
}

/* Checkbox Styles */
.fftp-select-checkbox {
    width: 40px;
    text-align: center;
}

.fftp-select-all,
.fftp-row-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.fftp-select-all:hover,
.fftp-row-checkbox:hover {
    transform: scale(1.1);
}

/* Selected Row Highlight */
.fftp-datatable tbody tr:has(.fftp-row-checkbox:checked) {
    background-color: #f0f6fc;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .fftp-table-wrapper {
        padding: 10px;
    }
    
    .fftp-user-filter-notice {
        font-size: 13px;
        padding: 10px;
    }
    
    .fftp-date-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fftp-date-input {
        width: 100%;
    }
    
    .fftp-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .fftp-table-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .fftp-actions {
        width: 100%;
    }
    
    .fftp-export {
        width: 100%;
        flex-direction: column;
    }
    
    .fftp-export-btn,
    .fftp-export-selected-btn {
        width: 100%;
    }
}

/* Loading State */
.fftp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fftp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fftp-spin 1s linear infinite;
}

@keyframes fftp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* jQuery UI Datepicker Customization */
.ui-datepicker {
    font-size: 14px;
}

.ui-datepicker-calendar td a {
    text-align: center;
}
