:root {
    --primary-color: #4F46E5;
    --secondary-color: #818CF8;
    --background-color: #F3F4F6;
    --text-color: #1F2937;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #b5c2caab;
    color: var(--text-color);
}

.builder-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-right: 1px solid #E5E7EB;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: #6B7280;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.875rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-info {
    background-color: #10B981;
}

.preview-area {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 650px;
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #10B981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(150%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

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

/* Instructions Popup Styles */
.instructions-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.instructions-popup.show {
    display: flex;
}

.instructions-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6B7280;
    padding: 5px;
}

.close-popup:hover {
    color: var(--text-color);
}

.code-block {
    background-color: #F3F4F6;
    padding: 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.instructions-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.instructions-content ul {
    list-style-type: none;
}

.instructions-content li {
    margin-bottom: 1.5rem;
}

.instructions-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
@media screen and (max-width: 768px) {
    .builder-container {
        display: flex;
        flex-direction: column;
    }

    .preview-area {
        order: 1;
        padding: 0.5rem;
    }

    .sidebar {
        order: 2;
        margin: 1rem;
        border-radius: 8px;
        border-right: none;
        border-top: 1px solid #E5E7EB;
        height: auto;
        overflow-y: visible;
    }

    .preview-container {
        height: 700px; 
        margin: 10px; 
    }

    .preview-frame {
        border-radius: 8px; 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    }
    .instructions-popup {
        padding: 1rem;
    }

    .instructions-content {
        width: 95%;
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .code-block {
        max-width: 100%;
        overflow-x: auto;
    }
}