body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    transition: background-color 0.3s ease;
}
.container {
    max-width: 95%;
    margin: 2rem auto;
}
#message-box {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 5000;
    display: none;
    min-width: 250px;
    max-width: 80%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
#message-box.hidden {
    display: none;
}
#message-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
#preview-section.hidden {
    display: none;
}
#preview-iframe {
    width: 100%;
    min-height: 500px;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}
#preview-iframe.edit-mode {
    border: 2px dashed #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.flex-grow-on-md {
    flex-grow: 1;
}
.md-flex-col {
    flex-direction: column;
}

/* Modal specific styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#launched-section.hidden {
    display: none;
}
#start-new-btn {
    display: none;
}
.border-red-500 {
    border-color: #ef4444;
}
.floating-whatsapp-btn {
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    z-index: 2005; /* Higher z-index to prevent any overlap */
    padding: 1rem;
    background-color: #25d366;
    color: white;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.floating-whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
.refine-control-container.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Custom styles for a cleaner design */
.main-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.form-section {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .form-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
/* New custom styles for button and layout fixes */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .btn-group {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}
/* Ensure inputs and selects are aligned */
#domain-input-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}
/* Full Preview Modal Styles */
#full-preview-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
#full-preview-modal.visible {
    opacity: 1;
    visibility: visible;
}
#full-preview-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
    z-index: 2002;
}

/* Responsive adjustment for the floating WhatsApp button */
@media (max-width: 640px) {
    .floating-whatsapp-btn {
        bottom: 2rem;
        right: 1rem;
        padding: 0.75rem;
    }
}