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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

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

.main-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
    
}

.canvas-container {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 0;
    
}

.toolbar {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: #ccc;
    margin-right: 15px;
    letter-spacing: 0.5px;
}

.toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
    padding-right: 10px;
    /* border-right: 1px solid #3a3a3a; */
}

.toolbar-group:last-child {
    border-right: none;
}

.tool-btn {
    text-decoration: none;
    padding: 7px 12px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-btn:hover {
    background: #4a4a4a;
}

.tool-btn.active {
    background: #0066cc;
    border-color: #0066cc;
}

.tool-btn i {
    font-size: 13px;
}

.tool-input {
    padding: 5px 8px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 4px;
    width: 60px;
    font-size: 12px;
}



.left-panel,
.right-panel {
    width: 280px;
    background: #2a2a2a;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s;
    padding-bottom: 20px;
}

.left-panel {
    border-right: 1px solid #3a3a3a;
}

.right-panel {
    border-left: 1px solid #3a3a3a;
}

.left-panel.collapsed {
    margin-left: -280px;
}

.right-panel.collapsed {
    margin-right: -280px;
}



.canvas-wrapper {
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}



.canvas-wrapper {
    transform-origin: center center;
    display: inline-block;
}


.panel-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.control-label {
    display: block;
    font-size: 10px;
    color: #b0b0b0;
    margin-bottom: 4px;
}

.control-input {
    width: 100%;
    padding: 6px 8px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
}

.control-input:focus {
    outline: none;
    border-color: #0066cc;
}

.btn {
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #4a4a4a;
    color: white;
}

.btn-secondary:hover {
    background: #5a5a5a;
}

.btn-danger {
    background: #666;
    color: white;
}

.btn-danger:hover {
    background: #cc0000;
}

.layers-list {
    flex: 1;
    overflow-y: auto;
}

.layer-item {
    padding: 6px 10px;
    background: #3a3a3a;
    margin-bottom: 2px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    font-size: 11px;
    user-select: none;
}

.layer-item:hover {
    background: #4a4a4a;
}

.layer-item.active {
    background: #0066cc;
    border-color: #0077dd;
}

.layer-item.selected-multi {
    background: #0055aa;
    border-color: #0066cc;
}

.layer-item.hidden {
    opacity: 0.4;
}

.layer-name {
    flex: 1;
    padding: 2px 4px;
}

.layer-name.editing {
    outline: 1px solid #0066cc;
    background: #2a2a2a;
    border-radius: 2px;
    cursor: text;
}

.layer-controls {
    display: flex;
    gap: 3px;
}

.layer-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.layer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.color-input-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

input[type="file"] {
    display: none;
}




::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    max-width: 95%;
    max-height: 95%;
    overflow: auto;
}

.modal-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.code-editor {
    width: 100%;
    min-width: 500px;
    height: 300px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
}

.toggle-panel-btn {
    position: absolute;
    top: 50%;
    writing-mode: vertical-lr;
    transform: translateY(-50%);
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 100;
}

.toggle-panel-btn:hover {
    background: #3a3a3a;
}

.toggle-left {
    left: 0;
}

.toggle-right {
    right: 0;
}

.gradient-preview {
    height: 35px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #4a4a4a;
}

.gradient-stops {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.gradient-stop {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
}

.selected-indicator {
  position: absolute;
  pointer-events: none;
  border: 2px solid transparent;
  background-image: repeating-linear-gradient(90deg, #0066cc 0 10px, transparent 10px 20px),
                    repeating-linear-gradient(0deg, #0066cc 0 10px, transparent 10px 20px),
                    repeating-linear-gradient(90deg, #0066cc 0 10px, transparent 10px 20px),
                    repeating-linear-gradient(0deg, #0066cc 0 10px, transparent 10px 20px);
  background-repeat: no-repeat;
  background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  background-position: 0 0, 100% 0, 0 100%, 0 0;
  animation: ants 0.5s linear infinite;
}

@keyframes ants {
  to {
    background-position: 20px 0, 100% 20px, -20px 100%, 0 -20px;
  }
}


.text-align-tools {
    display: none;
    gap: 5px;
}

.text-align-tools.show {
    display: flex;
}

.fill-type-section {
    margin-bottom: 10px;
}

.image-fill-controls {
    display: none;
}

.image-fill-controls.show {
    display: block;
}


.control-row {
    margin-bottom: 12px;
}

.panel-section {
    padding: 15px;
}


.sidebar-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #2a2a2a;
    border-left: 1px solid #3a3a3a;
    z-index: 10001;
    transition: right 0.3s;
    overflow-y: auto;
}

.sidebar-panel.open {
    right: 0;
}

.sidebar-header {
    padding: 15px;
    background: #252525;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 8px;
    padding: 10px;
}

.gallery-item {
    width: 80px;
    height: 80px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
}

.gallery-item:hover {
    border-color: #0066cc;
    transform: scale(1.05);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
}

.gallery-delete:hover {
    background: #cc0000;
}


.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.custom-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.custom-modal-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-modal-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.custom-modal-body {
    margin-bottom: 15px;
    font-size: 12px;
}

.custom-modal-input {
    width: 100%;
    padding: 8px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.custom-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}


.icon-picker {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, 50px);
    gap: 5px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    margin-top: 10px;
}

.icon-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 24px;
}

.icon-item:hover {
    background: #3a3a3a;
    border-color: #0066cc;
}


.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #3a3a3a;
    border-radius: 4px;
    font-size: 11px;
}


.plugins-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #2a2a2a;
    border-left: 1px solid #3a3a3a;
    z-index: 10003;
    transition: right 0.3s;
    overflow-y: auto;
}

