/**
 * Sign Library - Styles
 */

/* Braille Font (embedded base64) */
@font-face {
    font-family: 'Braille';
    src: url(data:font/truetype;base64,AAEAAAANAIAAAwBQT1MvMhfCFX4AAADcAAAATmNtYXCGQZZGAAABLAAAAgBjdnQgBPoFIwAAAywAAAAcZnBnbUHhY1UAAANIAAAAGmdseWaHZ1+KAAADZAAADPpoZWFkvhIGJAAAEGAAAAA2aGhlYQYxAg8AABCYAAAAJGhtdHg30CCaAAAQvAAAANZsb2NhrHmvvwAAEZQAAADEbWF4cAE6AHoAABJYAAAAIG5hbWXgkWQNAAASeAAAAhtwb3N0K1HdMAAAFJQAAAPVcHJlcJSHGHgAABhsAAAAfgAAAuQBkAAFAAYEAAQAAAAAAAQABAAAAAAAADMBTQAAAQEGCQYBAQEBAwAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAIAB+A3r/IABfA3oA4AAAAAAAAgABAAAAAAAUAAMAAQAAARoAAAEGAAABAAAAAAAAAAECAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAIwBz4tKzEFOUAjLggmKhA2BAsVNCQZOCgXMzIlQR87BkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcLDU9GzpCAwkNHBQPHhYOHQoMESAYEyIaEiEnKTwvPzddXl9gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQA5gAAAAYABAABAAIAfgCg//8AAAAgAKD//wAAAAAAAQAGAAQAAAACADAABwA+AC0AKwAxAAUAOQBAACMALgAIACYAKgAQADYABAALABUANAAkABkAOAAoABcAMwAyACUAQQAfADsABgBDAEQARQBGAEcASABJAEoASwBMAE0ATgBPAFAAUQBSAFMAVABVAFYAVwBYAFkAWgBbAFwALAA1AD0AGwA6AEIAAwAJAA0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HMxMzQ1CGRvdHMyMzQ1CWRvdHMxMjM0NQZkb3RzMTYGZG90czI2B2RvdHMxMjYGZG90czM2B2RvdHMxMzYHZG90czIzNghkb3RzMTIzNgZkb3RzNDYHZG90czE0Ngdkb3RzMjQ2CGRvdHMxMjQ2B2RvdHMzNDYIZG90czEzNDYIZG90czIzNDYJZG90czEyMzQ2BmRvdHM1Ngdkb3RzMTU2B2RvdHMyNTYIZG90czEyNTYHZG90czM1Nghkb3RzMTM1Nghkb3RzMjM1Nglkb3RzMTIzNTYHZG90czQ1Nghkb3RzMTQ1Nghkb3RzMjQ1Nglkb3RzMTI0NTYIZG90czM0NTYJZG90czEzNDU2CWRvdHMyMzQ1Ngpkb3RzMTIzNDU2BERPVDQERE9UMQZET1RTMTIGRE9UUzE0B0RPVFMxNDUGRE9UUzE1B0RPVFMxMjQIRE9UUzEyNDUHRE9UUzEyNQZET1RTMjQHRE9UUzI0NQZET1RTMTMHRE9UUzEyMwdET1RTMTM0CERPVFMxMzQ1B0RPVFMxMzUIRE9UUzEyMzQJRE9UUzEyMzQ1CERPVFMxMjM1B0RPVFMyMzQIRE9UUzIzNDUHRE9UUzEzNghET1RTMTIzNghET1RTMJQ1NghET1RTMTM0NglET1RTMTM0NTYIRE9UUzEzNTYHRE9UUzI0NghET1RTMTI1NglET1RTMTI0NTYGRE9UUzQ1AAAAAbsABwAGAAYA6BlwRWi8AAIAAgEUAAYABSVEGHBFaGBEALsACAAKAAoAORlwRWi8AAUABQEUAAoABSVEGHBFaCCKYCC4AAkjRGBEtB4bGRMRS1JYsQsAKxtLUlixDQArG0tSWLELACsbS1JYsQ0AKxtLUlixDAArWVlZWVkiAAA=)
        format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Hide number input spinners */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type='number'] {
    -moz-appearance: textfield;
}
body {
    font-family: 'Roboto', sans-serif;
    background: #1a1a1c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.header {
    background: #252627;
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    border-bottom: 1px solid #333;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px;
}
.logo-img {
    height: 32px;
}
.save-status {
    margin-left: auto;
    font-size: 11px;
    color: #5a5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.save-status.saving {
    color: #f07727;
}

/* ============================================
   MAIN CONTENT AREA (Tab Bar + Thumbnail Grid)
   ============================================ */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 0;
    transition: margin-left 0.25s ease;
}
.details-panel.visible ~ .main-area {
    margin-left: 320px;
}
.main-area.drag-over {
    background: rgba(240, 119, 39, 0.05);
}

