/* =============================== 
   📊 NXAdmin DynamicList - Final Premium Styles 
   =============================== */

   .dynamic-list-container {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 20px;
    overflow-x: auto;
}

/* 🚀 Controls Row */
.dynamic-list-controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    overflow-x: auto;     /* In case of too many filters */
    padding-bottom: 5px;
}

.dynamic-list-controls input.list-search,
.dynamic-list-controls select {
    flex: 0 0 auto;      /* Prevents stretching */
    width: auto;
    min-width: 160px;    /* Adjust based on design */
    max-width: 220px;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid #4facfe;
    background: rgba(255, 255, 255, 0.1);
    color: #1c1e4a;
    transition: all 0.3s ease;
    font-size: 14px;
    appearance: none;
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.dynamic-list-controls select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    padding-right: 40px;
}

.dynamic-list-controls input.list-search::placeholder {
    color: #ccc;
}

.dynamic-list-controls input:focus,
.dynamic-list-controls select:focus {
    border-color: #00f2fe;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* 📋 Table */
.dynamic-list-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 14px;
}

.dynamic-list-table th, 
.dynamic-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.dynamic-list-table th {
    background: rgba(255, 255, 255, 0.08);
}

.dynamic-list-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.dynamic-list-table th .sort-icon {
    margin-left: 6px;
    font-size: 12px;
    color: #4facfe;
}

/* Hover Effect */
.dynamic-list-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 📄 Pagination */
.dynamic-list-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dynamic-list-pagination button {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dynamic-list-pagination button:hover:not([disabled]) {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
}

.dynamic-list-pagination button:disabled {
    background: #444;
    color: #bbb;
    box-shadow: none;
    cursor: not-allowed;
}

.dynamic-list-pagination .page-info {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

/* 🏷️ Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge.success { background: #28a745; color: #fff; }
.badge.danger  { background: #dc3545; color: #fff; }



/* 📋 Column Search Inputs */
.dynamic-list-table thead input.column-search {
    width: 100%;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #4facfe;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.dynamic-list-table thead input.column-search::placeholder {
    color: #bbb;
}

.dynamic-list-table thead input.column-search:focus {
    border-color: #00f2fe;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}


.table-loading {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #4facfe;
    background: rgba(255, 255, 255, 0.03);
}



/* 📱 Responsive */
@media (max-width: 600px) {
    .dynamic-list-controls {
        flex-wrap: wrap;     /* Allow wrapping on mobile */
    }

    .dynamic-list-controls input,
    .dynamic-list-controls select {
        width: 100%;
    }
}
