/* CSS Custom Properties */
:root {
    --primary-color: #005792;
    --primary-hover: #00416d;
    --success-color: #28a745;
    --success-hover: #218838;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --secondary-color: #6c757d;
    --secondary-hover: #545b62;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-dark: #343a40;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #555a5f;
    
    --border-color: #dee2e6;
    --border-radius: 6px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    
    --sidebar-width: 320px;
    --sidebar-min-width: 200px;
    --sidebar-max-width: 600px;
    --header-height: 60px;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.app-header {
    background: var(--primary-color);
    color: white;
    height: var(--header-height);
    box-shadow: var(--box-shadow);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 1.1rem;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-icon {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    display: flex;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-min-width);
    max-width: var(--sidebar-max-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    resize: horizontal;
    overflow: hidden;
    transition: transform var(--transition-medium);
    transform: translateX(0);
    user-select: none;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.sort-dropdown {
    position: relative;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 180px;
    z-index: 1000;
    padding: 4px 0;
    margin-top: 4px;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition-fast);
    color: var(--text-primary);
}

.sort-option:hover:not(.disabled) {
    background: var(--bg-secondary);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
}

.sort-option.active:hover {
    background: var(--primary-hover);
}

.sort-option.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.sort-option i {
    width: 12px;
    text-align: center;
    font-size: 11px;
}

.sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prompt-search {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-clear:hover {
    background: var(--bg-tertiary);
    color: var(--danger-color);
}

.search-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.prompt-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.prompt-list li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
    font-size: 14px;
    word-break: break-word;
}

.prompt-list li:hover {
    background: var(--bg-secondary);
}

.prompt-list li.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.prompt-list li.active:hover {
    background: var(--primary-hover);
}

.prompt-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prompt-name {
    font-weight: inherit;
    line-height: 1.2;
}

.prompt-metadata {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.1;
    display: flex;
    flex-direction: row;
    gap: 1px;
}

.prompt-list li:not(.active) .prompt-metadata {
    color: var(--text-muted);
}

.prompt-list li.active .prompt-metadata {
    color: rgba(255, 255, 255, 0.8);
}

.prompt-meta-author {
    font-weight: 500;
}

.prompt-meta-author::after {
    content: '\00a0|\00a0';
}

.prompt-meta-date {
    font-weight: 400;
}

.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -3px;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    background: transparent;
    transition: background var(--transition-fast);
}

.sidebar-resizer:hover {
    background: var(--primary-color);
}

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left var(--transition-medium);
    margin-left: 0;
    overflow: hidden;
}

.editor-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
}

.editor-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.prompt-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prompt-display-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.prompt-file-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-file-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 400;
}

.copy-filename-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-filename-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: scale(1.1);
}

.copy-filename-btn:active {
    transform: scale(0.95);
}

.copy-filename-btn.copied {
    color: var(--success-color);
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.welcome-message h2 {
    margin: 0 0 10px 0;
    font-weight: 400;
    color: var(--text-primary);
}

.welcome-message p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
}

.editor-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    min-height: 0;
    overflow: hidden;
}

.prompt-editor {
    width: 100%;
    flex: 1;
    min-height: 0; /* Important for flex child to shrink */
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
    
    /* Performance optimizations */
    will-change: contents;
    contain: layout style;
    transform: translateZ(0); /* Force GPU acceleration */
}

.prompt-editor:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 87, 146, 0.1);
}

.prompt-editor:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: wait;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 500;
}

.status-separator {
    color: var(--text-muted);
    font-weight: bold;
}

.status-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-copy-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: scale(1.1);
}

.status-copy-btn:active {
    transform: scale(0.95);
}

