@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    /* Ristet Rug Color Palette */
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-border: #e5dfd7;
    --color-primary: #8e631f;          /* Ristet Rug Brown */
    --color-primary-hover: #a5732a;    /* Lighter Brown */
    --color-secondary: #f9f7f4;        /* Very light beige */
    --color-secondary-hover: #f1ebe3;  /* Light beige hover */
    --color-text: #2d2419;             /* Dark brown - softer than black */
    --color-text-light: #6b5d52;       /* Medium brown */
    --color-text-lighter: #a8a29e;
    --color-accent: #a5bf75;           /* Ristet Rug Green */
    --color-accent-hover: #92ab65;
    --shadow-sm: 0 1px 2px 0 rgba(142, 99, 31, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(142, 99, 31, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    overflow: hidden;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: var(--color-secondary);
}

.chevron {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.app[data-sidebar="closed"] .chevron {
    transform: rotate(180deg);
}

.header-title {
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.header-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-top: 0.125rem;
}

.header-right {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 2px 8px rgba(142, 99, 31, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.icon {
    width: 1rem;
    height: 1rem;
}

.icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

/* Content Layout */
.content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 20rem;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s, transform 0.3s;
}

.sidebar-closed {
    width: 0;
    overflow: hidden;
}

.sidebar-section {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* Type buttons */
.type-buttons {
    display: flex;
    gap: 0.5rem;
}

.type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--color-secondary);
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.type-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Search */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--color-text-lighter);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(28, 25, 23, 0.1);
}

/* Tag filter - Dropdown style */
.tag-dropdown-container {
    position: relative;
    margin-bottom: 0.75rem;
}

.tag-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.tag-dropdown-btn:hover {
    background: var(--color-secondary-hover);
    border-color: var(--color-text-lighter);
}

.tag-dropdown-btn .chevron-down {
    transition: transform 0.2s;
}

.tag-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.tag-dropdown-section {
    padding: 0.5rem;
}

.tag-dropdown-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.tag-dropdown-item:hover {
    background: var(--color-secondary);
}

.tag-dropdown-item input[type="checkbox"] {
    cursor: pointer;
}

.tag-dropdown-item span {
    flex: 1;
    font-size: 0.875rem;
}

.tag-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.5rem 0;
}

/* Tag chips */
.tag-chips-container {
    margin-bottom: 0.75rem;
}

.tag-chips-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-chip.active {
    background: var(--color-primary);
    color: white;
}

.tag-chip.active:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
}

.tag-chip.inactive {
    background: var(--color-secondary);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.tag-chip.inactive:hover {
    background: var(--color-secondary-hover);
    color: var(--color-text);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.tag-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-chip.active .tag-chip-remove {
    color: white;
}

.tag-chip.active .tag-chip-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tag-chip.inactive .tag-chip-remove {
    color: var(--color-text-light);
}

.tag-chip.inactive .tag-chip-remove:hover {
    background: var(--color-border);
}

.tag-chip-remove .icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

/* Filter actions */
.filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 9999px;
    background: var(--color-secondary);
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.clear-tags {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-tags:hover {
    color: var(--color-text);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.show-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.clear-tags-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-tags-btn:hover {
    background: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-text-lighter);
}

/* Loading states */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--color-text-light);
    animation: fadeIn 0.2s ease-in;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-secondary);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loading-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Skeleton screens */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-secondary) 0%,
        var(--color-secondary-hover) 50%,
        var(--color-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-diagram {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* File list */
.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    scroll-behavior: smooth;
}

.file-item {
    width: 100%;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
}

.file-item:hover {
    background: var(--color-secondary);
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(142, 99, 31, 0.05);
}

.file-item.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateX(0);
}

.file-item-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--color-text-lighter);
}

.file-item.active .file-item-icon {
    color: white;
}

.file-item-content {
    flex: 1;
    min-width: 0;
}

