:root {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --success-color: #25D366;
    --whatsapp-color: #25D366;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.95);
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: rgba(59, 130, 246, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 25% 25%, #1e3a8a 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, #1e40af 0%, transparent 50%),
                #0f172a;
    min-height: 100vh;
    color: var(--text-color);
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #dcf8c6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.main-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2),
                0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
}

.info-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.label-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.form-group input {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: rgba(203, 213, 225, 0.4);
}

.btn-generate {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #2196f3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.result-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.2);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h3 {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-header p {
    color: var(--text-secondary);
}

.url-display {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.url-display input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.btn-copy.copied {
    background: rgba(37, 211, 102, 0.2);
    color: var(--success-color);
    border-color: var(--success-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-secondary,
.btn-whatsapp {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-color), #20ba5a);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

.qr-code-section {
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.qr-code-section h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

#qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#qrcode-container canvas {
    border-radius: 12px;
    padding: 1rem;
    background: white;
}

.qr-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer strong {
    color: var(--text-color);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

.toast.success {
    border-color: var(--success-color);
    background: rgba(37, 211, 102, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1.5rem;
    }

    .logo {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .url-display {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }
}
