/* KB Search Container */
.dt-kb-search-wrap {
    max-width: 800px;
    margin: 20px auto;
}

.dt-kb-input-group {
    display: flex;
    gap: 10px;
}

.dt-kb-input-group input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

/* Result Cards */
.dt-kb-result-card {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    background: #fff;
    transition: transform 0.2s;
}

.dt-kb-result-card:hover {
    border-color: #a987c2; /* LMS Purple */
    transform: translateY(-2px);
}

.dt-kb-badge {
    background: #f3e8ff;
    color: #581c87;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
}
/* Trending List Styles */
.dt-kb-trending-items { list-style: none; padding: 0; }
.dt-kb-trending-items li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.dt-kb-trending-items li:before { content: '★'; position: absolute; left: 0; color: #a987c2; } /* Brand Purple */

/* My History Grid */
.dt-kb-history-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.dt-kb-history-card { 
    background: #fff; border: 1px solid #e2e4e7; border-radius: 8px; padding: 15px; 
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Status Badges */
.dt-kb-status-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; }
.dt-kb-status-badge.pending { background: #fef3c7; color: #92400e; }
.dt-kb-status-badge.resolved { background: #d1fae5; color: #065f46; }

/* Container Padding & Alignment */
.dt-kb-search-wrap, 
.dt-kb-cta-box, 
.dt-kb-form-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e4e7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Matches Hub card depth */
}

/* Global Button Override: Matching image_4f2d69.png */
.dt-btn-primary, 
#dt-kb-show-vip-form,
#dt-kb-vip-submission-form button[type="submit"] {
    display: inline-block;
    background: #6c5286 !important; /* Deep Purple from Hub images */
    color: #fff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px !important; /* Fully rounded 'pill' style */
    border: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    min-width: 160px;
    appearance: none;
}

.dt-btn-primary:hover,
#dt-kb-show-vip-form:hover {
    background: #5a4371 !important;
    transform: translateY(-1px);
}

/* Secondary/Cancel Button Style */
.dt-btn-secondary,
#dt-kb-cancel-vip {
    background: #f1f5f9;
    color: #475569;
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
}

/* Input Fields Style */
#dt-kb-search-input,
.dt-kb-field textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    width: 100%;
}

/* --- SURGICAL ADD: Rotating Progress Disk Animation --- */

.dtl-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.dtl-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3e8ff; /* Light purple track */
    border-top: 5px solid #a987c2; /* Brand purple disk */
    border-radius: 50%;
    animation: dt-spin 1s linear infinite;
}

@keyframes dt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(3600deg); }
}

/* Ensure the text below the disk looks professional */
.dtl-loader-wrapper p {
    color: #6c5286;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
}