/* Container */
.dlf-qa-container {
    max-width: 100%;
    margin-top: -15px;
    font-family: 'Roboto', sans-serif;
    background: #f5f7fb;
    padding: 18px 16px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    position: relative;
    border-left: 3px solid #e5e5e5;
}

/* Heading / intro */
.dlf-qa-heading-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.dlf-qa-heading-title {
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #002255;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dlf-qa-heading-title span.dlf-qa-pill {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6ecf8;
    color: #335c99;
}
.dlf-qa-heading-info-toggle {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
}
.dlf-qa-heading-info {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    max-width: 520px;
    font-weight: 400;
    line-height: 1.3rem;
}

/* Success message */
#dlf-qa-message {
    display: none;
    margin-bottom: 10px;
    padding: 9px 11px;
    background: #e6f9ec;
    border: 1px solid #2e7d32;
    color: #1b5e20;
    border-radius: 8px;
    font-size: 14px;
}
#dlf-qa-message i { margin-right: 6px; }

/* Sticky composer at top */
.dlf-qa-composer-wrap {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-bottom: 10px;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #f5f7fb 80%, rgba(245,247,251,0));
}
.dlf-qa-composer-card {
    background: #ffffff;
    border: 1px solid #dde4f2;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}
.dlf-qa-login-note {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    gap: 6px;
}
.dlf-qa-login-note a {
    color: #003377;
    font-weight: 500;
    text-decoration: underline;
}

/* Thread */
.dlf-qa-thread { display: flex; flex-direction: column; gap: 14px; }
.dlf-qa-card { position: relative; }

/* Bubble layout */
.dlf-qa-row { display: flex; align-items: flex-start; gap: 10px; }
.dlf-qa-row-answer { margin-left: 38px; margin-top: 10px;} /* slight indent */

.dlf-qa-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.dlf-qa-avatar-user { background: #8db1c5; }
.dlf-qa-avatar-owner { background: #002255; }

.dlf-qa-bubble {
    padding: 10px 12px;
    border-radius: 16px;
    max-width: 100%;
    font-size: 15px;
}
.dlf-qa-bubble-question {
    background: #ffffff;
    border: 1px solid #dde4f2;
    border-radius: 16px 16px 16px 4px;
}
.dlf-qa-bubble-answer {
    background: #f1f6ff;
    border-bottom: 3px solid #002255;
    border-radius: 16px;
}

/* Pending highlight (U3 style) */
.dlf-qa-bubble-pending {
    border-left: 4px solid #335C99;
    background: #f8fbff;
}
.dlf-qa-pending-flag {
    background:#d46a6a;
    box-shadow:0 0 0 1px rgba(0,0,0,0.05);
    color:#fff;
    font-size:10px;
    font-weight:600;
    padding:1px 4px;
    border-radius:10px;
    text-transform:uppercase;
}

/* Question text */
.dlf-qa-question-text { margin-bottom: 4px; font-weight: 500; color:#111827; }

/* Meta */
.dlf-qa-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dlf-qa-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}
.dlf-qa-meta-actions button,
.dlf-edit-link-inline {
    background:none; border:none; padding:0;
    font-size:12px; cursor:pointer;
}
.dlf-edit-link-inline { color:#003377; }

/* Answer label */
.dlf-qa-answer-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color:#335c99;
    margin-bottom: 4px;
}

/* Skeleton */
#dlf-qa-skeleton {
    display: none;
    opacity: 1;
    animation: dlfSkeletonPulse 1.2s ease-in-out infinite;
}
@keyframes dlfSkeletonPulse {
    0% { opacity: .35; }
    50% { opacity: .65; }
    100% { opacity: .35; }
}

/* Pagination */
#dlf-qa-pagination { text-align:center; margin-top:15px; }
.dlf-qa-page-link {
    margin:0 4px; padding:4px 8px;
    border-radius:999px;
    font-size:14px; color:#003377;
}
.dlf-qa-page-current { background:#003377; color:#fff; }

.dlf-qa-btn {
    background:#002255;
    color:#fff;
    font-weight:600;
    padding:8px 14px;
    border-radius:8px;
    border:none;
    font-size:14px;
    cursor:pointer;
    transition:background .25s, transform .15s;
}
.dlf-qa-btn:hover {
    background:#003a88;
    transform: translateY(-1px);
}
.dlf-qa-btn:disabled {
    opacity:0.6;
    cursor:not-allowed;
}
.dlf-qa-question-form textarea {
    width:100%;
    box-sizing:border-box;
}
/* Stylish, larger answer/edit textareas */
.dlf-edit-form textarea,
.dlf-answer-form textarea {
    width: 100%;
    min-height: 90px;               /* slightly bigger */
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    border-radius: 12px;            /* modern rounded bubble */
    background: #ffffff;
    resize: vertical;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}

.dlf-edit-form textarea:focus,
.dlf-answer-form textarea:focus {
    border-color: #002255;
    box-shadow: 0 0 0 2px rgba(0,34,85,0.15);
    outline: none;
}

/* Keep textarea bottom aligned with button */
.dlf-edit-form,
.dlf-answer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

/* Responsive */
@media (max-width:768px){
    .dlf-qa-row-answer{ margin-left:22px;}
	span.dlf-qa-pill{display:none;}
}