.status-copy-btn.copied {
    color: var(--success-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    animation: modalFadeIn var(--transition-medium);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    margin: 5% auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn var(--transition-medium);
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
    background: var(--bg-secondary);
}

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

.modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.form-textarea {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 87, 146, 0.1);
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Loading Styles */
.loading-container {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.modal.loading {
    pointer-events: auto;
}

.modal.loading .modal-content {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-min-width: 250px;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .editor-wrapper,
    .welcome-message {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
        width: 100% !important;
        max-width: none;
    }
    
    .sidebar.collapsed {
        width: 0 !important;
    }
    
    .header-right .btn span {
        display: none;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 2000;
    max-width: 400px;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    transition: all var(--transition-medium);
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.success-notification {
    background: var(--success-color);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.notification-content i {
    font-size: 1.1em;
    flex-shrink: 0;
}

.notification-message {
    font-size: 14px;
    font-weight: 500;
}

/* Custom scrollbars */
.prompt-list::-webkit-scrollbar,
.prompt-editor::-webkit-scrollbar {
    width: 6px;
}

.prompt-list::-webkit-scrollbar-track,
.prompt-editor::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.prompt-list::-webkit-scrollbar-thumb,
.prompt-editor::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.prompt-list::-webkit-scrollbar-thumb:hover,
.prompt-editor::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* History Modal Styles */
.history-modal-content {
    max-width: 800px;
    max-height: 80vh;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 3px;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.history-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

.history-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-primary);
    transition: background-color var(--transition-fast);
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.history-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.history-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.history-commit-hash {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.history-commit-hash:hover {
    background: var(--border-color);
}

.history-message {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.error-container {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.error-container i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--danger-color);
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Diff Modal Styles */
.diff-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 90vw;
    margin-top: 2.5vh; /* Position closer to top instead of center */
    margin-bottom: 2.5vh;
}

.diff-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.diff-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.diff-options {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.diff-viewer {
    max-height: 80vh;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    
    /* CSS containment to isolate diff2html from our app styles */
    contain: layout style;
    
    /* Reset styles that might interfere with diff2html */
    font-family: initial;
    font-size: initial;
    line-height: initial;
    color: initial;
    
    /* Reset table styles that might be inherited */
    --table-border-collapse: separate;
    --table-border-spacing: 0;
}

/* Completely isolate diff2html styles from our app */
.diff-viewer * {
    /* Reset all inherited styles */
    all: revert;
    
    /* Override specific properties that might interfere */
    box-sizing: content-box;
}

.diff-viewer table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

.diff-viewer td, .diff-viewer th {
    margin: 0;
    vertical-align: baseline;
}

/* Allow diff2html to use its default styles, only override colors to match theme */

.d2h-file-collapse {
    display: none !important;
}

.d2h-code-wrapper .d2h-diff-table {
    font-size: 12px;
}

.d2h-code-side-linenumber, .d2h-code-linenumber {
    font-size: 13px;
}

.diff-viewer .d2h-wrapper {
    background: var(--bg-primary);
}

.diff-viewer .d2h-file-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.diff-viewer .d2h-code-line {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.diff-viewer .d2h-ins {
    background: rgb(238, 247, 237); /* rgba(34, 197, 94, 0.2) over white */
}

.diff-viewer .d2h-del {
    background: rgb(252, 218, 218); /* rgba(239, 68, 68, 0.2) over white */
}

.diff-viewer .d2h-code-line-prefix {
    color: var(--text-muted);
}

.diff-viewer .d2h-code-line-ctn {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Hide unnecessary elements for our single-file diff view */
.diff-viewer .d2h-file-stats,
.diff-viewer .d2h-tag {
    display: none !important; /* Hide "changed" tag */
}

.diff-viewer input[type="checkbox"],
.diff-viewer .d2h-file-header input,
.diff-viewer .d2h-files-diff input {
    display: none !important; /* Hide "Viewed" checkbox */
}

/* Also hide the label for the checkbox if it exists */
.diff-viewer .d2h-file-header label[for*="viewed"],
.diff-viewer label[for*="file-"],
.diff-viewer .d2h-files-diff label {
    display: none !important;
}

/* View changes button in history */
.history-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}