.gform-loom-button {
    background-color: #625df5;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: background-color 0.2s ease-in-out;
    margin-bottom: 1em;
}

.gform-loom-button:hover {
    background-color: #4f4ac4;
}

.gform-loom-preview {
    margin: 1.5em 0;
    min-height: 40px;
}

.loom-video-error {
    background-color: #fef8f7;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    padding: 16px;
    margin-top: 8px;
}

.loom-video-error p {
    color: #842029;
    font-size: 14px;
    margin: 0;
}

.gform-field-type-loom {
    margin-bottom: 1.5em;
}

.gform-field-type-loom .gfield_label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.gform-field-type-loom .gfield_description {
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.gform-field-type-loom .gfield_required {
    color: #c02b0a;
    margin-left: 0.25em;
}

.gform-loom-editor-preview {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px;
    min-height: 36px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.gform-loom-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #242748;
    font-size: 13px;
    line-height: 18px;
}

.gform-icon--loom {
    color: #242748;
    opacity: 0.5;
}

.gform-loom-preview-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gform-settings-input__container {
    position: relative;
    margin: 0;
}

.gform_editor .ginput_container_loom {
    margin: 0;
    padding: 0;
}

.gform-loom-editor-preview:hover {
    border-color: #005fb2;
}

.gform-loom-editor-preview:hover .gform-icon--loom {
    opacity: 1;
    color: #005fb2;
}

/* Form Editor Styles */
.gform-field-input--type-loom {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px;
    min-height: 36px;
    width: 100%;
    box-sizing: border-box;
}

.gform-field-input--type-loom .gform-field-input__content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 30px;
    padding: 5px 8px;
}

.gform-field-input--type-loom .gform-field-input__placeholder {
    display: flex;
    align-items: center;
    color: #242748;
    font-size: 13px;
    line-height: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gform-field-input--type-loom:hover {
    border-color: #005fb2;
}

.gform-field-input--type-loom:hover .gform-icon {
    color: #005fb2;
}

/* Update the preview spacing */
.gform-loom-preview {
    margin: 1.5em 0;
    min-height: 40px;
}

/* Add specific spacing when there's a video */
.gform-loom-preview.has-video {
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Ensure the embedded iframe is responsive */
.gform-loom-preview.has-video iframe {
    max-width: 100%;
    border-radius: 3px;
}

/* Add some space between the button and preview */
.gform-loom-button + .gform-loom-preview {
    margin-top: 1em;
}

/* Entry Detail Styles */
.loom-entry-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.loom-video-link {
    display: inline-flex;
    align-items: center;
    color: #005fb2;
    text-decoration: none;
    font-weight: 500;
}

.loom-video-link:hover {
    color: #004c8f;
    text-decoration: underline;
}

.loom-video-url {
    color: #646970;
    font-size: 0.9em;
    word-break: break-all;
}

/* Entry List View Styles */
.entries_table_container a[href*="loom.com"] {
    display: inline-flex;
    align-items: center;
    color: #005fb2;
    text-decoration: none;
    font-weight: 500;
}

.entries_table_container a[href*="loom.com"]:hover {
    color: #004c8f;
    text-decoration: underline;
}