.plugins-sidebar.open {
    right: 0;
}

.plugin-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    border-bottom: 1px solid #3a3a3a;
}

.plugin-item:hover {
    background: #4a4a4a;
}

.plugin-item:last-child {
    border-bottom: none;
}

.plugin-category {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    background: #252525;
}


.cdn-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.cdn-icon-set {
    padding: 10px;
    background: #3a3a3a;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.cdn-icon-set:hover {
    background: #4a4a4a;
}


.effect-config {
    margin-top: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
}


.plugin-search {
    margin-bottom: 10px;
}


.export-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #2a2a2a;
    border-left: 1px solid #3a3a3a;
    z-index: 10004;
    transition: right 0.3s;
    overflow-y: auto;
}

.export-sidebar.open {
    right: 0;
}

.export-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-item:hover {
    background: #4a4a4a;
}

.export-item:last-child {
    border-bottom: none;
}


.gradient-editor {
    margin-top: 10px;
}

.gradient-stops-editor {
    margin-bottom: 10px;
}

.gradient-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.gradient-stop-color {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.gradient-stop-position {
    width: 60px;
    padding: 3px 5px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 3px;
    font-size: 11px;
}

.gradient-stop-remove {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
}

.gradient-stop-remove:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gradient-add-stop {
    width: 100%;
    padding: 5px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-top: 5px;
}

.gradient-add-stop:hover {
    background: #4a4a4a;
}

.gradient-code-editor {
    width: 100%;
    height: 80px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    resize: vertical;
}


.fullscreen-crop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.crop-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    overflow: auto;
}

.crop-controls {
    padding: 15px;
    background: #2a2a2a;
    border-top: 1px solid #3a3a3a;
}


.layer-order-tools,
.dup-del-tools,
.selection-tools
 {
    display: none;
    gap: 5px;
}

.layer-order-tools.show,
.dup-del-tools.show,
.selection-tools.show
 {
    display: flex;
}


.manager-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    margin-top: 10px;
}

.manager-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #3a3a3a;
}

.manager-item:last-child {
    border-bottom: none;
}

.toolbar-wrapper {
    position: relative;
}


.toolbar {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: max-height 0.3s ease;
}


#toolbar-toggle:checked~.toolbar {
    max-height: 700px;
    
}


.toolbar-toggle {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s ease;
}


#toolbar-toggle:checked+.toolbar-toggle i {
    transform: rotate(180deg);
}


@media (max-width: 700px) {

    .toolbar {
        max-height: 88px;
        overflow: hidden;

    }

    .toolbar-toggle {
        display: block;
    }
}

.mini-keyboard {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    gap: 6px;
    z-index: 9999;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 20px);
}

.mini-keyboard.hidden {
    display: none;
}

.mini-keyboard button {
    background: #333;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    min-width: 45px;
}

.mini-keyboard button:active,
.mini-keyboard button.active {
    background: #007aff;
}

.mini-keyboard .modifier-btn.active {
    background: #ff9500;
}





.zoom-controls {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 100;
}

.zoom-controls .btn {
    min-width: 35px;
    padding: 6px 8px;
    margin: 0;
}

.zoom-input {
    width: 50px;
    padding: 4px 6px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

#panControls {
    display: none;
    gap: 4px;
    align-items: center;
    padding-left: 6px;
    border-left: 1px solid #3a3a3a;
}

#panControls .btn {
    min-width: 32px;
    padding: 4px 6px;
}





@media (max-width: 700px) {
    
    .toolbar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }

    
    .toolbar {
        max-height: 44px; 
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    
    #toolbar-toggle:checked ~ .toolbar {
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    
    .main-workspace {
        padding-top: 44px;
    }

    .canvas-container {
        height: calc(100vh - 44px);
    }

    
    #toolbar-toggle:checked ~ .toolbar-toggle i {
        transform: rotate(180deg);
    }
}




.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    padding: 8px;
    align-items: center;
}


.toolbar-group {
    display: contents; 
}


