/**
 * WhatsApp QR Code Generator Pro - Frontend Styles
 */

.wqr-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wqr-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wqr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.wqr-header h3 {
    margin: 0 0 25px 0;
    color: #25D366;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.wqr-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wqr-form label .required {
    color: #ff4d4d;
}

.wqr-phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.wqr-select {
    width: 100px;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.wqr-form input[type="text"],
.wqr-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.wqr-select:focus,
.wqr-form input:focus,
.wqr-form textarea:focus {
    border-color: #25D366;
    background: #fff;
}

.wqr-btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.wqr-btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.wqr-btn-primary:active {
    transform: scale(0.98);
}

/* Result Section */
.wqr-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

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

.wqr-qr-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#wqr-qrcode img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.wqr-link-box {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

#wqr-link-url {
    flex-grow: 1;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    color: #666;
}

.wqr-btn-icon {
    background: #eee;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.wqr-btn-icon:hover {
    background: #ddd;
}

.wqr-btn-secondary {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.wqr-btn-secondary:hover {
    background: #000;
}

/* Responsive */
@media (max-width: 480px) {
    .wqr-card {
        padding: 20px;
    }
    .wqr-phone-input-wrapper {
        flex-direction: column;
    }
    .wqr-select {
        width: 100%;
    }
}