/* Tab Bar */
.sl-tab-bar {
    display: flex;
    align-items: center;
    background: #252627;
    border-bottom: 1px solid #333;
    min-height: 40px;
    padding: 0 8px;
    gap: 2px;
    overflow-x: auto;
    flex-shrink: 0;
}
.sl-tab-bar::-webkit-scrollbar {
    height: 3px;
}
.sl-tab-bar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}
.sl-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    position: relative;
}
.sl-tab-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
}
.sl-tab-btn.active {
    color: #f07727;
    border-bottom-color: #f07727;
}
.sl-tab-btn .tab-close {
    font-size: 14px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 2px;
}
.sl-tab-btn .tab-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}
.sl-tab-btn .tab-count {
    font-size: 9px;
    background: #444;
    color: #aaa;
    padding: 1px 5px;
    border-radius: 8px;
}
.sl-tab-btn.active .tab-count {
    background: rgba(240, 119, 39, 0.3);
    color: #f07727;
}
.sl-tab-bar-hint {
    color: #555;
    font-size: 11px;
    font-style: italic;
    padding: 0 12px;
    white-space: nowrap;
}

/* Tab Content / Thumbnail Grid */
.sl-tab-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}
.sl-tab-content.drag-over-csv {
    background: rgba(240, 119, 39, 0.08);
    outline: 2px dashed #f07727;
    outline-offset: -8px;
}

.sl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #555;
    text-align: center;
}
.sl-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}
.sl-empty-text {
    font-size: 13px;
    max-width: 300px;
    line-height: 1.5;
}

/* Thumbnail Grid */
.sl-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    align-content: start;
}