.text-align-tools,
.dup-del-tools,
.layer-order-tools,
.selection-tools {
    display: none;
}


.text-align-tools.show,
.dup-del-tools.show,
.layer-order-tools.show,
.selection-tools.show {
    display: contents; 
}



@media (max-width: 700px) {
    
    .toolbar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }

    
    .toolbar {
        max-height: 44px; 
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    
    #toolbar-toggle:checked ~ .toolbar {
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    
    .main-workspace {
        padding-top: 44px; 
    }

    .canvas-container {
        height: calc(100vh - 44px);
    }

    
    #toolbar-toggle:checked ~ .toolbar-toggle i {
        transform: rotate(180deg);
    }
}



/* Choices.js Theme Override */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #3a3a3a !important;
    border: 1px solid #4a4a4a !important;
    color: #e0e0e0 !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
}

.choices__input {
    background-color: #3a3a3a !important;
    color: #e0e0e0 !important;
    font-size: 11px !important;
    margin-bottom: 0 !important;
}

.choices__input::placeholder {
    color: #888 !important;
}

.choices__list--dropdown {
    background-color: #2a2a2a !important;
    border: 1px solid #4a4a4a !important;
    z-index: 10000 !important;
}

.choices__list--dropdown .choices__item {
    color: #e0e0e0 !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
}

.choices__item--selectable.is-highlighted {
    background-color: #0066cc !important;
}

.choices__list--single .choices__item {
    color: #e0e0e0 !important;
    font-size: 11px !important;
}

.choices[data-type*=select-one] .choices__input {
    background-color: #3a3a3a !important;
    border-bottom: 1px solid #4a4a4a !important;
    padding: 4px 8px !important;
}

.choices__list--dropdown .choices__item--selectable {
    padding-right: 12px !important;
}

.is-open .choices__inner {
    border-color: #0066cc !important;
}

.choices__placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.template-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}


/* ============================================
   COMMAND PALETTE
   ============================================ */

.command-palette-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10005;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.15s ease;
}

.command-palette-overlay.show {
    display: flex;
}

.command-palette-container {
    background: #2a2a2a;
    border-radius: 8px;
    width: 640px;
    max-width: 95vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-palette-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #3a3a3a;
}

.command-palette-header i {
    font-size: 18px;
    color: #888;
}

#commandPaletteInput {
    flex: 1;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
}

#commandPaletteInput::placeholder {
    color: #666;
}

.command-palette-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 20px;
    border-radius: 4px;
}

.command-palette-close:hover {
    background: #3a3a3a;
    color: #e0e0e0;
}

.command-palette-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 200px;
    max-height: 50vh;
}

.command-palette-category {
    padding: 8px 20px 4px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.command-palette-category:first-child {
    margin-top: 0;
}

.command-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.1s;
}

.command-palette-item:hover {
    background: #3a3a3a;
}

.command-palette-item.selected {
    background: #0066cc;
}

.command-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.command-item-left > i {
    font-size: 16px;
    color: #e0e0e0;
    width: 20px;
    text-align: center;
}

.command-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.command-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.command-item-desc {
    font-size: 11px;
    color: #888;
}

.command-palette-item.selected .command-item-desc {
    color: #ccc;
}

.command-palette-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.command-palette-empty i {
    font-size: 48px;
    margin-bottom: 15px;
}

.command-palette-empty p {
    font-size: 14px;
}

.command-palette-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    border-top: 1px solid #3a3a3a;
    font-size: 11px;
    color: #888;
}

.command-palette-footer kbd {
    background: #3a3a3a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 10px;
    color: #e0e0e0;
    margin: 0 2px;
}

.command-palette-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}


.control-row {
    transition: all 0.3s linear;
}

.property-highlight {
    outline: 2px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.7);
    transition: all 0.2s ease-in-out;
    border-radius: 5px;
    padding: 4px;
    transition: all 0.3s linear;
    transform: scale(1.1);
}



/* Mobile adjustments */
@media (max-width: 700px) {
    .command-palette-container {
        width: 95vw;
        max-height: 80vh;
    }
    
    .command-palette-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Minimal Cloud Storage UI - Only essential styles */

/* File picker hover effects */
.dropbox-file-item:hover,
.github-file-item:hover {
    background: #4a4a4a !important;
    border-color: #0066cc !important;
}

/* Inline grid for save/load buttons */
.panel-section > div[style*="grid-template-columns: 1fr 1fr"] .btn {
    margin: 0;
}

/* Empty state icon */
.bi-inbox {
    display: block;
}

/* Mobile adjustments for file pickers */
@media (max-width: 600px) {
    .dropbox-file-item,
    .github-file-item {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .dropbox-file-item .btn,
    .github-file-item .btn {
        width: 100% !important;
        margin-top: 8px !important;
    }
}