/* WhatsApp Link Generator Styles */
.wa-generator-wrapper {
    max-width: 65vw;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wa-generator-wrapper * {
    box-sizing: border-box;
}

.wa-header {
    background: #0003fa;
    color: white;
    padding: 30px;
    text-align: center;
}

.wa-header h2 {
    color: white;
    font-size: 1.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.wa-header p {
    opacity: 0.9;
    font-size: 14px;
    margin: 0;
}

.wa-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* Form Section */
.wa-form-section {
    padding-right: 20px;
}

.wa-form-section h2 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
}

.wa-form-group {
    margin-bottom: 20px;
}

.wa-form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.wa-form-group input[type="text"],
.wa-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.wa-form-group input[type="text"]:focus,
.wa-form-group select:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wa-form-group select {
    cursor: pointer;
    background-color: white;
}

.wa-generate-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 32px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.wa-generate-btn:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.wa-generate-btn:active {
    transform: translateY(0);
}

.wa-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.wa-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wa-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Preview Section */
.wa-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.wa-preview-section h2 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
    align-self: flex-start;
}

/* Smartphone Device */
.wa-smartphone {
    width: 300px;
    height: 600px;
    background: #1f1f1f;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.wa-smartphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1f1f1f;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.wa-smartphone-screen {
    width: 100%;
    height: 100%;
    background: #e5ddd5;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.wa-whatsapp-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-whatsapp-contact-info h3 {
    color: white;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.wa-whatsapp-contact-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.wa-whatsapp-chat {
    padding: 15px;
    height: calc(100% - 70px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-message-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    align-self: flex-end;
    background: #DCF8C6;
    color: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-message-time {
    font-size: 11px;
    color: #667781;
    margin-top: 5px;
    text-align: right;
}

.wa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 20px;
}

.wa-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Link Result Section */
.wa-link-result {
    width: 100%;
    margin-top: 20px;
    display: none;
}

.wa-link-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.wa-link-box label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
}

.wa-link-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #333;
}

.wa-copy-btn {
    width: 100%;
    padding: 12px;
    background: #0003fa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wa-copy-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.wa-copy-btn.copied {
    background: #28a745;
}

/* Responsive */
@media (max-width: 968px) {
    .wa-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wa-preview-section {
        border-left: none;
        border-top: 2px solid #f0f0f0;
        padding-left: 0;
        padding-top: 30px;
    }

    .wa-smartphone {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 480px) {
    .wa-main-content {
        padding: 20px;
    }

    .wa-smartphone {
        width: 260px;
        height: 520px;
    }
    
    .wa-header h1 {
        font-size: 24px;
    }
}