/* Template Editor Styles */
.ntc-template-editor-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Template List Section */
.ntc-template-list-section h2,
.ntc-template-edit-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ntc-template-search {
    margin-bottom: 20px;
}

.ntc-template-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntc-template-table-container {
    overflow-x: auto;
}

.ntc-template-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ntc-template-table th,
.ntc-template-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ntc-template-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #23282d;
}

.ntc-template-table tr:hover {
    background-color: #f8f9fa;
}

.ntc-template-table .ntc-status-active {
    color: #46b450;
    font-weight: 600;
}

.ntc-template-table .ntc-status-inactive {
    color: #dc3232;
}

.ntc-edit-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.ntc-edit-button:hover {
    background-color: #005177;
}

/* Edit Form Section */
.ntc-template-edit-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.ntc-form-row {
    margin-bottom: 15px;
}

.ntc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.ntc-form-row input[type="text"],
.ntc-form-row select,
.ntc-form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntc-form-row textarea {
    min-height: 150px;
    font-family: monospace;
}

.ntc-variables-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.ntc-variable {
    background: #e9f5fe;
    color: #0073aa;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #c5e1f9;
}

.ntc-variable:hover {
    background: #c5e1f9;
}

/* Tabs */
.ntc-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.ntc-tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    background: #f8f9fa;
}

.ntc-tab.active {
    background: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
    font-weight: 600;
}

.ntc-tab-content {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
}

/* Form Actions */
.ntc-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.ntc-save-button,
.ntc-cancel-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.ntc-save-button {
    background-color: #0073aa;
    color: white;
}

.ntc-save-button:hover {
    background-color: #005177;
}

.ntc-cancel-button {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    color: #555;
}

.ntc-cancel-button:hover {
    background-color: #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ntc-template-table th,
    .ntc-template-table td {
        padding: 8px 10px;
    }
    
    .ntc-edit-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}