/* Container & Section */
.ulasan-section {
    padding: 60px 0 100px;
    background-color: #fcfdfe;
}

/* Grid Layout */
.ulasan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -40px; /* Mengangkat sedikit agar menyatu dengan hero */
}

/* Card Styling */
.ulasan-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.ulasan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.08);
}

/* Header: Avatar & Info */
.ulasan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.user-info h4 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.15rem;
    font-weight: 700;
}

.service-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #2a5298;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 50px;
    margin-top: 5px;
    font-weight: 600;
}

/* Rating Stars */
.rating {
    color: #ffc107; /* Warna Gold */
    font-size: 0.9rem;
}

/* Body: Text */
.ulasan-body {
    flex-grow: 1;
}

.ulasan-body p {
    color: #4a5568;
    line-height: 1.7;
    font-style: italic;
    font-size: 1rem;
    position: relative;
}

/* Quote Icon Decoration */
.ulasan-body p::before {
    content: '"';
    font-family: serif;
    font-size: 3rem;
    color: #e2e8f0;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

/* Footer: Date */
.ulasan-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #edf2f7;
    font-size: 0.85rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .ulasan-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}

/* ============================================
   ULASAN PENGUNJUNG - CUSTOM STYLES
   ============================================ */

/* Container Utama */
.ulasan-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Section */
.ulasan-header {
    margin-bottom: 30px;
}

.ulasan-header h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ulasan-header h1 i {
    color: #1e293b;
}

.ulasan-header p {
    font-size: 0.95rem;
    margin: 0;
    color: #6b7280;
}

/* Alert Notifications */
.alert-ulasan {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert-ulasan i {
    font-size: 1.4rem;
}

.alert-success {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Container */
.ulasan-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
}

/* Table Styles */
.ulasan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ulasan-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
}

.ulasan-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ulasan-table thead th:first-child {
    border-top-left-radius: 12px;
}

.ulasan-table thead th:last-child {
    border-top-right-radius: 12px;
}

.ulasan-table thead th i {
    margin-right: 6px;
    opacity: 0.9;
}

.ulasan-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.ulasan-table tbody tr:hover {
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ulasan-table tbody td {
    padding: 20px;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

/* Kode Booking */
.kode-booking {
    display: inline-block;
    background: #c59445;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

/* Layanan Name */
.layanan-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.9rem;
}

/* Date Display */
.date-display {
    color: #c59445;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-display i {
    font-size: 0.85rem;
}

/* Jumlah Unit */
.unit-count {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Total Harga */
.total-price {
    font-weight: 600;
    color: #10b981;
    font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge i {
    font-size: 0.75rem;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-menunggu {
    background: #dbeafe;
    color: #2563eb;
}

.badge-terverifikasi {
    background: #d1fae5;
    color: #059669;
}

.badge-ditolak {
    background: #fee2e2;
    color: #dc2626;
}

.badge-selesai {
    background: #e0e7ff;
    color: #6366f1;
}

/* Ulasan Section */
.ulasan-content {
    max-width: 250px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-right: 4px;
}

.star-icon {
    font-size: 0.9rem;
}

.star-icon.filled {
    color: #fbbf24;
}

.star-icon.empty {
    color: #d1d5db;
}

.komentar-text {
    color: #6b7280;
    font-style: italic;
    line-height: 1.5;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Admin Note */
.admin-note-row {
    background: #f8fafc !important;
}

.admin-note {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #c59445;
    margin: 10px;
}

.admin-note strong {
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-note p {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 1rem;
}

/* Pagination */
.pagination-wrapper {
    padding: 25px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ulasan-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .ulasan-container {
        padding: 15px;
    }

    .ulasan-header h1 {
        font-size: 1.4rem;
    }

    .ulasan-header p {
        font-size: 0.85rem;
    }

    .ulasan-card {
        padding: 15px;
    }

    .ulasan-table thead th,
    .ulasan-table tbody td {
        padding: 14px 12px;
        font-size: 0.8rem;
    }

    .kode-booking {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .ulasan-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ulasan-header h1 {
        font-size: 1.2rem;
    }

    .ulasan-table {
        font-size: 0.75rem;
    }

    .table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom Scrollbar */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0f172a;
}