/* Content Area */
.content-wrapper {
    padding: 2.25rem;
}

.page-header {
    margin-bottom: 2.25rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -1px;
}

.page-subtitle {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 400;
}

.admin-header {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0 1rem 2rem 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.admin-header p {
    color: var(--text);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.container {
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.breadcrumb-container {
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 0.5rem;
    color: var(--text);
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.page-title-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-title-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-title-section p {
    color: var(--text);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

/* Design 62: Circle Progress Card (Design G) - White Theme */
.stat-card-design-g {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stat-card-design-g:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.design-g-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
    position: relative;
}

/* Border color variants */
.design-g-ring.primary {
    border-top-color: #3b82f6;
    border-right-color: #3b82f6;
}

.design-g-ring.success {
    border-top-color: #10b981;
    border-right-color: #10b981;
}

.design-g-ring.warning {
    border-top-color: #f59e0b;
    border-right-color: #f59e0b;
}

.design-g-ring.danger {
    border-top-color: #ef4444;
    border-right-color: #ef4444;
}

.design-g-content h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.design-g-content .design-g-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.25rem;
    border: 2px solid var(--border);
}

/* Custom Dropdown Styles */
.filter-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.filter-box:has(.custom-dropdown.active) {
    z-index: 10001;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
}

.custom-dropdown.active {
    z-index: 10001 !important;
    position: relative;
}

.custom-dropdown.active .custom-dropdown-menu {
    z-index: 10001 !important;
}

.custom-dropdown-btn {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.custom-dropdown-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.custom-dropdown-btn:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    background: white;
}

.custom-dropdown-btn:disabled {
    background: var(--light);
    color: var(--text);
    cursor: not-allowed;
    opacity: 0.7;
}

.custom-dropdown-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--text);
}

.custom-dropdown.active .custom-dropdown-btn i {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white !important;
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
    z-index: 10001 !important;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

.custom-dropdown.active .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    background: white !important;
}

.custom-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-weight: 500;
    background: white !important;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    background: var(--light) !important;
    color: var(--primary);
}

.custom-dropdown-item.selected {
    color: var(--primary);
    font-weight: 600;
    background: rgba(220, 38, 38, 0.08) !important;
}

/* Custom Search Input Style */
.custom-search-input {
    position: relative;
    width: 100%;
}

.custom-search-input input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-weight: 500;
}

.custom-search-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    background: white;
}

.custom-search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 0.9rem;
    pointer-events: none;
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.reports-table-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--border);
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table thead {
    background: var(--light);
}

.reports-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reports-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.reports-table tbody tr:hover {
    background: var(--light);
}

.report-item {
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.status-badge.reviewed {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
}

.status-badge.resolved {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-badge.dismissed {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text);
}

.reason-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--light);
    color: var(--text-dark);
}

.review-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-dismiss {
    background: var(--light);
    color: var(--text-dark);
}

.btn-resolve {
    background: var(--success);
    color: white;
}

.btn-remove {
    background: var(--danger);
    color: white;
}

.btn-view {
    background: var(--primary);
    color: white;
}

/* Modal Styles */
.modal-review-content {
    padding: 1.5rem;
}

.review-detail-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.review-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-rating {
    color: var(--warning);
    font-size: 1.2rem;
}

.report-detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger);
    margin-bottom: 1.5rem;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Confirmation Modal Styles */
#confirmModal .modal-header {
    border-bottom: 2px solid var(--warning);
}

#confirmModal .modal-header.warning {
    background: rgba(255, 193, 7, 0.1);
    border-bottom-color: var(--warning);
}

#confirmModal .modal-header.danger {
    background: rgba(220, 53, 69, 0.1);
    border-bottom-color: var(--danger);
}

#confirmModal .modal-header.info {
    background: rgba(220, 38, 38, 0.1);
    border-bottom-color: var(--info);
}

#confirmModal .modal-title i {
    margin-right: 0.5rem;
}

#confirmModal .modal-body {
    font-size: 1.1rem;
    padding: 2rem;
}

#confirmModal #confirmModalButton.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

#confirmModal #confirmModalButton.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

#confirmModal #confirmModalButton.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #212529;
}

#confirmModal #confirmModalButton.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

#confirmModal #confirmModalButton.btn-info {
    background: var(--info);
    border-color: var(--info);
    color: white;
}

#confirmModal #confirmModalButton.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

/* Alert Modal Styles */
#alertModal .modal-header.success {
    background: rgba(40, 167, 69, 0.1);
    border-bottom: 2px solid var(--success);
}

#alertModal .modal-header.danger {
    background: rgba(220, 53, 69, 0.1);
    border-bottom: 2px solid var(--danger);
}

#alertModal .modal-header.info {
    background: rgba(220, 38, 38, 0.1);
    border-bottom: 2px solid var(--info);
}

#alertModal .modal-header.warning {
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 2px solid var(--warning);
}

#alertModal .modal-title i {
    margin-right: 0.5rem;
}

#alertModal .modal-body {
    font-size: 1.1rem;
    padding: 2rem;
}

/* Sidebar Toggle States */
.sidebar.hidden {
    transform: translateX(-100%);
    left: -100%;
}

.main-content.sidebar-hidden {
    margin-left: 0;
}

/* Desktop toggle support */
@media (min-width: 1025px) {
    .sidebar.hidden {
        transform: translateX(-100%);
        left: -100%;
    }

    .main-content.sidebar-hidden {
        margin-left: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .reports-table-container {
        overflow-x: auto;
    }

    .reports-table {
        min-width: 800px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Design 2: Modern Floating Rows --- */
.d2-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.d2-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.d2-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.d2-card.pending {
    border-left-color: var(--warning);
}

.d2-card.resolved {
    border-left-color: var(--success);
}

.d2-card.dismissed {
    border-left-color: var(--secondary);
}

.d2-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.d2-icon.pending {
    background: #fffbeb;
    color: #d97706;
}

.d2-icon.resolved {
    background: #ecfdf5;
    color: #059669;
}

.d2-icon.dismissed {
    background: #f1f5f9;
    color: #64748b;
}

.d2-content {
    flex: 1;
}

.d2-business {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.d2-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.25rem;
}

.d2-meta i {
    margin-right: 0.25rem;
}




.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Confirmation Modal (Design 1) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* Flex when active */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-d1 {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-d1 {
    transform: scale(1);
}

.modal-d1 h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-d1 p {
    color: var(--text);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-d1-actions {
    display: flex;
    gap: 12px;
}

.btn-d1-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-d1-cancel:hover {
    background: var(--light);
    border-color: var(--border);
    color: var(--text-dark);
}

.btn-d1-confirm {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-d1-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}