.single-post.post-template-ai-prompt .site-content-grid {
    max-width: none !important;
}


#result-block .mwai-form-container{
padding-left: 0 !important;
}

.ai-prompt-area {
    padding-top: 1.875rem;
    padding-bottom: 2.1875rem;
}

.save-prompt {
    text-align: right;
    padding-right: 25px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.save-prompt .prompt-name {
    flex: 1;
    min-width: 0;
}

.save-prompt button {
    flex-shrink: 0;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    line-height: 1.6;
}

.edit-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.prompt-header{
    margin-left: 10px !important;
}

.prompt-input-wrapper {
    margin-bottom: 1.5rem;
}

.prompt-name {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.mwai-form-output {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
}

.prompt-actions {
    margin-top: 1.5rem;
}

.ai-prompt-documents {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-prompt-documents h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.document-list {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.document-list thead th {
    padding: 1rem;
    text-align: left;
    background: #5b5c60;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #fff;
}

.column-document {
    width: 25%;
}

.column-content {
    width: 45%;
}

.column-date {
    width: 15%;
}

.column-action {
    width: 15%;
    text-align: right;
}

.document-item td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.document-category {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 0.25rem;
}

.document-time {
    display: block;
    font-size: 0.85em;
    color: #888;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.document-actions a {
    text-decoration: none;
}

.no-documents {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Modal Styles */
.document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-title {
    flex: 1;
    min-width: 0;
    margin-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 10px;
}

.modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close-x:hover {
    color: #000;
}

.modal-body {
    min-height: 400px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-save:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-title-input {
    font-size: 1.17em;
    font-weight: bold;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    margin: 0;
    background: transparent;
}

.modal-title-input:hover {
    border-color: #ddd;
}

.modal-title-input:focus {
    border-color: #007cba;
    outline: none;
    background: #fff;
}

/* override AI Engine Forms + Style */
.mwai-timeless-theme button {
    background: none !important
}

.mwai-timeless-theme .mwai-form-submit button {
    background: var(--bb-primary-button-background-regular) !important;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.mwai-timeless-theme .mwai-form-submit button:hover {
    background: var(--bb-primary-button-background-hover) !important;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .document-list {
        border: none;
    }

    .document-list thead {
        display: none;
    }

    .document-list tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .document-item td {
        display: block;
        padding: 0.75rem;
        border: none;
        position: relative;
    }

    .column-document {
        background: #f7f7f7;
        border-radius: 8px 8px 0 0;
        font-weight: bold;
        width: 100%;
    }

    .column-content {
        width: 100%;
        font-size: 0.9em;
        color: #666;
    }

    .column-date {
        width: 100%;
        font-size: 0.85em;
        color: #888;
        padding-bottom: 0.5rem !important;
    }

    .document-time {
        display: inline;
        margin-left: 0.5rem;
    }

    .column-action {
        width: 100%;
        text-align: left;
        padding-top: 0.5rem !important;
        border-top: 1px solid #eee;
    }

    .document-actions {
        justify-content: flex-start;
    }

    .document-actions button {
        padding: 0.5rem;
        font-size: 1.2em;
    }

    .ai-prompt-documents {
        padding: 1rem;
        margin-top: 2rem;
    }

    .ai-prompt-documents h2 {
        margin-bottom: 1rem;
    }

    .modal-actions {
        gap: 0.5rem;
    }

    .modal-actions button {
        padding: 8px;
    }
}

.notification-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.notification {
    background: #fff;
    padding: 20px 25px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification-message {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.notification-close {
    cursor: pointer;
    color: #999;
    font-size: 22px;
    line-height: 1;
    padding: 0 8px;
}

.notification-close:hover {
    color: #666;
}

.wp-block-column .prompt-name {
    display: inline-block;
    width: calc(100% - 100px);
    margin-right: 10px;
    vertical-align: middle;
}

.wp-block-column .js-save-prompt {
    display: inline-block;
    vertical-align: middle;
    width: 80px;
}

@media screen and (max-width: 768px) {
    .wp-block-column .prompt-name {
        width: calc(100% - 90px);
    }
    
    .wp-block-column .js-save-prompt {
        width: 70px;
    }
}

