/**
 * Templates Page Styles
 */

.sie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sie-modal-content {
    background: white;
    border-radius: 4px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.sie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dcdcde;
}

.sie-modal-header h2 {
    margin: 0;
}

.sie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.sie-modal-close:hover {
    color: #000;
}

.sie-modal-body {
    padding: 20px;
}

.sie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #dcdcde;
}

.badge {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.template-row:hover {
    background-color: #f5f5f5;
}

.sie-form-group {
    margin-bottom: 15px;
}

.sie-form-group label {
    display: block;
    margin-bottom: 5px;
}

.sie-form-group input {
    width: 100%;
}

.sie-form-group .description {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Template Details View Styles */
.template-details {
    padding: 0;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 .dashicons {
    color: #0073aa;
}

.detail-section .form-table {
    margin: 0;
}

.detail-section .form-table th {
    width: 150px;
    font-weight: 600;
    color: #666;
}

.content-types-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.content-types-list li {
    background: #f0f6fc;
    border-left: 3px solid #0073aa;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-types-list li .dashicons {
    color: #00a32a;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.field-item {
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    padding: 6px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.field-item .dashicons {
    color: #0073aa;
    font-size: 16px;
}

/* Edit Template Styles */
.export-types-checkboxes label {
    display: block;
    margin: 8px 0;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.export-types-checkboxes label:hover {
    background: #f0f6fc;
}

.selected-fields-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.field-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
}

.field-tag .remove-field {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-tag .remove-field:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}
