/* whatsapp-generator.css */

#generator-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #E5E7EB;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}
.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title span {
    background-color: #EF5844;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 12px;
}


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

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

.radio-group label {
    margin-right: 20px;
    font-weight: 400;
    cursor: pointer;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
}

#color {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
#color::-webkit-color-swatch {
    border-radius: 50%;
    border: 1px solid #E5E7EB;
}
#color::-moz-color-swatch {
    border-radius: 50%;
    border: 1px solid #E5E7EB;
}

#color-value {
    margin-left: 10px;
    font-family: monospace;
    background-color: #F3F4F6;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}


/* Preview */
#widget-preview-container {
    position: sticky;
    top: 100px;
}

#widget-preview {
    width: 320px;
    height: 550px;
    background-color: #E5DDD5;
    background-image: url('../img/wpback.jpg');
    background-size: contain;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

.preview-header {
    background-color: #075E54;
    padding: 10px;
    color: white;
}

.preview-brand {
    display: flex;
    align-items: center;
}

#preview-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    background-color: #fff;
}

#preview-brand-name {
    font-weight: 600;
}

.preview-chat-area {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
}

.chat-bubble.received {
    background-color: #fff;
    align-self: flex-start;
}
.chat-bubble .timestamp {
    font-size: 11px;
    color: #999;
    float: right;
    margin-top: 5px;
    margin-left: 10px;
}

.powered-by {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin-top: auto;
}

.preview-footer {
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.preview-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 25px;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.preview-button.qr-button {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}


/* Floating button preview */
#floating-button-preview-wrapper {
    height: 100px;
    position: relative;
    margin-top: 20px;
}

#floating-button-preview {
    position: absolute;
    bottom: 20px;
    right: 0;
    transition: all 0.3s ease;
}

#preview-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #15803D;
    color: white;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}

#preview-cta-button .whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
#preview-cta-button.icon-only {
    padding: 15px;
    border-radius: 50%;
}
#preview-cta-button.icon-only .cta-text {
    display: none;
}
#preview-cta-button.icon-only .whatsapp-icon {
    margin-right: 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.modal-content p {
    margin-bottom: 20px;
    color: #666;
}
.code-step {
    margin-bottom: 20px;
}
.code-step h4 {
    margin-bottom: 10px;
}
.code-container {
    position: relative;
    background-color: #2d2d2d;
    color: #f1f1f1;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}
#copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
#copy-code-btn:hover {
    background-color: #555;
}

/* Intl-tel-input */
.iti {
    width: 100%;
}

@media (max-width: 768px) {
    #widget-preview-container {
        position: static;
        margin-top: 30px;
    }
} 