/* Campaign Card Component */
.campaign-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.campaign-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card Header */
.campaign-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.campaign-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.campaign-status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-status-badge.active {
    background: #10b981;
    color: white;
}

.campaign-status-badge.paused {
    background: #6b7280;
    color: white;
}

/* Stats Grid */
.campaign-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.campaign-stat {
    text-align: center;
}

.campaign-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.campaign-stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Section */
.campaign-progress {
    margin-bottom: 20px;
}

.campaign-progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 16px;
}

.progress-stage {
    margin-bottom: 12px;
}

.progress-stage:last-child {
    margin-bottom: 0;
}

.progress-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.progress-stage-label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.progress-stage-percentage {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Card Footer */
.campaign-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.campaign-last-updated {
    font-size: 12px;
    color: #9ca3af;
}

.campaign-view-details {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.campaign-view-details:hover {
    color: #2563eb;
}

/* Additional Campaign Card Styles */
.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.campaign-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.campaign-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-status.status-active {
    background: #10b981;
    color: white;
}

.campaign-status.status-paused {
    background: #6b7280;
    color: white;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-item {
    margin-bottom: 12px;
}

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.progress-header span:first-child {
    color: #4b5563;
    font-weight: 500;
}

.progress-header span:last-child {
    color: #6b7280;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.last-updated {
    font-size: 12px;
    color: #9ca3af;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #DC2626;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-danger:disabled {
    background-color: #fca5a5;
    cursor: not-allowed;
}

/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    font-size: 14px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.invite-modal-container {
    max-width: 420px;
}

.invite-modal-header {
    padding: 24px 24px 16px;
    align-items: center;
}

.invite-modal-description {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.invite-friend-message {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.invite-friend-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.invite-friend-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.invite-friend-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* New Campaign Wizard Page Container */
.new-campaign-wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-campaign-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 36px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-tab {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    bottom: -1px;
}

.modal-tab:hover {
    color: #3b82f6;
}

.modal-tab.active {
    color: #3b82f6;
    font-weight: 600;
    border-bottom-color: #3b82f6;
}

/* Modal Body */
.modal-body {
    padding: 32px;
}

.modal-tab-content {
    display: none;
}

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

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Modal Stats Grid */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.modal-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.modal-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.modal-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}

.modal-stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-stat-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Today's Activity Grid */
.today-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.activity-item {
    text-align: center;
}

.activity-value {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.activity-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Modal Progress List */
.modal-progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-progress-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.modal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-progress-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.modal-progress-percentage {
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
}

.modal-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Modal Table */
.modal-table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table thead {
    background: #f9fafb;
}

.modal-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-table td {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.modal-table tbody tr:hover {
    background: #f9fafb;
}

.table-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

/* Tab Placeholder */
.tab-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* Prospects Toolbar */
.prospects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.prospects-filters {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #3b82f6;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    flex: 1;
    min-width: 200px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.prospects-actions {
    display: flex;
    gap: 12px;
}

.btn-bulk-action {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-bulk-action:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-bulk-action.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-bulk-action.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Prospects Table */
.prospects-table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.prospects-table {
    width: 100%;
    border-collapse: collapse;
}

.prospects-table thead {
    background: #f9fafb;
}

.prospects-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.prospects-table td {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.prospects-table tbody tr {
    transition: all 0.2s ease;
}

.prospects-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.prospects-table tbody tr:hover {
    background: #eff6ff;
}

.prospects-table tbody tr.row-approved {
    opacity: 0.6;
    background: #f0fdf4;
}

.prospects-table tbody tr.row-rejected {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Column Widths */
.col-checkbox {
    width: 40px;
    text-align: center;
}

.col-score {
    width: 80px;
    text-align: center;
}

.col-name {
    width: 180px;
}

.col-title {
    width: 200px;
}

.col-company {
    width: 200px;
}

.col-data-quality {
    width: 150px;
}

.col-actions {
    width: 180px;
    text-align: right;
}

/* Score Display */
.prospect-score {
    font-weight: 700;
    display: inline-block;
}

.prospect-score.score-excellent {
    color: #10b981;
}

.prospect-score.score-good {
    color: #3b82f6;
}

.prospect-score.score-fair {
    color: #6b7280;
}

/* Data Quality Badges */
.data-quality-badges {
    display: flex;
    gap: 8px;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 16px;
    cursor: help;
    transition: transform 0.2s;
}

.quality-badge:hover {
    transform: scale(1.1);
}

.quality-badge.has-data {
    background: #d1fae5;
    opacity: 1;
}

.quality-badge.missing-data {
    background: #f3f4f6;
    opacity: 0.4;
}

.quality-badge-icon {
    font-size: 10px;
}

.quality-badge-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Action Buttons */
.prospect-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-prospect-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-prospect-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-prospect-action:disabled:hover {
    background: inherit;
}

/* Checkbox Styling */
.prospects-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.wizard-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-circle {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.wizard-step.completed .wizard-step-circle {
    background: #10b981;
    color: white;
}

.wizard-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}

.wizard-step.active .wizard-step-label {
    color: #3b82f6;
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: #10b981;
}

/* Clickable wizard steps in edit mode */
.wizard-step.clickable {
    cursor: pointer;
}

.wizard-step.clickable:hover .wizard-step-circle {
    background-color: #4f46e5;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.wizard-step.clickable:hover .wizard-step-label {
    color: #4f46e5;
}

.wizard-step-line {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.wizard-step.completed+.wizard-step-line {
    background: #10b981;
}

/* Wizard Step Content */
.wizard-step-content {
    display: none;
}

.wizard-step-content.active {
    display: block;
}

.wizard-step-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.wizard-step-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

/* Wizard Form */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group .form-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-group .slider {
    margin-left: calc(33.33% + 16px);
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-label .required {
    color: #ef4444;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    cursor: pointer;
}

/* Tags Input */
.tags-input-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
    background: white;
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.2s ease;
}

.tags-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}

.autocomplete-wrapper {
    position: relative;
}

.dropdown-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s;
}

.tag-input:focus + .dropdown-chevron {
    color: #3b82f6;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: -1px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.tag-remove {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tags-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1a1a1a;
    min-width: 200px;
    padding: 4px;
}

.tags-input::placeholder {
    color: #9ca3af;
}

.tags-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-suggestion {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-suggestion:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.tag-suggestion.added {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wizard Footer / Button Row */
.wizard-footer,
.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.wizard-nav-buttons,
.button-group-right {
    display: flex;
    gap: 12px;
}

.btn-wizard {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-back {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-back:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

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

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

.btn-next:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-next.btn-primary {
    background: #10b981;
    font-size: 16px;
    padding: 14px 32px;
}

.btn-next.btn-primary:hover {
    background: #059669;
}

/* View Header Button */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-primary {
    background: #4F46E5;
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.btn-launch {
    background: #10b981;
}

.btn-primary.btn-launch:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Scoring Weights Styles */
.scoring-weights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.weight-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weight-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.weight-value {
    font-size: 14pt;
    font-weight: 700;
    color: #3b82f6;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    text-align: right;
    line-height: 1;
}

/* Scorecard Weights Table */
.scorecard-weights-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.scorecard-weights-table tbody tr {
    height: 48px;
}

.weight-label-cell {
    width: 30%;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    vertical-align: middle;
    padding-right: 16px;
}

.weight-slider-cell {
    width: 65%;
    vertical-align: middle;
    padding-right: 12px;
}

.weight-value-cell {
    width: 5%;
    vertical-align: middle;
    text-align: right;
}

.weight-value-cell .weight-value {
    position: static;
    width: auto;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: -6px;
}

.slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.weight-range {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}

.form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.template-download-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.template-download-link:hover {
    text-decoration: underline;
}

/* Enrichment Options */
.enrichment-options,
.required-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Make Data Sources and Required Fields sections align */
.wizard-form .form-row .form-column:nth-child(1)>.form-group:nth-child(2),
.wizard-form .form-row .form-column:nth-child(2)>.form-group:nth-child(2) {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.checkbox-option {
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.checkbox-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-option.disabled:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-option.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.checkbox-content {
    flex: 1;
}

.checkbox-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.checkbox-description {
    font-size: 13px;
    color: #6b7280;
}

/* Review Section */
.review-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.review-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.review-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    flex-shrink: 0;
}

.review-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast.hiding {
    animation: fadeOut 0.3s ease forwards;
}

.toast.success {
    background: #10b981;
    color: white;
}

.toast.error {
    background: #ef4444;
    color: white;
}

.toast.warning {
    background: #f59e0b;
    color: white;
}

.toast.info {
    background: #3b82f6;
    color: white;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Loading Spinners */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Full Page Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Inline Loader (for tables, cards) */
.loader-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}

.loader-inline .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-inline .loader-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Button loading for primary buttons (white spinner) */
.btn-primary.btn-loading::after,
.btn-next.btn-loading::after,
.btn-approve.btn-loading::after {
    border-color: white;
    border-top-color: transparent;
}

/* Button loading for secondary buttons (dark spinner) */
.btn-secondary.btn-loading::after,
.btn-back.btn-loading::after,
.btn-cancel.btn-loading::after {
    border-color: #374151;
    border-top-color: transparent;
}

/* Legacy support for wizard buttons */
.btn-wizard.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-wizard.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Prospects View Styles */
.prospects-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.prospects-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.prospects-filter-bar .search-input {
    flex: 1;
    min-width: 250px;
}

/* Bulk Action Bar */
.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    margin-bottom: 24px;
}

.bulk-action-info {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
}

.bulk-action-info span {
    font-size: 18px;
    font-weight: 700;
}

.bulk-action-buttons {
    display: flex;
    gap: 12px;
}

.btn-bulk-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-bulk-action.btn-approve {
    background: #10b981;
    color: white;
}

.btn-bulk-action.btn-approve:hover {
    background: #059669;
}

.btn-bulk-action.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-bulk-action.btn-reject:hover {
    background: #dc2626;
}

.btn-bulk-action.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-bulk-action.btn-primary:hover {
    background: #2563eb;
}

/* Prospects Main Table */
.prospects-main-table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.prospects-main-table {
    width: 100%;
    border-collapse: collapse;
}

.prospects-main-table thead {
    background: #f9fafb;
}

.prospects-main-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    vertical-align: middle;
}

.prospects-main-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.prospects-main-table th.sortable:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.sort-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.prospects-main-table td {
    padding: 16px 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.prospects-main-table tbody tr {
    transition: all 0.2s ease;
}

.prospects-main-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.prospects-main-table tbody tr:hover {
    background: #eff6ff;
}

.prospects-main-table tbody tr.row-approved {
    opacity: 0.6;
    background: #f0fdf4;
}

.prospects-main-table tbody tr.row-rejected {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Column Widths for Main Table */
.prospects-main-table .col-checkbox {
    width: 40px;
    text-align: center;
}

.prospects-main-table .col-score {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.prospects-main-table td.col-score {
    text-align: center;
}

.prospects-main-table .col-company-score {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.prospects-main-table td.col-company-score {
    text-align: center;
}

.prospects-main-table .col-total-score {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.prospects-main-table td.col-total-score {
    text-align: center;
}

.prospects-main-table .col-name {
    width: 180px;
}

.prospects-main-table .col-title {
    width: 200px;
}

.prospects-main-table .col-company {
    width: 200px;
}

.prospects-main-table .col-data-quality {
    width: 180px;
}

.prospects-main-table .col-campaign {
    width: 200px;
}

/* Companies Table Column Widths */
.companies-main-table .col-checkbox {
    width: 50px;
    text-align: center;
}

.companies-main-table .col-company-name {
    width: 180px;
}

.companies-main-table .col-industry {
    width: 250px;
}

.companies-main-table .col-location {
    width: 140px;
}

.companies-main-table .col-company-size {
    width: 120px;
    text-align: center;
}

.companies-main-table .col-links {
    width: 80px;
}

.companies-main-table .col-campaign {
    width: 160px;
}

.companies-main-table .col-score {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.companies-main-table td.col-company-size {
    text-align: center;
}

.companies-main-table td.col-score {
    text-align: center;
}

/* Companies table styling */
.companies-main-table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.companies-main-table {
    width: 100%;
    border-collapse: collapse;
}

.companies-main-table thead {
    background: #f9fafb;
}

.companies-main-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.companies-main-table th.col-checkbox {
    text-align: center;
}

.companies-main-table th.col-company-size {
    text-align: center;
}

.companies-main-table th.col-score {
    text-align: center;
}

.companies-main-table td {
    padding: 16px 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

.companies-main-table tbody tr {
    transition: all 0.2s ease;
}

.companies-main-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.companies-main-table tbody tr:hover {
    background: #eff6ff;
}

.companies-main-table tbody tr.row-approved {
    opacity: 0.6;
    background: #f0fdf4;
}

.companies-main-table tbody tr.row-rejected {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Score Display */
.prospect-score {
    font-weight: 700;
    display: inline-block;
}

.prospect-score.score-excellent {
    color: #10b981;
}

.prospect-score.score-good {
    color: #3b82f6;
}

.prospect-score.score-fair {
    color: #6b7280;
}

/* Data Quality Badges */
.data-quality-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 16px;
    cursor: help;
    transition: transform 0.2s;
}

.quality-badge:hover {
    transform: scale(1.1);
}

.quality-badge.has-data {
    background: #d1fae5;
    opacity: 1;
}

.quality-badge.missing-data {
    background: #f3f4f6;
    opacity: 0.4;
}

.quality-badge-icon {
    font-size: 10px;
}

.quality-badge-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Action Buttons */
.prospect-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-prospect-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-prospect-action.btn-approve {
    background: #10b981;
    color: white;
}

.btn-prospect-action.btn-approve:hover {
    background: #059669;
}

.btn-prospect-action.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-prospect-action.btn-reject:hover {
    background: #dc2626;
}

.btn-prospect-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-prospect-action:disabled:hover {
    background: inherit;
}

/* Checkbox Styling */
.prospects-main-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.prospects-main-table input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Table Footer */
.prospects-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.showing-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prospects-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .prospects-header-actions .filter-select,
    .prospects-header-actions .btn-secondary {
        width: 100%;
    }

    .prospects-filter-bar {
        flex-direction: column;
    }

    .prospects-filter-bar .search-input {
        width: 100%;
    }

    .bulk-action-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .bulk-action-buttons {
        flex-direction: column;
    }

    .prospects-main-table-container {
        overflow-x: auto;
    }

    .prospects-main-table {
        min-width: 900px;
    }

    .prospects-table-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .campaign-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .campaign-card {
        padding: 20px;
    }

    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 24px 20px 16px;
    }

    .modal-campaign-name {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .modal-stat-card {
        padding: 24px;
    }

    .modal-stat-value {
        font-size: 36px;
    }

    .today-activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .modal-tabs {
        padding: 0 20px;
        overflow-x: auto;
    }

    .modal-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .prospects-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .prospects-filters {
        flex-direction: column;
    }

    .prospects-actions {
        flex-direction: column;
    }

    .prospects-table-container {
        overflow-x: auto;
    }

    .wizard-modal {
        max-width: 95%;
    }

    .wizard-progress {
        padding: 20px 16px;
        overflow-x: auto;
    }

    .wizard-step-line {
        width: 40px;
        margin: 0 4px;
    }

    .wizard-step-label {
        font-size: 11px;
    }

    .wizard-step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wizard-footer,
    .button-row {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .wizard-nav-buttons,
    .button-group-right {
        width: 100%;
        justify-content: space-between;
    }

    .btn-wizard,
    .btn {
        flex: 1;
    }

    .btn-cancel {
        width: 100%;
    }
}

/* Import Step Styles */
.import-source-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.import-source-button {
    display: block;
    cursor: pointer;
    position: relative;
}

.import-source-button input[type="radio"] {
    display: none;
}

.import-source-button-content {
    padding: 16px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.import-source-button:hover .import-source-button-content {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.import-source-button input[type="radio"]:checked+.import-source-button-content {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.import-source-button-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.import-source-button-disabled .import-source-button-content {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
}

.import-source-button-disabled:hover .import-source-button-content {
    border-color: #d1d5db;
    background: #f3f4f6;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Legacy radio-card styles for backwards compatibility */
.radio-card {
    display: block;
    cursor: pointer;
    height: 100%;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.radio-card:hover .radio-card-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.radio-card input[type="radio"]:checked+.radio-card-content {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radio-card-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.radio-card-disabled .radio-card-content {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.radio-card-disabled:hover .radio-card-content {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.radio-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.radio-card-description {
    font-size: 14px;
    color: #6b7280;
}

.import-method-section {
    margin-top: 24px;
}

/* CSV Upload Styles */
.file-drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-drop-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-drop-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
    border-style: solid;
}

.file-drop-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.file-drop-text {
    font-size: 15px;
    color: #374151;
    margin-bottom: 8px;
}

.file-drop-text strong {
    color: #3b82f6;
    font-weight: 600;
}

.file-drop-hint {
    font-size: 13px;
    color: #9ca3af;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #10b981;
    border-radius: 12px;
}

.file-preview-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 13px;
    color: #6b7280;
}

.file-preview-remove {
    background: #ef4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.file-preview-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Pipedrive Labels Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.error-state {
    padding: 24px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.pipedrive-labels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-refresh-labels {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-labels:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-refresh-labels:active {
    transform: scale(0.98);
}

.btn-refresh-labels svg {
    transition: transform 0.3s ease;
}

.btn-refresh-labels:hover svg {
    transform: rotate(180deg);
}

.btn-refresh-labels:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh-labels:disabled:hover {
    background: white;
    border-color: #d1d5db;
    color: #374151;
}

.btn-refresh-labels:disabled svg {
    transform: none;
}

.pipedrive-labels-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pipedrive-label-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pipedrive-label-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.pipedrive-label-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.pipedrive-label-item label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.pipedrive-label-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    margin-left: 4px;
}

/* Responsive adjustments for import step */
@media (max-width: 1200px) {
    .import-source-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .import-source-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .import-source-button-content {
        padding: 14px 20px;
        font-size: 15px;
    }

    .file-drop-area {
        padding: 32px 24px;
    }

    .pipedrive-labels-list {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .import-source-options {
        grid-template-columns: 1fr;
    }

    .import-source-button-content {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Import Progress Overlay */
.import-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.import-progress-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.import-progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.import-progress-message {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

/* Import History Table Styles */
.import-history-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background-color: #f9fafb;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table .empty-row:hover {
    background-color: white;
}

.import-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.import-status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.import-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.import-status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Icon Button Styles */
.btn-icon {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ICP Card Component */
.icp-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.icp-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.icp-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.icp-card .icp-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.icp-card .icp-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #374151;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   Review & Launch Page Styles
   ======================================== */

.review-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Status Banner */
.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
}

.status-banner.ready {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status-banner.incomplete {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.status-banner .status-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.status-banner.ready .status-icon {
    color: #28a745;
}

.status-banner.incomplete .status-icon {
    color: #ffc107;
}

.status-banner .status-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.status-banner .status-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.status-banner .status-details {
    font-size: 0.875rem;
    opacity: 0.9;
}

.btn-launch-banner {
    background: white;
    color: #166534;
    border: 3px solid #166534;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-launch-banner:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(22, 101, 52, 0.1);
}

.btn-launch-banner:active {
    transform: translateY(0);
}

/* Four-Column Grid Layout */
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Enrichment cards container spans full width */
#enrichment-cards-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Review Card Styles */
.review-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.review-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.review-card .card-header .card-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.review-card .card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

/* Card Body */
.review-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Card Row (label/value pairs) */
.review-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.review-card .card-row .card-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.review-card .card-row .card-value {
    font-size: 0.9375rem;
    color: #212529;
    font-weight: 400;
    text-align: right;
}

.review-card .card-row .card-value-large {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
    flex: 1;
}

.review-card .card-row .preview-link {
    font-size: 0.875rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.review-card .card-row .preview-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Card Meta (small gray text) */
.review-card .card-meta {
    font-size: 0.8125rem;
    color: #868e96;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f3f5;
}

/* Criteria List */
.review-card .criteria-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-card .criteria-list li {
    font-size: 0.875rem;
    color: #495057;
    padding-left: 1.25rem;
    position: relative;
}

.review-card .criteria-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Card Warning */
.review-card .card-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #856404;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enrichment Card Specific Styles */
.enrichment-card {
    min-height: 180px;
    min-width: 200px;
}

.enrichment-card .card-body {
    min-height: 100px;
}

.enrichment-card .card-value {
    font-weight: 600;
    color: var(--primary-color, #4a90e2);
}

/* Responsive Design - Stack on Small Screens */
@media (max-width: 1200px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #enrichment-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .review-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #enrichment-cards-container {
        grid-template-columns: 1fr;
    }

    .review-container {
        padding: 1rem;
    }
}

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

    .status-banner {
        padding: 0.75rem 1rem;
    }
}

/* Enrichment Sources Section */
.enrichment-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.enrichment-source-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--card-bg, #fff);
}

.enrichment-source-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.enrichment-icon {
    font-size: 1.5rem;
}

.enrichment-source-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.enrichment-source-card .form-select {
    width: 100%;
}

@media (max-width: 768px) {
    .enrichment-sources-grid {
        grid-template-columns: 1fr;
    }
}

/* Provider Selection in Data Source Cards */
.provider-selection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #e8e8e8);
}

.provider-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #666);
    margin: 0;
}

.provider-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--input-bg, #fff);
    cursor: pointer;
}

.provider-select:focus {
    outline: none;
    border-color: var(--primary-color, #4a90e2);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Hide provider selection when checkbox unchecked */
.checkbox-option input[type="checkbox"]:not(:checked)~.checkbox-content .provider-selection {
    opacity: 0.5;
    pointer-events: none;
}

/* Utility Classes */
.capitalize {
    text-transform: capitalize;
}

/* LinkedIn Badge Link Styles */
.quality-badge-link {
    text-decoration: none;
    cursor: pointer;
}

.quality-badge-link:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}