/**
 * Sign Library - Styles
 */

* {
    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 {
    background: #ffffff;
    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-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px;
}
.logo-img {
    height: 32px;
}
.active-family {
    margin-left: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.active-family-label {
    color: #666;
    font-weight: 500;
}
.active-family-name {
    color: #f07727;
    font-weight: 600;
}
.sync-status {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #444;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sync-status.syncing {
    color: #f07727;
}
.sync-status.synced {
    color: #5a5;
}
.sync-status.pending {
    color: #888;
}
.sync-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #f07727;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: default;
    /* Dark grid background */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="%23222"/><rect width="1" height="20" fill="%23333"/><rect width="20" height="1" fill="%23333"/></svg>');
}
.canvas.drag-over {
    background: #f5f0e8;
}
.canvas.panning {
    cursor: grabbing;
}
.canvas-content {
    position: absolute;
    transform-origin: 0 0;
    width: 4000px;
    height: 3000px;
    background: #fafafa;
    border: 2px dashed #ccc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.sign {
    position: absolute;
    cursor: grab;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sign:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.sign.dragging {
    cursor: grabbing;
    z-index: 1000;
}
.sign-text {
    font-weight: normal;
    text-align: center;
    line-height: 1.2;
}

/* Details Panel */
.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;
    font-family: 'Roboto', sans-serif;
}
.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 {
    top: 12px;
    right: -40px;
}

/* Details Header */
.details-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #f07727;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

/* Details Content */
.details-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: #1a1a1c;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: #1e1e20;
}
.panel-tab {
    flex: 1;
    padding: 10px 8px;
    font-family: 'Roboto', sans-serif;
    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 Component */
.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-family: 'Roboto', sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}
.search-box input:focus {
    outline: none;
    border-color: #f07727;
}
.search-box input::placeholder {
    color: #666;
}

/* MY SIGNS Tab */
.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-family: 'Roboto', sans-serif;
    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;
}
.library-item-author {
    font-family: 'Roboto', sans-serif;
    font-size: 8px;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 2px;
    width: 100%;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.library-item.on-canvas {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.library-item.on-canvas:hover {
    transform: none;
    background: #333;
}
.library-item-check {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: bold;
}

/* MY FAMILIES Tab Header */
.families-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
}
.families-header-text {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}
/* CATALOGUE Tab */
.catalogue-subtabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: #252528;
}
.catalogue-subtab {
    flex: 1;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.catalogue-subtab:hover {
    color: #999;
}
.catalogue-subtab.active {
    color: #f07727;
    background: rgba(240, 119, 39, 0.1);
}
.catalogue-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.catalogue-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}
.catalogue-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.catalogue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.catalogue-families-list,
.catalogue-signs-list {
    flex: 1;
    overflow-y: auto;
}
#catalogue-signs.drag-over {
    background: rgba(240, 119, 39, 0.1);
    border: 2px dashed #f07727;
}

/* 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;
    font-family: 'Roboto', sans-serif;
}
.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;
    font-family: 'Roboto', sans-serif;
}
.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;
}
.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;
    font-family: 'Roboto', sans-serif;
}
.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;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: #2a2a2d;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
}
.context-menu.visible {
    display: block;
}
.context-menu-item {
    padding: 8px 16px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}
.context-menu-item:hover {
    background: #3a3a3d;
    color: #fff;
}
.context-menu-item.danger {
    color: #e74c3c;
}
.context-menu-item.danger:hover {
    background: #c0392b;
    color: #fff;
}
.context-menu-item.disabled {
    color: #666;
    cursor: not-allowed;
    position: relative;
}
.context-menu-item.disabled:hover {
    background: transparent;
    color: #666;
}
.context-menu-item.disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #aaa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    margin-left: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}
.context-menu-item.disabled:hover::after {
    opacity: 1;
}
.context-menu-divider {
    height: 1px;
    background: #444;
    margin: 4px 0;
}

/* 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;
    font-family: 'Roboto', sans-serif;
}
.delete-modal p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}
.delete-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Order Signs Modal */
.order-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: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.order-modal-overlay.visible {
    display: flex;
}
.order-modal {
    background: #1a1a1d;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #333;
}
.order-modal-header h3 {
    color: #f07727;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}
.order-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.order-modal-close:hover {
    color: #fff;
}
.order-form-section {
    padding: 10px 16px;
    border-bottom: 1px solid #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.order-form-section-full {
    grid-template-columns: 1fr;
}
.order-form-section-full textarea {
    min-height: 80px;
}
.order-form-row {
    margin-bottom: 6px;
}
.order-form-row:last-child {
    margin-bottom: 0;
}
.order-form-row label {
    display: block;
    color: #888;
    font-size: 11px;
    margin-bottom: 2px;
    font-family: 'Roboto', sans-serif;
}
.order-form-row input,
.order-form-row textarea {
    width: 100%;
    padding: 6px 8px;
    background: #252528;
    border: 1px solid #444;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}
.order-form-row input:focus,
.order-form-row textarea:focus {
    outline: none;
    border-color: #f07727;
}
.order-form-row input::placeholder,
.order-form-row textarea::placeholder {
    color: #666;
}
.order-form-row textarea {
    resize: vertical;
    min-height: 36px;
}
.order-signs-list {
    max-height: 350px;
    overflow-y: auto;
}
.order-sign-item {
    padding: 12px 16px;
    margin: 8px 12px;
    background: #222225;
    border-radius: 6px;
    border: 1px solid #333;
}
.order-sign-item:first-child {
    margin-top: 12px;
}
.order-sign-item:last-child {
    margin-bottom: 12px;
}
.order-sign-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.order-sign-preview {
    width: 120px;
    height: 120px;
    background: #252528;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.order-sign-preview svg {
    max-width: 100%;
    max-height: 100%;
}
.order-sign-info {
    flex: 1;
    min-width: 0;
}
.order-sign-name {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    word-break: break-word;
}
.order-sign-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    margin-top: 4px;
}
.order-sign-attachment svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.order-sign-fields {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    align-items: end;
}
.order-sign-fields .order-form-row.full-width {
    grid-column: 1 / -1;
}
.order-form-row input[type='file'] {
    padding: 4px;
    font-size: 12px;
}
.order-form-row input[type='number'] {
    width: 60px;
}
.order-modal-buttons {
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid #333;
}
.btn-primary {
    background: #f07727;
}
.btn-primary:hover {
    background: #d86620;
}

/* Header Row with Add Button */
.details-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}
.details-header-text {
    font-size: 13px;
    font-weight: 700;
    color: #f07727;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}
.add-family-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-family-btn:hover {
    background: #e55a00;
}

/* Family Cards */
.family-card-wrapper {
    margin: 8px 8px 16px 8px;
}
.family-card-header {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 4px;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: text;
}
.family-card-header:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}
.family-card-header.editing {
    background: #333;
    color: #fff;
    outline: 2px solid #f07727;
}
.family-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
    overflow: hidden;
}
.family-card:hover {
    border-color: rgba(240, 119, 39, 0.3);
}
.family-card-wrapper.selected {
    background: rgba(240, 119, 39, 0.1);
    padding: 8px;
    margin: 0 0 16px 0;
}
.family-card-wrapper.selected .family-card {
    border-color: #f07727;
}
.family-card-wrapper.selected .family-card-header {
    color: #f07727;
}

