/* campaign-wizard.css - Enhanced styling for Winfluencer campaign management with performance dashboard */

/* ===== WIZARD PROGRESS INDICATORS ===== */
.wizard-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

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

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

.wizard-step.completed::before {
    content: "✓";
    font-size: 16px;
}

/* ===== INTERACTIVE CARDS ===== */
.objective-card,
.utm-template-card,
.status-card,
.domain-card,
.influencer-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.objective-card:hover,
.utm-template-card:hover,
.status-card:hover,
.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.objective-card.selected,
.utm-template-card.selected,
.status-card.selected,
.domain-card.selected {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6 !important;
}

/* ===== FORM ENHANCEMENTS ===== */
.input-field:focus {
    transform: scale(1.01);
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* ===== VALIDATION STATES ===== */
.validation-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
    animation: slideInLeft 0.3s ease;
}

.validation-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
    animation: shake 0.5s ease;
}

.validation-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
}

/* ===== CAMPAIGN PERFORMANCE DASHBOARD STYLES ===== */

/* Campaign Cards */
.campaign-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.campaign-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.campaign-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.campaign-info {
    flex: 1;
}

.campaign-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.campaign-actions {
    display: flex;
    gap: 8px;
}

/* Status and Objective Badges */
.objective {
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

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

.status-scheduled { 
    background: #e0e7ff; 
    color: #3730a3; 
}

.status-paused { 
    background: #fee2e2; 
    color: #dc2626; 
}

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

/* Performance Summary Grid */
.performance-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.metric-card {
    text-align: center;
    min-width: 80px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

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

/* Conversion Breakdown */
.conversion-breakdown {
    margin-bottom: 24px;
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

.conversion-breakdown h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

.conversion-types {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.conversion-type {
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

/* Influencer Performance Section */
.influencer-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.influencer-list {
    space-y: 2px;
}

.influencer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.influencer-row:hover {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    margin: 0 -12px;
}

.influencer-row:last-child {
    border-bottom: none;
}

.influencer-info {
    flex: 1;
}

.influencer-name {
    margin-bottom: 4px;
}

.influencer-name strong {
    color: #1f2937;
    font-size: 14px;
}

.real-name {
    color: #6b7280;
    font-weight: normal;
    font-size: 13px;
    margin-left: 8px;
}

.influencer-details {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 12px;
}

.influencer-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    text-align: center;
    min-width: 60px;
}

.metric .value {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.metric .label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Empty States */
.no-influencers {
    text-align: center;
    padding: 32px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.no-influencers p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.show-more {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

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

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOADING STATES ===== */
.spinner {
    animation: spin 1s linear infinite;
}

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading spinner for dashboard */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== MODAL ENHANCEMENTS ===== */
.modal-overlay {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

/* ===== CAMPAIGN STATS ===== */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TRACKING LINKS ===== */
.tracking-url {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tracking-url:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tracking-url::after {
    content: "📋";
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.tracking-url:hover::after {
    opacity: 1;
}

/* ===== QR CODES ===== */
.qr-code img {
    transition: transform 0.2s ease;
}

.qr-code:hover img {
    transform: scale(1.1);
}

/* ===== INFLUENCER CARDS ===== */
.influencer-card {
    position: relative;
    overflow: hidden;
}

.influencer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.influencer-card:hover::before {
    left: 100%;
}

/* ===== STEP CONTENT TRANSITIONS ===== */
.step-content {
    animation: slideUp 0.4s ease;
}

/* ===== CAMPAIGN PREVIEW ===== */
.campaign-preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.campaign-preview-card h6 {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== EXPORT BUTTONS ===== */
.export-btn {
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.export-btn:hover::before {
    left: 100%;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .wizard-step {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .objective-card,
    .utm-template-card {
        padding: 12px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    /* Performance Dashboard Responsive */
    .performance-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .campaign-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .campaign-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .influencer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .influencer-metrics {
        width: 100%;
        justify-content: space-around;
        gap: 12px;
    }
    
    .metric {
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .performance-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .campaign-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .influencer-metrics {
        gap: 8px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .btn,
    .modal-overlay,
    .wizard-step,
    .export-btn {
        display: none !important;
    }
    
    .campaign-brief {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .wizard-step {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .objective-card,
    .utm-template-card,
    .status-card,
    .domain-card,
    .campaign-card {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .tracking-url {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .performance-summary {
        background: #374151;
        border-color: #4b5563;
    }
    
    .conversion-breakdown {
        background: #1f2937;
        border-color: #4b5563;
    }
    
    .campaign-title,
    .metric-value {
        color: #f9fafb;
    }
}