* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

header h1 i {
    margin-right: 15px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 40px;
}

.utm-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    /* Remove grid layout - all inputs will be vertical */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input[type="text"], 
input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

input[type="text"]:focus, 
input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Custom styled select dropdown */
select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:hover {
    border-color: #667eea;
    background-color: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
    transform: translateY(0);
}

select:active {
    transform: translateY(0);
}

/* Style select options */
select option {
    padding: 10px;
    background: white;
    color: #4a5568;
    font-size: 16px;
}

select option:hover {
    background: #f8faff;
}

select option:checked {
    background: #667eea;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.result-section {
    margin-bottom: 25px;
}

.result-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-container input {
    flex: 1;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.btn-copy {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #38a169;
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fed7d7;
    border-radius: 6px;
    border-left: 4px solid #e53e3e;
}

/* Google Analytics Integration Styles */
.analytics-container {
    margin-bottom: 15px;
}

.btn-analytics {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 25%, #34a853 50%, #4285f4 75%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.btn-analytics:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

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

.analytics-info {
    background: #f8faff;
    border: 2px solid #e6f3ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.analytics-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #4a5568;
}

.analytics-info strong {
    color: #2d3748;
    display: inline-block;
    min-width: 80px;
}

.analytics-info span {
    color: #667eea;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.analytics-instructions {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #234e52;
}

.analytics-instructions i {
    color: #38b2ac;
    margin-right: 8px;
}

footer {
    background: #f7fafc;
    padding: 20px;
    text-align: center;
    color: #718096;
    border-top: 1px solid #e2e8f0;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #e53e3e;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .url-container {
        flex-direction: column;
    }
    
    .url-container input {
        margin-bottom: 10px;
    }
    
    .btn-copy {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 20px 15px;
    }
} 