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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.hero p {
    color: #6b7280;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.url-preview {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
}

.url-preview span {
    color: #6b7280;
    font-weight: 500;
}

.url-preview input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    outline: none;
}

input[type="text"], textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #6366f1;
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #6366f1;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5856eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    margin-right: 10px;
}

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

.result {
    text-align: center;
    padding: 30px;
    background: #f0fdf4;
    border-radius: 15px;
    border: 2px solid #22c55e;
}

.result h3 {
    color: #16a34a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.links {
    margin-bottom: 15px;
}

.save-notice {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-secondary {
        margin-right: 0;
    }
}
