.pimi-templates-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}
.pimi-templates-sidebar {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}
.pimi-templates-main {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}
.pimi-command-input-wrapper {
    position: relative;
}
.pimi-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pimi-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pimi-suggestions-list .pimi-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.pimi-suggestions-list .pimi-suggestion:hover,
.pimi-suggestions-list .pimi-suggestion.selected {
    background: #0073aa;
    color: #fff;
}

.pimi-templates-filters {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.pimi-shared-badge {
    margin-left: 5px;
    font-size: 14px;
    vertical-align: middle;
}

.pimi-templates-filters label {
    font-weight: 600;
}

.pimi-templates-filters select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.pimi-templates-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.pimi-templates-tabs .template-tab {
    margin-right: 5px;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 10px 20px;
    cursor: pointer;
}

.pimi-templates-tabs .template-tab.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.pimi-templates-tabs .template-tab:hover {
    color: #0073aa;
}

/* Template Parameter Modal */
.pimi-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.pimi-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: pimi-modal-fadein 0.3s;
}

@keyframes pimi-modal-fadein {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.pimi-modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pimi-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.pimi-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.pimi-modal-close:hover,
.pimi-modal-close:focus {
    color: #000;
}

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

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

.pimi-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.pimi-form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.pimi-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.pimi-modal-footer .button {
    margin-left: 10px;
}

