/* backoffice/style.css */
/* Purpose: Provides basic styling for the Local RAG Assistant web interface. */

/* 1. Basic body styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* 2. Navigation Menu Styling */
.nav-menu {
    background-color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #333;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

/* User Navigation */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    color: #333;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    object-fit: cover;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.user-avatar:not([src]),
.user-avatar[src=""],
.user-avatar[src*="data:image/svg+xml"] {
    background-color: #6c757d;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.user-dropdown-header .user-name {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.user-dropdown-header .user-email {
    font-size: 12px;
    color: #6c757d;
    margin: 4px 0 0 0;
}

.user-dropdown-actions {
    padding: 8px 0;
}

.user-dropdown-actions button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.user-dropdown-actions button:hover {
    background-color: #f8f9fa;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 3. Admin page specific styling */
.admin-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* 4. Styling for headings (h1, h2) */
h1, h2 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

/* 5. Styling for sections (#upload-section) */
#upload-section, #scrape-section, #bulk-scrape-section, #status-section, #refresh-section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Collapsible section styling */
.collapsible-section {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background-color: #e9ecef;
}

.section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.section-content {
    padding: 25px;
    display: none;
}

.section-content.expanded {
    display: block;
}

/* Knowledge Base Status specific styling */
.kb-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.kb-summary p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.document-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95em;
}

.document-list li:last-child {
    border-bottom: none;
}

.empty-kb {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

#refresh-section {
    text-align: center;
    padding: 20px;
}

#refresh-section button {
    background-color: #3498db;
}

#refresh-section button:hover {
    background-color: #2980b9;
}

/* Enhanced Knowledge Base Status styling */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    text-align: center;
}

.summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.content-section {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.content-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.content-section .section-header:hover {
    background-color: #e9ecef;
}

.content-section .section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.section-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section .section-content {
    padding: 25px;
    display: none;
}

.content-section .section-content.expanded {
    display: block;
}

.toggle-documents-btn, .toggle-websites-btn, .toggle-pages-btn, .toggle-button {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-documents-btn:hover, .toggle-websites-btn:hover, .toggle-button:hover, .toggle-pages-btn {
    background-color: #dee2e6;
    color: #495057;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Document styling */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.document-header strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.page-count {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.page-list {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 8px;
}

/* Document metrics styling */
.document-metrics {
    margin-top: 8px;
    padding: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.85em;
}

.metric-item {
    margin-bottom: 4px;
    color: #495057;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-item strong {
    color: #2c3e50;
    margin-right: 5px;
}

/* Scrape Website Two-Column Layout */
.scrape-form-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.scrape-form-left {
    flex: 1;
    min-width: 0;
}

.scrape-form-right {
    flex: 1;
    min-width: 0;
}

.scrape-form-right .form-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scrape-form-right textarea {
    flex: 1;
    min-height: 120px;
    resize: vertical;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .scrape-form-container {
        flex-direction: column;
        gap: 20px;
    }

    .scrape-form-right textarea {
        min-height: 100px;
    }
}

/* Website styling */
.website-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.website-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    overflow: hidden;
}

.website-info strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.website-url {
    font-size: 0.9em;
    color: #6c757d;
    font-family: monospace;
}

.website-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.website-stats .page-count {
    background-color: #ffc107;
    color: #2c3e50;
}

.pages-container {
    display: none;
    padding: 15px;
    background-color: #ffffff;
}

.pages-container.expanded {
    display: block;
}

.pages-container .page-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-item {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    border-left: 3px solid #17a2b8;
}

.page-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.page-url {
    font-family: monospace;
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 3px;
}

.preview-title {
    font-size: 0.8em;
    color: #17a2b8;
    font-weight: bold;
}

/* 6. Styling for input fields (file input, textarea, url input) */
input[type="file"], textarea, input[type="url"], input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Form group styling for bulk scraping */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.form-group input[type="number"] {
    width: 100px;
}

/* Checkbox label styling */
.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Custom styling for file input button */
input[type="file"]::file-selector-button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #2980b9;
}

/* 7. Styling for buttons */
button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #27ae60;
}

/* 8. Styling for messages (#uploadStatus, #responseDisplay, #scrapeStatus) */
#uploadStatus, #responseDisplay, #scrapeStatus, #bulkScrapeStatus {
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

#responseDisplay {
    min-height: 100px;
    background-color: #e9f7ef;
    border-color: #d4edda;
    white-space: pre-wrap;
}

/* Classes for dynamic status messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 9. Styling for the loading indicator (#loadingIndicator) */
#loadingIndicator {
    display: none;
    font-style: italic;
    color: #555;
    margin-top: 10px;
    font-weight: bold;
}

