/* Lead View Styles */
.lead-view-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.lead-main-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.lead-sidebar {
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: fit-content;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.tab-btn.active {
    background: white;
    color: #10b981;
    border-bottom: 3px solid #10b981;
}

.tab-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Form Styles */
.lead-details-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.text-muted {
    color: #6b7280;
    font-size: 12px;
}

/* Customer Background Section */
.customer-background {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.customer-background h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 25px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

.btn-submit,
.btn-edit {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-submit {
    background: #3b82f6;
    color: white;
}

.btn-submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-edit {
    background: #10b981;
    color: white;
}

.btn-edit:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Sidebar Styles */
.qualifier-rating {
    text-align: center;
    margin-bottom: 25px;
}

.qualifier-rating h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 8px;
}

.lead-id-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 20px;
}

.select-tags label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: block;
    font-size: 14px;
}

.tags-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-item:last-child {
    margin-bottom: 0;
}

.tag-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.tag-item label {
    font-size: 13px;
    color: #374151;
    margin: 0;
    cursor: pointer;
}

.btn-add-tags,
.btn-remove-tags,
.btn-set-followup {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-add-tags {
    background: #3b82f6;
    color: white;
}

.btn-add-tags:hover {
    background: #2563eb;
}

.btn-remove-tags {
    background: #3b82f6;
    color: white;
}

.btn-remove-tags:hover {
    background: #2563eb;
}

.btn-set-followup {
    background: #3b82f6;
    color: white;
    margin-bottom: 0;
}

.btn-set-followup:hover {
    background: #2563eb;
}

/* Follow Up Section */
.follow-up-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.follow-up-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.follow-up-section .form-group {
    margin-bottom: 15px;
}

.follow-up-section input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lead-view-container {
        flex-direction: column;
    }
    
    .lead-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .lead-sidebar {
        padding: 20px;
    }
}

/* Additional Content Styles */
.discussion-content,
.chat-record-content,
.fcl-data-content,
.whatsapp-content {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}