/* Thumbnail Card */
.sl-thumb-card {
    background: #252627;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}
.sl-thumb-card:hover {
    border-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.sl-thumb-card.selected {
    border-color: #f07727;
}
.sl-thumb-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #1e1e20;
    min-height: 100px;
}
.sl-thumb-preview svg {
    max-width: 100%;
    max-height: 120px;
}
.sl-thumb-info {
    padding: 8px 10px;
    border-top: 1px solid #333;
}
.sl-thumb-label {
    font-size: 10px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sl-thumb-messages {
    font-size: 11px;
    color: #ccc;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add Entry Card */
.sl-thumb-add {
    background: transparent;
    border: 2px dashed #444;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    cursor: pointer;
    transition: all 0.15s;
    color: #555;
}
.sl-thumb-add:hover {
    border-color: #f07727;
    color: #f07727;
}
.sl-thumb-add-icon {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 4px;
}
.sl-thumb-add-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   DETAILS PANEL (Browse sidebar)
   ============================================ */
.details-panel {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 320px;
    background: #252627;
    border-right: 1px solid #444;
    transform: translateX(-320px);
    transition: transform 0.25s ease;
    z-index: 900;
    display: flex;
    flex-direction: column;
}
.details-panel.visible {
    transform: translateX(0);
}

/* Orange Tab */
.details-tab {
    position: absolute;
    left: 334px;
    top: calc(50% - 55px);
    transform: rotate(90deg);
    transform-origin: left center;
    background: #f07727;
    color: #fff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
    user-select: none;
    transition: background 0.15s;
}
.details-tab:hover {
    background: #ff8a3d;
}
.details-panel.visible .details-tab {
    background: #d06620;
}

/* Panel Buttons */
.panel-btn {
    position: absolute;
    z-index: 100;
    background: rgba(40, 40, 45, 0.9);
    color: #888;
    font-size: 14px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    border: 1px solid #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.panel-btn:hover {
    background: rgba(60, 60, 65, 0.95);
    color: #fff;
    border-color: #777;
}
.help-btn {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: #1e1e20;
}
.panel-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.panel-tab:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
}
.panel-tab.active {
    color: #f07727;
}
.panel-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #f07727;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}
.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Unified Search Box */
.search-box {
    padding: 8px 12px;
    border-bottom: 1px solid #333;
}
.search-box input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1a1a1d;
    color: #fff;
    font-size: 12px;
    box-sizing: border-box;
}
.search-box input:focus {
    outline: none;
    border-color: #f07727;
}
.search-box input::placeholder {
    color: #666;
}

/* Signs Grid */
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 90px));
    gap: 8px;
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
    justify-content: center;
}
.library-item {
    position: relative;
    background: #333;
    border-radius: 4px;
    padding: 6px;
    cursor: grab;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 90px;
    box-sizing: border-box;
}
.library-item:hover {
    background: #444;
    transform: scale(1.02);
}
.library-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}
.library-item-preview {
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.library-item-preview svg {
    max-width: 100%;
    max-height: 100%;
}
.library-item-name {
    font-size: 9px;
    color: #aaa;
    text-align: center;
    margin-top: 4px;
    width: 100%;
    max-width: 80px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* View Controls Bar */
.view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    border-bottom: 1px solid #333;
    background: #1e1e20;
    flex-shrink: 0;
}
.view-toggle {
    display: flex;
    gap: 2px;
}
.view-btn {
    background: #333;
    color: #888;
    border: 1px solid #444;
    border-radius: 3px;
    width: 26px;
    height: 24px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
}
.view-btn:hover {
    background: #444;
    color: #ccc;
}
.view-btn.active {
    background: #f07727;
    color: #fff;
    border-color: #f07727;
}
.sort-select {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}
.sort-select:focus {
    outline: none;
    border-color: #f07727;
}

/* List View */
.library-grid.list-view {
    grid-template-columns: 1fr;
}
.library-grid.list-view .library-item {
    max-width: none;
    width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
}
.library-grid.list-view .library-item:hover {
    transform: none;
}
.list-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
}
.library-grid.list-view .library-item-preview {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
}
.list-item-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}
.list-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.library-grid.list-view .library-item-name {
    font-size: 11px;
    text-align: left;
    margin-top: 0;
    max-width: none;
}
.list-item-summary {
    font-size: 9px;
    color: #666;
}
.list-item-expand {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.list-item-expand:hover {
    color: #f07727;
}
.library-item.expanded .list-item-expand {
    transform: rotate(90deg);
    color: #f07727;
}

/* Expandable Details */
.list-item-details {
    display: none;
    padding: 0 8px 8px 8px;
    border-top: 1px solid #444;
}
.library-item.expanded .list-item-details {
    display: block;
}

/* Sign Details Panel (mirrors ADA Sign Designer) */
.sl-details-section {
    margin-bottom: 0;
}
.sl-details-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background: #1b1c1d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.sl-details-section-title:hover {
    color: #aaa;
}
.sl-collapse-arrow {
    font-size: 8px;
    transition: transform 0.15s ease;
}
.sl-details-section.collapsed .sl-collapse-arrow {
    transform: rotate(-90deg);
}
.sl-details-section.collapsed .sl-details-item {
    display: none;
}
.sl-details-item {
    padding: 8px 16px;
    border-bottom: 1px solid #333;
}
.sl-details-item:last-child {
    border-bottom: none;
}
.sl-details-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 4px;
}
.sl-details-props {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}
.sl-details-prop {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}
.sl-details-prop-label {
    color: #777;
}
.sl-details-prop-value {
    color: #ccc;
}
.sl-details-notes {
    font-size: 11px;
    color: #ccc;
    line-height: 1.5;
    padding: 4px 0;
    white-space: pre-wrap;
}

