/* ===================== AIDA212 v2 - HELP WITH CLIENT STYLES ===================== */

.help-header-page {
    margin-bottom: 24px;
}

.help-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== FORM SECTION ===== */
.help-form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.help-form-title i {
    color: var(--accent-primary);
    font-size: 20px;
}

.help-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.help-nda-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.help-nda-notice .nda-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    font-size: 16px;
    flex-shrink: 0;
}

.help-nda-notice .nda-text strong {
    display: block;
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.help-nda-notice .nda-text p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.help-form-group {
    margin-bottom: 16px;
}

.help-form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.help-form-group label .required {
    color: var(--error);
}

.help-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.help-form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.help-form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.char-counter {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.error {
    color: var(--error);
}

.help-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(67, 97, 238, 0.06);
    border: 1px solid rgba(67, 97, 238, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.help-form-hint i {
    color: #818cf8;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.help-form-hint span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

/* ===== ANALYZE BUTTON ===== */
.help-btn-analyze {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    position: relative;
}

.help-btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

.help-btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.help-btn-analyze .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.help-btn-analyze.loading .btn-text {
    display: none;
}

.help-btn-analyze.loading .spinner {
    display: block;
}

/* ===== HISTORY ===== */
.help-history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.help-history-toggle {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.help-history-toggle:hover {
    background: var(--bg-secondary);
}

.help-history-toggle i {
    color: var(--accent-primary);
    font-size: 16px;
}

.toggle-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.help-history-list {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

.help-history-list.visible {
    display: block;
}

.help-history-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.help-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.help-history-item:last-child {
    border-bottom: none;
}

.help-history-item:hover {
    background: var(--bg-secondary);
}

.help-history-item .history-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 14px;
    flex-shrink: 0;
}

.help-history-item .history-info {
    flex: 1;
    min-width: 0;
}

.help-history-item .history-objection {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-history-item .history-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.help-history-item .history-delete {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.help-history-item .history-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* ===== RESULT SECTION ===== */
.help-result-section {
    position: sticky;
    top: 32px;
}

.help-result-empty {
    text-align: center;
    padding: 60px 32px;
}

.help-result-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-primary);
}

.help-result-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.help-result-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== RESULT CARD ===== */
.help-result-card {
    animation: fadeIn 0.3s ease;
}

.help-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.help-result-client {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.help-result-client-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.help-result-client-info {
    flex: 1;
    min-width: 0;
}

.help-result-client-info .client-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.help-result-client-info .client-objection {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== SCRIPT SECTIONS ===== */
.help-script-section {
    margin-bottom: 20px;
}

.help-script-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-script-label i {
    font-size: 16px;
}

.label-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.help-script-block {
    position: relative;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.help-script-block:hover {
    border-color: rgba(67, 97, 238, 0.3);
}

.script-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    padding-right: 32px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0;
}

.help-script-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* ===== TIPS ===== */
.help-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
}

.help-tip.warning {
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.15);
}

.help-tip i {
    font-size: 14px;
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

.help-tip.warning i {
    color: var(--warning);
}

.help-tip span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== BTN ICON SMALL ===== */
.btn-icon-sm {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-icon-sm:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .help-layout {
        grid-template-columns: 1fr;
    }
    
    .help-result-section {
        position: static;
    }
}

@media (max-width: 480px) {
    .help-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .help-nda-notice {
        flex-direction: column;
    }
}