/* ===== Dash cards ===== */
.dashboard {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-top: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dash-card {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s;
}
.dash-card:hover { transform: translateY(-4px); }

.dash-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    box-shadow: inset 0 0 0 2px currentColor;
}

.dash-icon svg {
    width: 32px;
    height: 32px;
}

.dash-content { flex: 1; }
.dash-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.dash-count { font-size: 32px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.dash-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Laporan cards & section headers ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h2 { font-size: 28px; color: var(--text-main); }

.terbaru-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.laporan-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
}

.laporan-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background-color: var(--bg-main);
}

.laporan-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.laporan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.laporan-header h3 { font-size: 18px; color: var(--text-main); line-height: 1.3; }

.laporan-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}
.laporan-meta svg { width: 16px; height: 16px; color: var(--pink-main); }

.laporan-badges {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    gap: 8px;
}

/* ===== Badges ===== */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-green { background-color: var(--bg-green); color: var(--color-green); }
.badge-yellow { background-color: var(--bg-yellow); color: var(--color-yellow); }
.badge-red { background-color: var(--bg-red); color: var(--color-red); }
.badge-pink { background-color: var(--bg-main); color: var(--pink-main); }

/* ===== Alur proses ===== */
.alur-proses { text-align: center; }
.alur-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.alur-card {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 24px;
    position: relative;
    border: 1px solid var(--border-soft);
}

.alur-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--pink-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 4px solid var(--bg-soft);
}

.alur-icon { margin-bottom: 20px; }
.alur-content h3 { font-size: 20px; color: var(--text-main); margin-bottom: 12px; }
.alur-content p { font-size: 14px; color: var(--text-secondary); }

.alur-arrow { color: var(--pink-soft); }

/* ===== Page header (shared) ===== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.header-text { max-width: 600px; }
.page-title { font-size: 40px; color: var(--text-main); margin-bottom: 16px; line-height: 1.2;}
.page-subtitle { font-size: 16px; color: var(--text-secondary); }
.header-img img { height: 160px; }

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.3s ease-out;
}
.modal-lg { max-width: 800px; }
@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: var(--pink-main); }

/* ===== Reactions ===== */
.btn-reaction {
    background: white;
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-reaction:hover, .btn-reaction.active {
    border-color: var(--pink-main);
    color: var(--pink-main);
    background: var(--bg-soft);
}
.btn-reaction:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-reaction .count {
    background: var(--border-soft);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-main);
}
.btn-reaction.active .count {
    background: var(--pink-soft);
    color: var(--pink-dark);
}

/* ===== Comments ===== */
.comment-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 16px;
    border-radius: 8px;
}
.comment-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.comment-item-body {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}
.comment-item-photo {
    margin-top: 12px;
    max-width: 150px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    cursor: pointer;
}