/* Folder Indicator */
.folder-indicator {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #1a1a1c;
    border-bottom: 1px solid #333;
    gap: 6px;
}
.folder-label {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.folder-path {
    font-size: 10px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.folder-btn {
    background: #333;
    color: #888;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}
.folder-btn:hover {
    background: #444;
    color: #fff;
}

/* Reconnect Banner */
.reconnect-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(240, 119, 39, 0.15);
    border-bottom: 1px solid #f07727;
    font-size: 11px;
    color: #f07727;
}
.reconnect-btn {
    background: #f07727;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.reconnect-btn:hover {
    background: #ff8c42;
}

/* No Folder State */
.no-folder-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.no-folder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.no-folder-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Collections Search Row */
.collections-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.collections-search-row input {
    flex: 1;
    min-width: 0;
}
.add-collection-btn {
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #f07727;
    border: none;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s;
}
.add-collection-btn:hover {
    background: #e55a00;
}

/* Collection Cards */
.details-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: #1a1a1c;
}
.collection-card {
    margin: 4px 8px;
    padding: 10px 12px;
    background: #252627;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.collection-card:hover {
    border-color: #555;
}
.collection-card.selected {
    border-color: #f07727;
    background: rgba(240, 119, 39, 0.08);
}
.collection-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
}
.collection-card.selected .collection-card-name {
    color: #f07727;
}
.collection-card-meta {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* ============================================
   BUTTONS & MODALS
   ============================================ */
.btn {
    padding: 6px 14px;
    background-color: #444;
    border: none;
    border-radius: 3px;
    color: #ccc;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn:hover {
    background-color: #555;
    color: #fff;
}
.btn-primary {
    background: #f07727;
    color: #fff;
}
.btn-primary:hover {
    background: #ff8c42;
}
.btn-danger {
    background: #c0392b;
    color: #fff;
}
.btn-danger:hover {
    background: #e74c3c;
}

/* Controls Modal */
.controls-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.controls-modal {
    background: #1a1a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.controls-header {
    font-size: 18px;
    font-weight: 600;
    color: #f07727;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.controls-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.controls-list li {
    padding: 6px 0;
    color: #ccc;
    border-bottom: 1px solid #2a2a2d;
    font-size: 13px;
}
.controls-list li:last-child {
    border-bottom: none;
}
.controls-list strong {
    color: #fff;
    display: inline-block;
    min-width: 100px;
}
.controls-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}
.delete-modal-overlay.visible {
    display: flex;
}
.delete-modal {
    background: #1a1a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.delete-modal h3 {
    color: #e74c3c;
    margin-bottom: 12px;
}
.delete-modal p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.delete-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================
   EDIT ENTRY MODAL
   ============================================ */
.edit-entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}
.edit-entry-overlay.visible {
    display: flex;
}
.edit-entry-modal {
    background: #1a1a1d;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.edit-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}
.edit-entry-header h3 {
    color: #f07727;
    font-size: 15px;
    margin: 0;
}
.edit-entry-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.edit-entry-close:hover {
    color: #fff;
}
.edit-entry-body {
    display: flex;
    gap: 16px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}
.edit-entry-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252627;
    border-radius: 6px;
    padding: 16px;
    min-height: 200px;
}
.edit-entry-preview svg {
    max-width: 100%;
    max-height: 300px;
}
.edit-entry-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.edit-entry-inputs label {
    display: block;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.edit-entry-inputs textarea {
    width: 100%;
    padding: 8px 10px;
    background: #252528;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
    min-height: 40px;
    box-sizing: border-box;
}
.edit-entry-inputs textarea:focus {
    outline: none;
    border-color: #f07727;
}
.edit-entry-inputs textarea::placeholder {
    color: #666;
}
.edit-entry-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
    align-items: center;
}

/* ============================================
   EXPORT MODALS
   ============================================ */
.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}
.export-modal-overlay.visible {
    display: flex;
}
.export-modal {
    background: #1a1a1d;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}
.export-modal-header h3 {
    color: #f07727;
    font-size: 15px;
    margin: 0;
}
.export-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.export-field {
    display: flex;
    align-items: center;
    gap: 12px;
}
.export-field label {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    min-width: 110px;
}
.export-field input[type='number'],
.export-field input[type='text'],
.export-field select,
.export-field textarea {
    flex: 1;
    padding: 6px 10px;
    background: #252528;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}
.export-field textarea {
    resize: vertical;
    min-height: 60px;
}
.export-field input:focus,
.export-field select:focus,
.export-field textarea:focus {
    outline: none;
    border-color: #f07727;
}
.export-field input[type='checkbox'] {
    accent-color: #f07727;
    width: 16px;
    height: 16px;
}
.export-modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
    justify-content: flex-end;
}
.export-modal-footer .btn-primary.generating {
    opacity: 0.7;
    pointer-events: none;
}

/* Export Buttons in Tab Bar */
.sl-tab-bar-export {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 0 4px;
    flex-shrink: 0;
}
.sl-export-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 3px;
    color: #888;
    font-size: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.sl-export-btn:hover {
    background: rgba(240, 119, 39, 0.15);
    border-color: #f07727;
    color: #f07727;
}
.sl-export-btn svg {
    flex-shrink: 0;
}
