.reviews-page {
    color: #1f2937;
}

.reviews-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.reviews-breadcrumb strong {
    color: #1f2937;
    font-weight: 600;
}

.reviews-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid;
}

.reviews-alert.is-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.reviews-alert.is-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.reviews-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.reviews-alert.is-success .reviews-alert-icon {
    color: #16a34a;
}

.reviews-alert.is-error .reviews-alert-icon {
    color: #dc2626;
}

.reviews-alert-content {
    flex: 1;
}

.reviews-alert-content strong {
    display: block;
    margin-bottom: 2px;
}

.reviews-alert.is-success strong {
    color: #166534;
}

.reviews-alert.is-error strong {
    color: #991b1b;
}

.reviews-alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

.reviews-alert.is-success p {
    color: #15803d;
}

.reviews-alert.is-error p {
    color: #b91c1c;
}

.reviews-alert-close {
    background: none;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
}

.reviews-alert-close:hover {
    color: #1f2937;
}

/* Header Card */
.reviews-header-card,
.reviews-toolbar-card,
.reviews-table-card,
.reviews-empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.reviews-header-card {
    padding: 18px 20px;
    margin-bottom: 14px;
}

.reviews-header-card h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #1f2937;
    font-size: 1.5rem;
}

.reviews-header-card p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Stats Grid */
.reviews-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.reviews-stat-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.reviews-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef4ff;
    color: #6c8cf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.reviews-stat-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
}

.reviews-stat-card h3 {
    margin: 4px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.02rem;
    color: #1f2937;
}

/* Toolbar */
.reviews-toolbar-card {
    padding: 14px;
    margin-bottom: 14px;
    background: #eef4ff;
}

.reviews-toolbar-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.reviews-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 12px;
}

.reviews-input-group i {
    color: #6b7280;
    font-size: 0.95rem;
}

.reviews-input-group input,
.reviews-input-group select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Poppins", sans-serif;
    color: #1f2937;
    font-size: 0.9rem;
}

.reviews-input-group select {
    cursor: pointer;
}

.reviews-filter-btn,
.reviews-reset-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.reviews-filter-btn {
    background: #6c8cf5;
    color: #ffffff;
    cursor: pointer;
}
 .reviews-action-btn.is-customer:hover {
     background: #eef4ff;
     border-color: #a8c5ff;
     color: #6c8cf5;
 }
 .reviews-action-btn.is-booking:hover {
     background: #f0fdf4;
     border-color: #a7f3d0;
     color: #16a34a;
 }

.reviews-filter-btn:hover {
    background: #5a79e6;
}

.reviews-reset-btn {
    background: #ffffff;
    color: #1f2937;
    border-color: #d1d5db;
}

.reviews-reset-btn:hover {
    background: #f9fafb;
}

/* Table */
.reviews-table-wrapper {
    overflow-x: auto;
}

.reviews-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
}

.reviews-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.reviews-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 12px;
    vertical-align: middle;
    font-size: 0.91rem;
    color: #1f2937;
}

.reviews-table tr:hover td {
    background: #f9fbff;
}

.reviews-date {
    font-size: 0.88rem;
    color: #6b7280;
}

.reviews-customer {
    font-weight: 600;
}

.reviews-vehicle {
    font-weight: 500;
}

.reviews-booking-code {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.01em;
    font-size: 0.88rem;
}

/* Rating Display */
.reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-rating-stars {
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
}

.reviews-rating-text {
    font-weight: 600;
    min-width: 42px;
}

.reviews-rating.is-excellent .reviews-rating-text {
    color: #16a34a;
}

.reviews-rating.is-good .reviews-rating-text {
    color: #2563eb;
}

.reviews-rating.is-average .reviews-rating-text {
    color: #f59e0b;
}

.reviews-rating.is-poor .reviews-rating-text {
    color: #f97316;
}

.reviews-rating.is-terrible .reviews-rating-text {
    color: #dc2626;
}

/* Comment/Review Text */
.reviews-comment {
    max-width: 400px;
}

.reviews-comment-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.4;
    color: #4b5563;
}

/* Actions */
.reviews-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reviews-action-btn {
    border: 1px solid #dbe1eb;
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.reviews-action-btn.is-detail:hover {
    background: #eef4ff;
    border-color: #a8c5ff;
    color: #6c8cf5;
}

/* Pagination */
.reviews-pagination-wrapper {
    margin-top: 18px;
}

/* Empty State */
.reviews-empty-state {
    padding: 40px 20px;
    text-align: center;
}

.reviews-empty-icon {
    font-size: 3.5rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.reviews-empty-state h3 {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.reviews-empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .reviews-toolbar-form {
        grid-template-columns: 1fr 1fr;
    }

    .reviews-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .reviews-toolbar-form {
        grid-template-columns: 1fr;
    }

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

    .reviews-table {
        min-width: 100%;
    }
}
