/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.container h4 {
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 25px;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
}

/* Table styling */
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Ensures table is readable on large screens */
}

.table thead {
    background: linear-gradient(135deg, #0066ff, #00b0ff);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
}

.table tbody tr:hover {
    background-color: #f4faff;
    transition: 0.25s ease-in-out;
}

.no-data {
    background: #f1f1f1;
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    color: #555;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .table thead {
        display: none; /* Hide table headers */
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }

    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
    }

    .table td:last-child {
        border-bottom: 0;
    }
}
/* Feedback empty text */
.no-data {
    background: #f1f1f1;
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    color: #555;
}

/* Loader */
#loader {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75) url('../../../content/dam/common/loading.gif') no-repeat center;
    background-size: 60px;
    z-index: 10000;
}

/* Form Error Styling */
.has-error .form-control {
    border-color: #ff4d4d;
    box-shadow: 0 0 5px rgba(255,77,77,0.4);
}

.help-block {
    font-size: 13px;
    margin-top: 5px;
    color: #ff4d4d;
}

#feedsubmit-btn {
    margin: 20px 0;
    padding: 10px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0066ff, #00b0ff);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

#feedsubmit-btn:hover {
    background: linear-gradient(135deg, #0057d8, #0094d9);
    transform: translateY(-2px);
}

.pagination{display:flex;justify-content:center;gap:10px;margin-top:20px;}

.pagination-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.aem-pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.aem-pagination li a {
    display: block;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}

.aem-pagination li a:hover {
    background: #e9ecef;
}

.aem-pagination .active a {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.aem-pagination .disabled a {
    pointer-events: none;
    color: #adb5bd;
    background: #f8f9fa;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.count-badge {
    background: #e7f1ff;
    color: #0d6efd;
    padding: 10px 19px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.filter-box {
    display: flex;
    gap: 10px;
}

.filter-box select {
    min-width: 260px;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
}

.form-title h1 {
    font-size: 32px;
    font-weight: 600;
    color: #184580;
    margin-bottom: 0;
}

/* Divider line */
.form-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #f5b301;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Filter Card */
.filter-card {
    background: #ffffff;
    padding: 10px;
    padding-top: 0px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;

    /*position: sticky;*/
    top: 0px;              /* header ke niche gap */
    z-index: 999;
}

/* Grid layout */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    column-gap: 1.5%;
}

/* Each field */
.filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
}


.filter-item input,
.filter-item select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

/* Buttons */
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.btn-apply {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-apply:hover {
    opacity: 0.9;
}

.btn-clear {
    background: #f1f1f1;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-clear:hover {
    background: #e0e0e0;
}

/* Mobile */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.error-msg {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.has-error .form-control {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
}
.help-block {
    clear: both;    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #737373;
}
#errorBlock {
    display: none;
}
.has-error .help-block{
    color: #a94442;
}
#feedsubmit-btn{
    margin:20px 0;
}

th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    font-size: 11px;
}

.aem-pagination li.active a {
    font-weight: bold;
}
.aem-pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    justify-content: center;
}

.aem-pagination li a {
    padding: 6px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.aem-pagination li.active a {
    background: #0052cc;
    color: #fff;
}

.aem-pagination li.disabled a {
    color: #999;
    pointer-events: none;
}

.aem-pagination li.ellipsis {
    padding: 6px 10px;
    color: #666;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.left-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.left-tools label {
    font-weight: 600;
}

#countFilter {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 100px;
}

.right-tools input {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 220px;
}

@media (max-width: 600px) {
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .right-tools input,
    #countFilter {
        width: 100%;
    }
}

.right-tools {
    position: relative;
}

.right-tools::before {
    content: "🔍";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.right-tools input {
    padding-left: 28px;
}

.btn-loader::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: -webkit-inline-box;
    margin-right: 6px;
    animation: spin 0.8s linear infinite;
}

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