/* Custom styles for Serendipia Agency - Digital Ads Setup Guide */

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Serendipia Branding */
.serendipia-logo {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.serendipia-accent {
    color: #000000;
}

.serendipia-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Platform Icons */
.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.platform-icon.google-ads {
    background-color: #4285f4;
    color: white;
}

.platform-icon.google-analytics {
    background-color: #ff7900;
    color: white;
}

.platform-icon.google-search-console {
    background-color: #34a853;
    color: white;
}

.platform-icon.google-merchant-center {
    background-color: #fbbc04;
    color: white;
}

.platform-icon.meta {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    color: white;
}

.platform-icon.linkedin {
    background-color: #0077b5;
    color: white;
}

.platform-icon.pinterest {
    background-color: #e60023;
    color: white;
}

.platform-icon.tiktok {
    background-color: #000000;
    color: white;
}

.platform-icon.youtube {
    background-color: #ff0000;
    color: white;
}

.platform-icon.amazon {
    background-color: #ff9900;
    color: white;
}

.platform-icon.twitter {
    background-color: #1da1f2;
    color: white;
}

.platform-icon.snapchat {
    background-color: #fffc00;
    color: black;
}

/* Step Numbers */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Instructions Steps */
.instruction-step {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.instruction-step:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Completion Checkbox */
.completion-checkbox {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    margin-top: 24px;
}

.completion-checkbox.completed {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.completion-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* Platform Cards in Agency Panel */
.platform-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.platform-card:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.platform-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Access Item Checkbox */
.access-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.access-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Client Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.in-progress {
    background-color: #dbeafe;
    color: #2563eb;
}

.status-badge.completed {
    background-color: #dcfce7;
    color: #16a34a;
}

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

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

/* Tab Styling */
.tab-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 2px solid transparent;
    font-medium;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .instruction-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    #clientTabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
    }
    
    .tab-button.active {
        border-left-color: #3b82f6;
        border-bottom-color: transparent;
    }
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* White Label Toggle Styles */
.white-label-toggle input:checked + div {
    background-color: #7c3aed;
}

.white-label-toggle input:checked + div .dot {
    transform: translateX(100%);
    background-color: #ffffff;
}

/* White Label Mode Indicators */
.white-label-mode {
    display: none;
}

.serendipia-mode {
    display: inline;
}

.white-label-active .white-label-mode {
    display: inline;
}

.white-label-active .serendipia-mode {
    display: none;
}

/* WhatsApp Button Styles */
#whatsappFloat {
    animation: whatsappPulse 2s infinite;
}

#whatsappFloat:hover {
    animation: none;
}

.whatsapp-button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* WhatsApp inline button */
.whatsapp-inline {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-inline:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}