/* Directory Admin - New Entry Form Styles */

.da-new-entry-wrapper {
    margin: 20px 0;
}

.da-new-entry-trigger {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.da-new-entry-trigger:hover {
    background: #005a87;
    color: #fff;
}

/* Embedded Form Styles */
.da-new-entry-embed {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.da-new-entry-embed h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
}

.da-new-entry-embed .da-cancel-btn {
    display: none;
}

/* The modal and form styles inherit from frontend.css */
/* Only need to add any specific overrides or additions here */

#da-new-entry-form h3 {
    margin: 25px 0 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e4e7;
    color: #23282d;
    font-size: 16px;
}

/* Category Checkboxes */
.da-categories-list {
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    max-height: 300px;
    overflow-y: auto;
}

.da-category-checkbox {
    cursor: pointer;
    padding: 4px 0;
}

.da-category-checkbox:hover {
    background: #f0f0f0;
}

.da-category-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.da-form-group .description {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Field Help Text */
.da-field-help {
    margin: 6px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Field Type Specific Styling */
.da-field-type-textarea textarea {
    min-height: 100px;
    resize: vertical;
}

.da-field-type-email input[type="email"] {
    max-width: 400px;
}

.da-field-type-file input[type="file"] {
    padding: 8px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.da-field-type-file input[type="file"]:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

/* WYSIWYG Description Field */
.da-field-type-wysiwyg textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.da-wysiwyg-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0 0 3px 3px;
    border-top: none;
    font-size: 14px;
}

/* Editor Toolbar */
.da-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px 3px 0 0;
}

.da-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.da-editor-btn:hover {
    background: #e9e9e9;
    border-color: #999;
}

.da-editor-btn:active {
    background: #ddd;
}

.da-editor-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 4px;
}

/* Required Field Indicator */
.required {
    color: #dc3232;
    font-weight: bold;
}

/* Field Error State */
.da-field-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

.da-field-error:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.2) !important;
}