/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Cards */
.info-card, .action-card, .flow-card, .debug-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Tracking Information */
.tracking-info {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f7f8fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.label {
    font-weight: 600;
    color: #555;
}

.value {
    font-family: 'Courier New', monospace;
    color: #333;
    font-weight: 500;
}

/* Action Card */
.action-card {
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active:before {
    width: 300px;
    height: 300px;
}

/* Conversion Status */
.conversion-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.conversion-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.conversion-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.conversion-status.loading {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    display: block;
}

/* Flow Diagram */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 20px;
    background: #f7f8fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.flow-step.active {
    background: #e7f3ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.flow-step.completed {
    background: #d4edda;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 18px;
}

.flow-step.active .step-number {
    background: #4c63d2;
    animation: pulse 2s infinite;
}

.flow-step.completed .step-number {
    background: #28a745;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.flow-arrow {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    font-size: 14px;
    color: #666;
}

/* Debug Card */
.debug-card {
    background: #2d2d2d;
    color: #f8f8f2;
}

.debug-card h2 {
    color: white;
}

.debug-content {
    margin-top: 20px;
}

#debug-info {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 40px 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .flow-step {
        width: 100%;
    }
} 