.update-detail-page {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

.page-topbar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.page-topbar .back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-topbar .back-link:hover {
    color: #0d6efd;
}

.page-topbar .current-page {
    color: #0f172a;
    font-weight: 600;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-card-header {
    padding: 0.45rem 1rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.section-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.section-card-body {
    padding: 0.95rem 1.25rem 1.25rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.detail-card {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 1.4rem;
}

.detail-head {
    margin-bottom: 1rem;
}

.detail-title {
    margin: 0 0 0.9rem 0;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: #f8fafc;
    border: 1px solid #dbe7f3;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    overflow: hidden;
}

.content-card-header {
    padding: 0.85rem 1rem;
    background: #f8fbff;
    border-bottom: 1px solid #e8eef5;
    color: #0d6efd;
    font-weight: 700;
}

.content-card-body {
    padding: 1.1rem 1rem;
}

.rich-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.85;
}

.rich-content p {
    margin-bottom: 1rem;
}

.detail-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.btn-soft-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dbe7f3;
    background: #f8fafc;
    color: #475569;
}

.btn-soft-back:hover {
    background: #eef2f7;
    color: #0f172a;
}

.detail-sidebar {
    position: relative;
}

.sidebar-card {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 1.1rem;
    position: sticky;
    top: 1rem;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-item {
    display: block;
    text-decoration: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item-title {
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.sidebar-item:hover .sidebar-item-title {
    color: #0d6efd;
}

.sidebar-item-date {
    color: #64748b;
    font-size: 0.9rem;
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    background: #f8fafc;
    color: #475569;
}

.empty-state-icon {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .section-card-body {
        padding: 0.85rem 1rem 1rem;
    }

    .detail-card {
        padding: 1rem;
    }

    .detail-title {
        font-size: 1.35rem;
    }

    .sidebar-title {
        font-size: 1.15rem;
    }

    .btn-soft-back {
        width: 100%;
    }
}