/* Checklist Widget Styles */

.elementor-checklist-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* Section Tabs */
.checklist-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.checklist-tab {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.checklist-tab:hover {
    background: #e0e0e0;
}

.checklist-tab.active {
    background: #000;
    color: #fff;
    font-weight: 600;
}

/* Search Box */
.checklist-search {
    margin-bottom: 15px;
}

.checklist-search input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.checklist-search input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.checklist-table {
    width: 100% !important;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checklist-table thead th {
    background: #000;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
    user-select: none;
}

.checklist-table thead th:hover {
    background: #333;
}

.checklist-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.checklist-table tbody tr:hover {
    background: #f5f5f5;
}

.checklist-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.checklist-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 10px 0;
}

.dataTables_wrapper .dataTables_length select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sorting Icons */
.checklist-table thead th.sorting:after,
.checklist-table thead th.sorting_asc:after,
.checklist-table thead th.sorting_desc:after {
    opacity: 0.5;
    margin-left: 8px;
}

.checklist-table thead th.sorting_asc:after {
    content: "↑";
    opacity: 1;
}

.checklist-table thead th.sorting_desc:after {
    content: "↓";
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .checklist-tabs {
        flex-direction: column;
    }
    
    .checklist-tab {
        width: 100%;
        text-align: center;
    }
    
    .checklist-table {
        font-size: 12px;
    }
    
    .checklist-table thead th,
    .checklist-table tbody td {
        padding: 8px 10px;
    }
}

/* Loading State */
.checklist-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.checklist-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Empty State */
.checklist-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}
