.selectable {
    margin: 0;
    cursor: pointer;
    padding: 4px;
    background: #E7E7E7;
    display: block;
}

/* Template Management Styles */
.asa-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.asa-template-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.asa-template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.asa-template-header h4 {
    margin: 0;
    color: #333;
}

.asa-template-type {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.asa-template-type.builtin {
    background: #0073aa;
    color: white;
}

.asa-template-type.custom {
    background: #d63384;
    color: white;
}

/* Template Filter Buttons */
.asa-template-filters {
    margin-bottom: 15px;
}

.asa-filter-btn {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    color: #2c3338;
    padding: 8px 12px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.15s ease-in-out;
}

.asa-filter-btn:hover {
    background: #e1e1e1;
    border-color: #999;
}

.asa-filter-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.asa-template-usage p {
    margin: 10px 0 5px 0;
    font-size: 13px;
}

.asa-code-block {
    position: relative;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    font-family: monospace;
    height: auto;
    min-height: 36px;
}

.asa-code-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 35px 8px 8px;
}

.asa-code-block code {
    font-size: 12px;
    background: none;
    padding: 0;
    display: block;
    white-space: nowrap;
    line-height: 20px;
}

.asa-copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    color: #666;
    padding: 4px 6px;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asa-copy-btn:hover {
    color: #0073aa;
    border-color: #0073aa;
    background: #f6f7f7;
}

.asa-template-location {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.asa-template-info {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.asa-template-info ul {
    margin: 10px 0;
}

.asa-template-info li {
    margin-bottom: 8px;
}