/* Description Section */
.family-desc-section {
    padding: 2px 4px 8px 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
}
.family-desc-arrow {
    color: #666;
    cursor: pointer;
    user-select: none;
    font-size: 9px;
    padding: 2px 0;
    display: inline-block;
    transition: color 0.15s;
}
.family-desc-arrow:hover {
    color: #f07727;
}
.family-desc-content {
    padding: 6px 0 0 12px;
}
.family-desc-text {
    color: #888;
    white-space: pre-wrap;
    line-height: 1.4;
}
.family-desc-textarea {
    width: 100%;
    min-height: 60px;
    padding: 6px 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: #ccc;
    background: #333;
    border: 1px solid #f07727;
    border-radius: 4px;
    resize: vertical;
    line-height: 1.4;
    box-sizing: border-box;
}
.family-desc-textarea:focus {
    outline: none;
    border-color: #ff8a3d;
}

/* Carousel */
.family-card-carousel {
    display: flex;
    align-items: stretch;
    min-height: 80px;
}
.carousel-arrow {
    width: 24px;
    background: #666;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ddd;
    flex-shrink: 0;
    transition:
        background 0.15s,
        color 0.15s;
    z-index: 10;
    position: relative;
}
.carousel-arrow.left {
    border-radius: 6px 0 0 6px;
}
.carousel-arrow.right {
    border-radius: 0 6px 6px 0;
}
.carousel-arrow:hover:not(:disabled) {
    background: #555;
    color: #fff;
}
.carousel-arrow:disabled {
    cursor: default;
    color: transparent;
}
.carousel-viewport {
    flex: 1;
    overflow: visible;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-track {
    display: flex;
    gap: 8px;
    transition: transform 0.2s ease;
    align-items: center;
    padding: 10px 0;
}

/* Sign Previews - Coverflow effect */
.sign-preview {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    transform-origin: center center;
}
.sign-preview.center {
    transform: scale(1.2);
    z-index: 3;
}
.sign-preview.near {
    transform: scale(0.85);
    opacity: 0.8;
    z-index: 2;
}
.sign-preview.far {
    transform: scale(0.7);
    opacity: 0.5;
    z-index: 1;
}
.sign-preview:active {
    cursor: grabbing;
}
.sign-preview-render {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sign-preview-render svg {
    display: block;
}
/* Empty family state */
.family-empty {
    color: #999;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Drag states */
.family-card-wrapper.drag-over:not(.selected) .family-card {
    border-color: #f07727;
    background: #fff8f0;
}
.sign-preview.dragging {
    opacity: 0.5;
}

/* Sign already on canvas - dimmed with checkmark */
.sign-preview.on-canvas {
    opacity: 0.5;
    cursor: default;
}
.sign-preview.on-canvas .sign-preview-render {
    pointer-events: none;
}
.sign-preview-check {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Selection styles */
.sign.selected {
    outline: 3px solid #2196f3;
    outline-offset: 2px;
}
.sign.selected:hover {
    outline-color: #1976d2;
}

/* Marquee selection box */
.selection-box {
    position: fixed;
    border: 2px dashed #f07727;
    background: rgba(240, 119, 39, 0.1);
    pointer-events: none;
    z-index: 9999;
}
