body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    overflow: hidden;
}

.header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 20px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.button:hover {
    background-color: #45a049;
}

.main-container {
    display: flex;
    height: calc(100vh - 60px);
    position: relative;
}

.toolbar {
    width: 60px;
    background-color: #555;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This will push the library button to the bottom */
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.toolbar-spacer {
    flex-grow: 1; /* This will take up all available space */
}

.tool {
    width: 40px;
    height: 40px;
    background-color: #777;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.tool:hover, .tool.active {
    background-color: #999;
}

.canvas-container {
    flex-grow: 1;
    background-color: #ddd;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.canvas-wrapper {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transform-origin: center center;
}

#floorPlanCanvas {
    display: block;
}

.sidebar {
    width: 250px;
    background-color: #f8f8f8;
    padding: 15px;
    border-left: 1px solid #ccc;
    overflow-y: auto;
}

.sidebar h3 {
    margin-top: 0;
}

.property-group {
    margin-bottom: 15px;
}

.property-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

input, select {
    width: 100px;
}

.library-item {
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.library-item:hover {
    background-color: #eee;
}

.library-item.selected {
    background-color: #e0e0e0;
}

.library-item-preview {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Data Fields Styles - Add to styles.css */

#dataFieldsProperties {
    margin-top: 15px;
}

.data-field {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8f8f8;
    transition: background-color 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-field:hover {
    background-color: #f0f0f0;
}

.field-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    gap: 8px;
}

.field-offsets {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.field-offsets input {
    width: 40px;
    text-align: center;
}

.field-visibility {
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-font-size {
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-font-size-input {
    width: 40px;
    text-align: center;
}

.data-field-controls {
    margin-top: 15px;
}

.delete-field {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 2px 6px;
    border-radius: 3px;
}

.delete-field:hover {
    background-color: #f5c6cb;
}

/* Field label is now hidden */
.field-label {
    display: none;
}

/* Show field display label with improved styling */
.field-display-label {
    font-weight: 500;
    color: #444;
}

/* Enhanced style for input fields */
.data-field input[type="text"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    transition: border-color 0.2s;
    width: 100%;
}

.data-field input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Checkbox styling */
.field-visibility input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Add Data Field button styling */
#addDataFieldBtn {
    width: 100%;
    padding: 8px 16px;
    font-weight: 500;
}

/* Hidden template */
#dataFieldTemplate {
    display: none;
}

/* Custom color picker for future enhancements */
.color-picker {
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    max-width: 80%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.zoom-button {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.zoom-button:hover {
    background-color: #f0f0f0;
}

.zoom-text {
    width: 60px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Updated status indicator styles */
.status-online {
    color: #4CAF50;
    font-weight: bold;
}

.status-offline {
    color: #f44336;
    font-weight: bold;
}

.status-local {
    color: #2196F3;
    font-weight: bold;
}

.status-neutral {
    color: #9e9e9e;
    font-weight: bold;
}

.connection-status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

/* Text tool specific styles */

.style-buttons {
    display: flex;
    gap: 5px;
}

.style-button {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.style-button.active {
    background-color: #ddd;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
}

#textContent {
    width: 100%;
    resize: vertical;
    min-height: 60px;
}

/* Text editing cursor */
.canvas-container.text-mode {
    cursor: text;
}

/* Text selection highlight */
.text-selection-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #0066ff;
    border-radius: 50%;
}

#connectionStatus {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}

.publish-button {
    margin: 0 !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    background-color: #2196F3 !important;
}

.publish-button:hover {
    background-color: #0b7dda !important;
}

/* Toggle switch styles - hidden now */
.toggle-container {
    display: none;
}

.library-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.last-sync {
    font-size: 0.8em;
    color: #666;
}

/* Mini buttons for plan and library item actions */
.mini-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 5px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 12px;
}

.mini-button:hover {
    background-color: #e0e0e0;
}

.delete-item {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
}

.plan-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Library categories */
.library-category {
    margin-bottom: 20px;
}

.library-category h4 {
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* Loading indicators */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 2000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.loading-text {
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

/* Additional responsive adjustments */
@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ccc;
    }
    
    .toolbar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: flex-end; /* Push library button to the right in mobile view */
    }
    
    .toolbar-spacer {
        display: none; /* No need for spacer in horizontal layout */
    }
}

/* Revision history styling */
.revisions-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.revision-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.revision-item:last-child {
    border-bottom: none;
}

.revision-item:hover {
    background-color: #f9f9f9;
}

.revision-item.current {
    background-color: #f0f7ff;
    border-left: 3px solid #2196F3;
}

.revision-number {
    font-weight: bold;
    color: #333;
}

.revision-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

.revision-details {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    font-size: 0.85em;
    color: #777;
}

.revision-details small {
    margin-bottom: 2px;
}

.revision-actions {
    display: flex;
    align-items: center;
}

.current-label {
    background-color: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Dashboard styles */
.dashboard-container {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.dashboard-header p {
    color: #666;
    margin-top: 8px;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 25px;
}

.dashboard-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Recent Booths Section */
.recent-booths {
    grid-column: 1 / 3;
}

.recent-booths-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.recent-booth-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.recent-booth-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recent-booth-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.booth-meta {
    color: #666;
    font-size: 0.9em;
}

.booth-meta div {
    margin-bottom: 4px;
}

.booth-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
}

.booth-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.booth-type.local {
    background-color: #e3f2fd;
    color: #1976d2;
}

.booth-type.shared {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* Action Buttons Section */
.action-buttons {
    display: flex;
    flex-direction: column;
}

.dashboard-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-button {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.dashboard-button:hover {
    background-color: #f9f9f9;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button-icon {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.dashboard-button:nth-child(2) .button-icon {
    background-color: #2196F3;
}

.button-text {
    display: flex;
    flex-direction: column;
}

.button-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.button-desc {
    color: #666;
    font-size: 13px;
}

/* Redesigned Library Dashboard CSS */

/* Library Manager Section */
.library-manager {
    grid-column: 1 / 3;
    overflow: hidden;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.library-header-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background-color: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-button.add-item {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.action-button.add-item:hover {
    background-color: #c8e6c9;
}

.action-button.add-folder {
    background-color: #e3f2fd;
    color: #1565c0;
}

.action-button.add-folder:hover {
    background-color: #bbdefb;
}

.action-button svg {
    flex-shrink: 0;
}

/* Search Bar */
.library-manager-searchbar {
    margin-bottom: 20px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Dashboard Library Explorer Styles */

/* Modal positioning and structure */
.library-explorer-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.library-explorer-modal .modal-content {
    width: 85%;
    max-width: 1200px;
    background-color: white;
    border-radius: 5px;
    position: relative;
    margin: 0 auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Modal header */
.library-explorer-modal .modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.library-explorer-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
}

/* Modal body */
.library-explorer-body {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    flex: 1;
    overflow: hidden;
    max-height: calc(85vh - 130px); /* Accounting for header and footer */
}

/* Breadcrumb */
.library-explorer-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    user-select: none;
}

.breadcrumb-item svg {
    margin-right: 5px;
}

.breadcrumb-item:hover {
    background-color: #e0e0e0;
}

.breadcrumb-item.current {
    font-weight: bold;
    background-color: #e8f5e9;
    color: #388e3c;
    cursor: default;
}

.breadcrumb-separator {
    color: #666;
    margin: 0 2px;
}

/* Toolbar */
.library-explorer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
}

.search-wrapper input {
    width: 100%;
    padding: 8px 12px 8px 38px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.explorer-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.action-button.add-item {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.action-button.add-folder {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* Content container */
.library-explorer-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

/* Folders section */
.explorer-folders {
    margin-bottom: 20px;
}

.explorer-folders h4, 
.explorer-items h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.explorer-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.explorer-folder {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.explorer-folder:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.explorer-folder-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
    border-radius: 8px;
    margin-right: 12px;
    color: #1976d2;
    flex-shrink: 0;
}

.explorer-folder-info {
    flex: 1;
}

.explorer-folder-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.explorer-folder-count {
    font-size: 12px;
    color: #666;
}

.explorer-folder .delete-folder {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.explorer-folder:hover .delete-folder {
    opacity: 1;
}

/* Items section */
.explorer-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.explorer-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    height: 170px;
}

.explorer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.explorer-item.selected {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.explorer-item-preview {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 5px;
    overflow: hidden;
}

.explorer-item-preview svg {
    max-width: 100%;
    max-height: 100%;
}

.explorer-item-info {
    margin-top: auto;
}

.explorer-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explorer-item-dimensions {
    font-size: 12px;
    color: #666;
}

.explorer-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.explorer-item:hover .explorer-item-actions {
    opacity: 1;
}

/* Modal footer */
.library-explorer-modal .modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

/* Empty states */
.explorer-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.explorer-empty-state .empty-state-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #bdbdbd;
}

.explorer-empty-state .empty-state-text {
    color: #757575;
    font-size: 14px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .library-explorer-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .library-explorer-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .explorer-actions {
        width: 100%;
    }
    
    .explorer-folders-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .explorer-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Library Sections Container */
.library-sections-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: 450px;
    overflow: hidden;
}

.library-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title svg {
    color: #616161;
    margin-right: 8px;
}

.section-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #424242;
}

.view-all-link {
    margin-left: auto;
    font-size: 13px;
    color: #2196F3;
    cursor: pointer;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Folders Section */
.folders-section {
    overflow-y: auto;
}

.dashboard-folder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.dashboard-folder {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dashboard-folder-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 12px;
    margin-bottom: 0;
}

.dashboard-folder.root .dashboard-folder-icon {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.dashboard-folder-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-folder-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
    text-align: left;
}

.dashboard-folder-count {
    font-size: 12px;
    color: #757575;
}

/* Items Section */
.items-section {
    overflow-y: auto;
}

.dashboard-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.dashboard-library-item {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eeeeee;
    position: relative;
    transition: all 0.2s ease;
    height: 160px;
}

.dashboard-library-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.dashboard-library-preview {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: #f8f8f8;
    border-radius: 6px;
    padding: 5px;
}

.dashboard-library-preview svg {
    max-width: 90%;
    max-height: 80px;
}

.dashboard-library-name {
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.3;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-library-dimensions {
    font-size: 11px;
    color: #757575;
}

.dashboard-library-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-library-item:hover .dashboard-library-actions {
    opacity: 1;
}

.folder-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    display: flex;
    align-items: center;
}

.folder-badge svg {
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

/* Loading Indicator */
.loading-indicator-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px;
    grid-column: 1 / -1;
    color: #757575;
    font-size: 14px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-folder-message, .empty-items-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #9e9e9e;
    text-align: center;
    width: 100%;
    height: 100%;
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #bdbdbd;
}

.empty-state-text {
    font-size: 14px;
    max-width: 200px;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .library-sections-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        max-height: none;
    }
    
    .folders-section, .items-section {
        max-height: 400px;
    }
}

@media (max-width: 600px) {
    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .library-header-actions {
        margin-top: 12px;
        width: 100%;
    }
    
    .action-button {
        flex: 1;
        justify-content: center;
    }
    
    .dashboard-folder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Saved plans list */
.saved-plans-list {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-booths, .library-manager {
        grid-column: 1;
    }
    
    .dashboard-container {
        padding: 15px;
    }
}

/* Floating Controls Widget Styles */
.floating-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: auto;
    z-index: 100;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
}

.floating-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background-color: #4CAF50;
    border-bottom: 1px solid #ddd;
}

.floating-controls-header span {
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.minimize-btn, .expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize-btn:hover, .expand-btn:hover {
    color: #e0e0e0;
}

.floating-controls-body {
    padding: 6px;
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.control-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.control-tool svg {
    transition: all 0.2s ease;
}

.control-tool:hover {
    background-color: #ebebeb;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.control-tool.active {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    color: #388e3c;
}

.control-tool.active svg {
    color: #388e3c;
}

.floating-controls-minimized {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4CAF50;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 6px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-controls-minimized:hover {
    background-color: #45a049;
}

.button-flash {
    background-color: #d1e7ff !important;
    transform: scale(1.05);
    transition: all 0.1s ease;
}

.floating-controls .control-tool.button-flash svg {
    color: #0066cc;
}

/* Responsive styles for floating controls */
@media (max-width: 600px) {
    .floating-controls-body {
        flex-wrap: wrap;
        max-width: 210px;
    }
    
    .control-tool {
        flex: 1 0 calc(33.33% - 4px);
    }
}

/* Animation for showing/hiding controls */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-controls {
    animation: fadeInUp 0.3s ease;
}

/* Folder Structure CSS */

/* Breadcrumb navigation */
.folder-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    user-select: none;
}

.breadcrumb-item svg {
    margin-right: 5px;
}

.breadcrumb-item:hover {
    background-color: #e0e0e0;
}

.breadcrumb-item.current {
    font-weight: bold;
    background-color: #e8f5e9;
    color: #388e3c;
    cursor: default;
}

.breadcrumb-separator {
    color: #666;
    margin: 0 2px;
}

/* Folder toolbar */
.folder-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.folder-toolbar .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Folder items */
.folder-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #f5f5f5;
    border-left: 3px solid #2196F3;
}

.folder-item:hover {
    background-color: #e3f2fd;
}

.folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    color: #2196F3;
}

.folder-name {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.folder-name small {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.folder-actions {
    display: flex;
    gap: 5px;
    margin-right: 5px;
}

/* Move modal */
.folders-tree {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.folder-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
}

.folder-option svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.folder-option:hover {
    background-color: #f0f0f0;
}

.folder-option.current {
    background-color: #e8f5e9;
    color: #388e3c;
    cursor: default;
    font-weight: bold;
}

/* Library item updates for folder support */
.library-item-text {
    flex-grow: 1;
}

.library-item-actions {
    display: flex;
    gap: 5px;
    margin-right: 5px;
}

.move-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty folder message */
.empty-folder-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin: 10px 0;
}

/* For Dashboard - Folder badges on library items */
.folder-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 5px;
}

.folder-badge svg {
    margin-right: 3px;
}

/* Dashboard folder display */
.dashboard-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.dashboard-folder:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.dashboard-folder-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
    border-radius: 50%;
    margin-bottom: 10px;
    color: #1976d2;
}

.dashboard-folder.root .dashboard-folder-icon {
    background-color: #e8f5e9;
    color: #388e3c;
}

.dashboard-folder-name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.dashboard-folder-count {
    font-size: 12px;
    color: #666;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-section-header h4 {
    margin: 0;
}

.view-all-btn {
    display: block;
    margin: 15px auto;
    width: 200px;
}