/* Database Management Styles */
#database-management {
    margin-top: 30px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    background-color: #fdf2f2;
}

#database-management .section-header {
    background-color: #e74c3c;
    color: white;
}

#database-management .section-header:hover {
    background-color: #c0392b;
}

.management-actions {
    padding: 20px;
    text-align: center;
}

.danger-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.danger-button:hover {
    background-color: #c0392b;
}

.danger-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.warning-text {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

/* Delete Button Styles */
.delete-doc-btn, .delete-website-btn, .delete-tag-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.delete-doc-btn:hover, .delete-website-btn:hover, .delete-tag-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Updated Document and Website Header Styles */
.document-header, .website-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.document-info, .website-info {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 0 10px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .nav-logo {
        justify-content: center;
    }

    .logo-image {
        height: 35px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .nav-user {
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 5px;
    }

    .nav-menu {
        padding: 15px;
    }

    .logo-image {
        height: 30px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        text-align: center;
        width: 100%;
    }

    .nav-user {
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .user-info {
        gap: 8px;
    }

    .user-name {
        max-width: 100px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}

/* Document Source Styles */
.source-preview {
    margin-top: 12px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.source-preview:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

source-preview-thumbnail {
    max-width: 180px;
    max-height: 240px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

source-preview-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #6c757d;
}

.preview-title {
    font-weight: 600;
    color: #495057;
}

.preview-name {
    font-size: 11px;
    color: #868e96;
    max-width: 160px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Document Source Modal Styles */
.source-preview-modal {
    background: white;
    border-radius: 12px;
    max-width: 95%;
    max-height: 95%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: #e9ecef;
    color: #333;
}

.modal-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    overflow-y: auto;
}

.full-page-image {
    max-width: 100%;
    max-height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.source-preview-info {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.source-preview-info p {
    margin: 5px 0;
}

/* Multiple Documents Source Container */
.document-source-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

/* Responsive adjustments for Source Preview */
@media (max-width: 768px) {
    .source-preview-thumbnail {
        max-width: 140px;
        max-height: 180px;
    }

    .document-source-container {
        gap: 8px;
    }

    .source-preview {
        padding: 6px;
    }

    .preview-name {
        max-width: 120px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .source-preview-thumbnail {
        max-width: 120px;
        max-height: 160px;
    }

    .document-source-container {
        gap: 6px;
    }

    .source-preview {
        padding: 4px;
    }

    .preview-name {
        max-width: 100px;
        font-size: 9px;
    }
}

/* Upload Progress Styles */
.upload-progress {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-progress {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-header {
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.upload-results {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: pre-line;
    line-height: 1.5;
}

/* Progress bar color states */
.progress-fill[style*="background-color: #17a745"] {
    background-color: #28a745 !important;
}

.progress-fill[style*="background-color: #dc3545"] {
    background-color: #dc3545 !important;
}

.progress-fill[style*="background-color: #17a2b8"] {
    background-color: #17a2b8 !important;
}

/* Chat message markdown formatting */
.message .message-content ul,
.message .message-content ol {
    margin: 8px 0 8px 22px;
    padding-left: 18px;
}

.message .message-content li {
    margin: 4px 0;
}

.message .message-content pre,
.message .message-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.message .message-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    overflow: auto;
}

.message .message-content code {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 4px;
}

/* Chat assistant content typography tweaks */
.assistant-message .message-content h1 {
    display: none;
}

.assistant-message .message-content h2,
.assistant-message .message-content h3,
.assistant-message .message-content h4 {
    font-size: 1em; /* same as body */
    font-weight: 700;
    color: #2c7be5; /* distinct but not too strong */
    margin: 8px 0 6px 0;
    border: 0;
    padding: 0;
}

.assistant-message .message-content p {
    margin: 6px 0;
}

.assistant-message .message-content ul,
.assistant-message .message-content ol {
    margin: 6px 0 6px 18px;
    padding-left: 16px;
}

.assistant-message .message-content li {
    margin: 2px 0;
}

/* Hide Debug button by default; JS shows it if enabled */
#debugQueryButton {
    display: none;
}

.tags-container {
    margin-bottom: 15px;
}

.tags-container input,
.tags-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.tags-container input:focus,
.tags-container textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.tags-container textarea {
    resize: vertical;
    min-height: 80px;
}

.tag-item .tag-input-wrapper, .add-tag-wrapper{
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-item input {
    flex: 1;
}

.tag-item .delete-tag-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #dc3545;
    padding: 0;
    line-height: 1;
}
.add-tag-group {
    padding-top: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.add-tag-wrapper input {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.95em;
}

#addTagBtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #28a745;
    padding: 0;
    line-height: 1;
}

#addTagBtn:hover {
    color: #218838;
}