.file-item-title {
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item.active .file-item-title {
    color: white;
}

.file-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.file-item-tag {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: var(--color-secondary);
    color: var(--color-text-light);
}

.file-item-tag.no-tags {
    font-style: italic;
    opacity: 0.6;
}

.file-item.active .file-item-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.file-item-version {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
    margin-left: auto;
}

.file-item.active .file-item-version {
    color: rgba(255, 255, 255, 0.7);
}

.empty-state {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
}

.file-header {
    padding: 1rem 1.5rem;
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    animation: slideInFromRight 0.3s ease-out;
}

.file-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-title {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.file-version {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.separator {
    color: var(--color-border);
}

.file-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
}

.file-tag.no-tags {
    background: var(--color-secondary-hover);
    color: var(--color-text-lighter);
    font-style: italic;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success .toast-icon {
    background: var(--color-accent);
    color: white;
}

.toast-error .toast-icon {
    background: #bc181b;
    color: white;
}

.toast-info .toast-icon {
    background: var(--color-primary);
    color: white;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.toast-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0.25rem;
    color: var(--color-text-lighter);
    cursor: pointer;
    transition: all 0.2s;
}

.toast-close:hover {
    background: var(--color-secondary);
    color: var(--color-text);
}

.file-viewer {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: white;
}

.file-viewer > * {
    animation: fadeIn 0.3s ease-in;
}

.file-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.file-viewer video {
    max-width: 100%;
    max-height: 100%;
}

.file-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.empty-viewer {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    gap: 1rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    opacity: 0.5;
}

.video-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    max-width: 1280px;
    max-height: 720px;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Responsive video for smaller screens */
@media (max-width: 1400px) {
    .video-container iframe {
        max-width: 90%;
        max-height: calc(90vw * 9 / 16);
    }
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafaf9;
    padding: 0;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hotspot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hotspot-zone {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show all hotspots faintly when hovering over diagram container */
.diagram-container:hover .hotspot-zone {
    fill: rgba(142, 99, 31, 0.08);
    stroke: rgba(142, 99, 31, 0.3);
    stroke-width: 1.5;
}

/* Highlight the specific hotspot being hovered */
.diagram-container:hover .hotspot-zone:hover {
    fill: rgba(142, 99, 31, 0.35);
    stroke: rgba(142, 99, 31, 1);
    stroke-width: 4;
    filter: drop-shadow(0 0 20px rgba(142, 99, 31, 0.7));
    transform: scale(1.02);
}

.hotspot-zone:active {
    fill: rgba(165, 191, 117, 0.4);
    stroke: rgba(165, 191, 117, 1);
    stroke-width: 5;
}

/* Demo banner */
.demo-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

/* Scrollbar styling */
.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: transparent;
}

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

.file-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-lighter);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 20;
        box-shadow: var(--shadow-md);
    }
    
    .sidebar-closed {
        transform: translateX(-100%);
    }
    
    .type-buttons {
        flex-direction: column;
    }
    
    .type-btn {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ============================================================================
   SIMPLE METADATA EDITOR STYLES
   Add to styles.css
   ============================================================================ */

/* Modal overlay */
.simple-meta-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.simple-meta-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.simple-meta-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-meta-header h2 {
    margin: 0;
    font-size: 18px;
    color: #2d2419;
}

.simple-meta-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.simple-meta-close:hover {
    background: #f0f0f0;
}

/* Body */
.simple-meta-body {
    padding: 20px;
}

.simple-form-group {
    margin-bottom: 16px;
}

.simple-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d2419;
    font-size: 14px;
}

.simple-form-group input[type="text"],
.simple-form-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.simple-form-group input:focus {
    outline: none;
    border-color: #8e631f;
}

/* Tag grid */
.simple-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 10px;
    background: #f9f7f4;
    border-radius: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.meta-tag-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
}

.meta-tag-label input {
    margin-right: 5px;
    cursor: pointer;
}

.meta-tag-label input:checked {
    accent-color: #8e631f;
}

/* Preview box */
.simple-preview-box {
    background: #f0ede8;
    border: 2px solid #8e631f;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.simple-preview-box strong {
    display: block;
    margin-bottom: 6px;
    color: #8e631f;
    font-size: 13px;
}

.simple-preview-box #metaPreview {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    padding: 6px;
    background: white;
    border-radius: 4px;
}

/* Info box */
.simple-info-box {
    background: #e8f4f8;
    border-left: 4px solid #2196F3;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Footer */
.simple-meta-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.simple-btn-primary,
.simple-btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.simple-btn-primary {
    background: #8e631f;
    color: white;
}

.simple-btn-primary:hover {
    background: #a5732a;
}

.simple-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.simple-btn-secondary:hover {
    background: #e0e0e0;
}

/* Mobile */
@media (max-width: 768px) {
    .simple-meta-content {
        width: 95%;
    }
    
    .simple-tag-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}


/* ============================================================================
   END SIMPLE METADATA EDITOR STYLES
   ============================================================================ */

/* ============================================================================
   ENHANCED METADATA EDITOR - Additional styles
   Add to simple_metadata_styles.css or to styles.css
   ============================================================================ */

/* Warning box (for hotspot warnings) */
.simple-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 16px;
}

.simple-warning-box strong {
    color: #ff9800;
}

.simple-warning-box code {
    display: block;
    margin-top: 8px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    border: 1px solid #ff9800;
}

/* ============================================================================
   END ADDITIONAL STYLES
   ============================================================================ */

/* ============================================================================
   HOTSPOT CREATOR MODAL STYLES
   Add to styles.css
   ============================================================================ */

/* Hotspot modal overlay */
.hotspot-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

/* Hotspot modal content */
.hotspot-modal-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    height: 95%;
    max-width: 1600px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Hotspot modal header */
.hotspot-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f7f4;
    border-radius: 12px 12px 0 0;
}

.hotspot-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #8e631f;
}

.hotspot-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all 0.2s;
}

.hotspot-modal-close:hover {
    background: rgba(142, 99, 31, 0.1);
    color: #8e631f;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hotspot-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .hotspot-modal-header {
        border-radius: 0;
    }
}

/* ============================================================================
   END HOTSPOT CREATOR MODAL STYLES
   ============================================================================ */

/* ============================================================================
   HOTSPOT HOVER EFFECTS - Komplementære Farver
   ============================================================================ */

/* Subtil hover med cyan glow - skiller sig ud fra de brune farver */
.hotspot-overlay rect,
.hotspot-overlay circle,
.hotspot-overlay ellipse,
.hotspot-overlay polygon {
    transition: all 0.2s ease;
    cursor: pointer;
}

.hotspot-overlay rect:hover,
.hotspot-overlay circle:hover,
.hotspot-overlay ellipse:hover,
.hotspot-overlay polygon:hover {
    fill: rgba(0, 188, 212, 0.35) !important;      /* Cyan med 35% opacity */
    stroke: #00acc1 !important;                    /* Medium cyan stroke */
    stroke-width: 2.5 !important;
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.6));  /* Cyan glow */
}

/* ============================================================================
   END HOTSPOT HOVER EFFECTS
   ============================================================================ */


