@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Sono:wght@200..800&family=Stint+Ultra+Condensed&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #fffaf8;
    color: #ff3700;
    position: relative;
    overflow-x: hidden;
    padding: 2rem;
    min-height: 100vh;
}

#sky-shader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block; /* Ensure it's displayed */
    pointer-events: none; /* Allow interaction with elements behind it */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}  

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: justify;
    margin-bottom: 2rem;
}

header h1 {
    font-weight: 500;
    font-size: 1.5rem;
    color: #ff3700;
    margin-bottom: 0.5rem;
    
}

.logo-name-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Sono', sans-serif;
}

.logo-container {
    width: 64px;
    height: 64px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.schema-editor-header, .preview-header {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    padding: 0.5rem 0;
    min-height: 2.5rem;
    height: 3rem;
}

.schema-editor-header h2, .preview-header h2 {
    margin: 0;
    padding: 0;
}

.form-builder {
    display: flex;
    gap: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0px 20px rgba(206, 206, 206, 0.2);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.formbutton-container {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-types-panel {
    display: none; /* Hide by default, will be shown in command bar */
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 1.5rem;
    max-height: 700px;
    overflow-y: auto;
}

.field-types-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.field-type {
    background-color: #f5f9ff;
    border: 1px solid #e0e8f5;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.field-type:hover {
    background-color: #e8f1ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.field-type h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.field-type p {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

.custom-field-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.custom-field-section h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.custom-field-section p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

#custom-fields-list {
    margin-top: 1rem;
}

.custom-field-item {
    background-color: #f0f7ff;
    border: 1px solid #c5d9f1;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.custom-field-item h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #2980b9;
}

.custom-field-item p {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

.schema-editor, .preview {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

h2 {
    color: #7d7d7d;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

#schema-input {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Sono', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

button {
    background-color: #ffffff;
    color: #ff3700;
    border: 1px solid #ff3700;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    font-family: 'Sono', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

button:hover {
    background-color: #ff3700;
    color: #ffffff;
    box-shadow: 0 0 20px #ff856373;

}

#create-custom-field {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem;
}

#form-preview {
    font-family: 'Sono', sans-serif;
    background-color: rgba(249, 249, 249, 0.8);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    min-height: 300px;
}

.placeholder-text {
    color: #999;
    text-align: center;
    margin-top: 120px;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

/* Preview header styles are now combined with schema-editor-header */

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Sono', sans-serif;
    font-size: 0.8rem;
    color: #323232;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498db;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.required::after {
    content: " *";
    color: #e74c3c;
}

/* Radio and checkbox styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-message pre {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    text-align: left;
    font-family: monospace;
    white-space: pre-wrap;
    max-width: 100%;
    overflow-x: auto;
}

.submit-button {
    margin-top: 1rem;
    width: 100%;
}

/* Modal styles */
.modal {
    font-family: 'Sono', sans-serif;
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

#custom-field-components {
    height: 200px;
    font-family: monospace;
}

@media (max-width: 1200px) {
    .form-builder {
        flex-direction: column;
    }
    
    .field-types-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .field-types-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

/* Custom field group styles */
fieldset.custom-field-group {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgba(245, 249, 255, 0.5);
}

fieldset.custom-field-group legend {
    font-weight: 600;
    color: #2c3e50;
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

/* Rating slider styles */
.rating-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-value {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 2rem;
    text-align: center;
    color: #3498db;
}

/* Star rating styles */
.star-rating {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.star {
    font-size: 1.8rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.star:hover,
.star.selected {
    color: #f1c40f;
}

/* Phone input styles */
.phone-container {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: auto;
    min-width: 80px;
}

.phone-container input[type="tel"] {
    flex: 1;
}

/* Keyboard shortcut hint */
.keyboard-shortcut-hint {
    font-size: 0.8rem;
    color: #666;
    background-color: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

.keyboard-shortcut-hint:hover {
    opacity: 0.8;
}

.keyboard-shortcut-hint kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-family: monospace;
    line-height: 1.4;
    color: #444;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    margin: 0 0.1rem;
}

#add-field-button {
    background-color: #ff3700;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#add-field-button:hover {
    background-color: #e53100;
}

/* Command Bar Modal */
.command-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.command-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.command-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.command-modal-content {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.command-bar {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.command-bar-icon {
    font-size: 1.2rem;
    color: #ff3700;
    margin-right: 0.5rem;
}

.command-bar-close {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 0.5rem;
    padding: 0.2rem 0.4rem;
    background-color: #f7f7f7;
    border-radius: 3px;
}

#command-search {
    font-family: 'Sono', sans-serif;
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
}

.command-results {
    font-family: 'Sono', sans-serif;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.command-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.command-result-item:hover,
.command-result-item.selected {
    background-color: #f5f9ff;
}

.command-result-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF1ED;
    border-radius: 4px;
    margin-right: 1rem;
    color: #ff3700;
    font-size: 0.8rem;
}

.command-result-content {
    flex: 1;
}

.command-result-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #ff3700;
}

.command-result-description {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    width: 100%;
    display: block;
}

/* Infinite Canvas styles */
.canvas-container {
    width: 100%;
    height: 400px;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.canvas-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    background-color: white;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.canvas-toolbar button {
    width: 36px;
    height: 36px;
    padding: 6px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.canvas-toolbar button:hover {
    background-color: #f5f5f5;
}

.canvas-toolbar button.active {
    background-color: #e8f1ff;
    border-color: #3498db;
    color: #3498db;
}

.canvas-toolbar button svg {
    width: 20px;
    height: 20px;
}

/* Canvas fullscreen mode */
.canvas-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: white;
}

.canvas-fullscreen .canvas-toolbar {
    top: 20px;
    left: 20px;
}

.canvas-fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    z-index: 10;
}

.canvas-fullscreen-toggle:hover {
    background-color: #f5f5f5;
}

/* Canvas instructions */
.canvas-instructions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #777;
    pointer-events: none;
}

/* Divider styles */
.divider-group {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

/* Image styles */
.form-image-container {
    margin: 1rem 0;
    text-align: center;
}

.form-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-image-container figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Boolean toggle styles */
.toggle-container {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    justify-content: flex-start;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background-color: #3498db;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.true-label, .false-label {
    font-size: 0.9rem;
    color: #777;
    transition: color 0.3s;
    font-weight: 500;
}

.true-label.active, .false-label.active {
    color: #333;
    font-weight: 600;
}

.false-label {
    min-width: 30px;
    text-align: right;
}

.true-label {
    min-width: 30px;
    text-align: left;
}

/* Ranking styles */
.ranking-container {
    margin: 1rem 0;
}

.ranking-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    cursor: move;
    transition: background-color 0.2s;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background-color: #f5f9ff;
}

.ranking-handle {
    margin-right: 0.75rem;
    color: #aaa;
    cursor: grab;
}

.ranking-number {
    font-weight: 500;
    margin-right: 0.75rem;
    color: #3498db;
    width: 1.5rem;
}

.ranking-text {
    flex: 1;
}

/* Match columns styles */
.match-container {
    margin: 1.5rem 0;
}

.match-columns {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 1rem;
    min-height: 200px;
}

.match-column {
    width: 45%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: white;
}

.match-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.match-item {
    padding: 0.75rem 1rem;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-item:last-child {
    border-bottom: none;
}

.left-item {
    border-right: 3px solid transparent;
    padding-right: 2.5rem;
}

.right-item {
    border-left: 3px solid transparent;
    padding-left: 2.5rem;
    flex-direction: row-reverse;
}

.match-item.selected {
    background-color: #e8f1ff;
}

.match-handle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #3498db;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s, color 0.2s;
    background-color: #f5f9ff;
    border: 1px solid #e0e8f5;
}

.match-handle:hover {
    background-color: #e8f1ff;
    color: #2980b9;
}

.left-item .match-handle {
    right: 0.5rem;
}

.right-item .match-handle {
    left: 0.5rem;
}

/* Animation for successful match */
@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

.match-item.matched .match-handle {
    animation: pulse 0.5s ease-in-out;
}

/* Payment styles */
.payment-container {
    margin: 1.5rem 0;
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #f5f9ff;
    color: #2c3e50;
    border: 1px solid #e0e8f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    background-color: #e8f1ff;
}

.payment-method.selected {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.payment-icon {
    font-size: 1.2rem;
}

.paypal-icon {
    background-color: #0070ba;
    color: white;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.payment-details {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.payment-field-group {
    margin-bottom: 1rem;
}

.payment-field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.payment-field-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.payment-details-row {
    display: flex;
    gap: 1rem;
}

.payment-details-row .payment-field-group {
    flex: 1;
}

/* Authentication styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.auth-status {
    font-family: 'Sono', sans-serif;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.auth-button {
    font-family: 'Sono', sans-serif;
    background-color: transparent;
    color: #ff3700;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    border: 1px solid #ff3700;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    height: fit-content;
}

.auth-button:hover {
    background-color: #d72f00;
    color: #fff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* f button styles */
.publish-button {
    border: 1px solid #219653;
    color: #219653;
}

.publish-button:hover {
    background-color: #219653;
    border: 1px solid #219653;
    color: #ffffff;
}

.publish-button:disabled {
    background-color: #ffffff;
    border: 1px solid #c8c8c8;
    color: #c8c8c8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Form URL styles */
.form-url {
    background-color: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-url a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.copy-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #2980b9;
}

.dashboard-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
}

/* Dashboard styles */
.dashboard {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.forms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.form-card-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.form-card-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.form-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-card-button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.icon-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.1s;
    color: #ff3700;
}

.icon-button:hover {
    background-color: rgba(255, 55, 0, 0.1);
    transform: scale(1.05);
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.view-form-button {
    color: #ff3700;
}

.view-form-button:hover {
    background-color: rgba(255, 55, 0, 0.1);
}

.delete-form-button {
    background-color: transparent;
    border: transparent;
    color: #ff3700;
}

.delete-form-button:hover{
    color: #ff3700;
    border: transparent
}

.delete-form-button:hover {
    background-color: rgba(255, 55, 0, 0.1);
}

.submissions-container {
    width: 100%;
    overflow-x: auto;
    max-height: 70vh;
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f5f5f5;
}

.submissions-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.submissions-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.submissions-container::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 4px;
}

.submissions-container::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.submissions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 650px;
}

.submissions-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.submissions-table th,
.submissions-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.submissions-table th {
    background-color: #f5f9ff;
    font-weight: 500;
    color: #2c3e50;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.submissions-table td.expandable {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    cursor: pointer;
    position: relative;
}

.submissions-table td.expanded {
    white-space: normal;
    max-width: none;
    background-color: #f9f9f9;
}

.submissions-table tr:hover td {
    background-color: #f9f9f9;
}

.submissions-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.5rem;
}

.download-csv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f9ff;
    color: #2c3e50;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-csv-button:hover {
    background-color: #e5f0ff;
}

.download-csv-button svg {
    width: 16px;
    height: 16px;
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.create-form-button {
    display: inline-block;
    background-color: #ff3700;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.create-form-button:hover {
    background-color: #b22700;
}

/* Responsive styles for dashboard */
@media (max-width: 768px) {
    .forms-list {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Responsive classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .schema-editor-header, .preview-header {
        flex-wrap: wrap;
        gap: 0rem;
    }
    
    .schema-editor-header h2, .preview-header h2 {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    #add-field-button {
        margin-left: auto;
    }
    
    /* Existing media query styles */
    .forms-list {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .submissions-container {
        max-height: 60vh;
        margin-top: 0.5rem;
    }
    
    .submissions-actions {
        justify-content: flex-start;
    }
    
    .submissions-table th,
    .submissions-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
        max-width: 150px;
    }
}

/* Feedback Floating Action Button */
.feedback-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4e2b;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: fit-content;
}

.feedback-fab:hover {
    background-color: #ff765b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feedback-fab svg {
    width: 16px;
    height: 16px;
}

.feedback-iframe-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    height: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
}

.feedback-iframe-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.feedback-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.feedback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feedback-close:hover {
    background-color: #f5f5f5;
}

@media (max-width: 480px) {
    .feedback-iframe-container {
        width: 90%;
        height: 80%;
        bottom: 10%;
        right: 5%;
    }
    
    .feedback-fab {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Add a special style for when the page is embedded in an iframe */
body.embedded {
    padding: 0;
    margin: 0;
    background: transparent;
}

body.embedded .container {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
}

@media (max-width: 480px) {
    .feedback-iframe-container {
        width: 90%;
        height: 80%;
        bottom: 10%;
        right: 5%;
    }
    
    .feedback-fab {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
} 