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

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f2f5;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    min-height: 400px;
}

/* Main canvas area */
.canvas-area {
    flex: 1;
    position: relative;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

/* Top toolbar */
.top-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px;
}

.toolbar-divider {
    width: 1px;
    height: 30px;
    background: #e1e4e8;
    margin: 0 10px;
}

.toolbar-button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.toolbar-button.primary {
    background: #5e72e4;
    color: white;
    border-color: #5e72e4;
}

.toolbar-button.primary:hover {
    background: #4c63d2;
}

/* Canvas workspace */
.service-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a1a1a;
    margin: 0;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(0) rotate(30deg); }
    50% { transform: translateX(20%) rotate(30deg); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-text {
    text-align: left;
}

.service-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.service-header p {
    margin: 10px 0 0 0;
    font-size: 1.125rem;
    color: #4b5563;
    font-weight: 500;
}

.canvas-workspace {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 20px;
    width: 100%;
    max-height: 450px;
    position: relative;
}


.chart-container {
    position: relative;
    background: white;
    padding: 20px;
    /* border-radius: 12px; */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: visible;
    width: auto;
    height: auto;
    margin-top: 80px;
}

/* Canvas action controls - styled like context controls */
.canvas-action-controls {
    position: absolute;
    bottom: -50px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.canvas-dimensions {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.canvas-tools {
    display: flex;
    gap: 4px;
}

.context-control-btn.icon-only {
    min-width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Custom tooltips for canvas tools */
.context-control-btn.icon-only::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.context-control-btn.icon-only:hover::after {
    opacity: 1;
    visibility: visible;
    top: -30px;
}

/* Canvas tools button styling with text */
.canvas-tools .context-control-btn {
    min-width: auto;
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    gap: 4px;
}

.canvas-tools .context-control-btn span {
    font-weight: 500;
}

.canvas-tools .context-control-btn i {
    font-size: 12px;
}

/* Page logo */
.page-logo {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
}

.page-logo img {
    height: 72px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.page-logo img:hover {
    opacity: 0.9;
}

/* Export popup */
.export-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.export-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.export-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.export-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.export-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-close:hover {
    color: #374151;
}

.export-section {
    margin-bottom: 16px;
}

.export-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #5e72e4;
}

.checkbox-item label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.export-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.export-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.export-btn.primary {
    background: #5e72e4;
    color: white;
    border: 1px solid #5e72e4;
}

.export-btn.primary:hover {
    background: #4c63d2;
}

.export-btn.secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.export-btn.secondary:hover {
    background: #f9fafb;
}

/* Settings popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-popup-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.settings-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    color: #374151;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.settings-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.settings-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-btn.primary {
    background: #5e72e4;
    color: white;
    border: 1px solid #5e72e4;
}

.settings-btn.primary:hover {
    background: #4c63d2;
}

.settings-btn.secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.settings-btn.secondary:hover {
    background: #f9fafb;
}



/* Floating control panels */
.floating-panel {
    position: fixed;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 50;
    min-width: 200px;
}

.floating-panel-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
}

.panel-close:hover {
    color: #374151;
}

/* Positioning panels - will be set dynamically by JavaScript */
.panel-left {
    display: none;
}

.panel-right {
    display: none;
}

/* Control inputs */
.control-row {
    margin-bottom: 12px;
}

.control-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

.control-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.control-input:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5e72e4;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5e72e4;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-size: 12px;
    color: #374151;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.editable-value {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    cursor: text;
    transition: all 0.2s ease;
    text-align: center;
}

.editable-value:hover {
    border-color: #9ca3af;
}

.editable-value:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.1);
}

/* Color picker */
.color-picker-wrapper {
    display: flex;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #5e72e4;
}

.color-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

/* Canvas side image */
.canvas-side-image {
    position: absolute;
    right: calc(100% + 20px);
    top: 70%;
    transform: translateY(-50%);
    width: 150px;
    height: auto;
    opacity: 0.7;
    z-index: 1;
}

/* Enhanced color picker */
.color-picker-enhanced {
    position: relative;
}

.color-picker-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    padding: 12px;
    z-index: 1000;
    min-width: 280px;
    max-width: 320px;
}

.color-picker-popover.active {
    display: block;
}

.color-picker-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.color-picker-popover-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.color-picker-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.color-picker-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.color-preset-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-colors-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.preset-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.preset-color:hover {
    transform: scale(1.15);
    border-color: #5e72e4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.preset-color.selected {
    border-color: #5e72e4;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.opacity-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opacity-label {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opacity-value {
    font-weight: 600;
    color: #374151;
}

.opacity-slider {
    width: 100%;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, 
        rgba(0,0,0,0) 0%, 
        currentColor 100%);
    border-radius: 4px;
    outline: none;
    border: 1px solid #e5e7eb;
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #5e72e4;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #5e72e4;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-display {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.color-display-inner {
    width: 100%;
    height: 100%;
    transition: background-color 0.2s ease;
}

/* Color Schemes */
.color-schemes-section {
    margin-top: 16px;
}

.color-schemes-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.color-schemes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-scheme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.color-scheme-item:hover {
    border-color: #5e72e4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scheme-preview {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    border: 1px solid #f3f4f6;
}

.scheme-bg {
    flex: 2;
    height: 100%;
}

.scheme-accent {
    flex: 1;
    height: 100%;
}

.scheme-name {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

/* Quick actions */
.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.quick-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: #5e72e4;
    color: white;
    border-color: #5e72e4;
}

/* Chart styles */
.chart-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    /* margin-bottom: 8px; */
    margin-top: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
    cursor: pointer;
    /* padding: 8px 12px; */
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.chart-title:hover {
    background: #f9fafb;
    border: 2px dashed #5e72e4;
}

.chart-title.selected {
    border: 2px dashed #5e72e4;
    background: #f9fafb;
}

.chart-subtitle {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.chart-subtitle:hover {
    background: #f9fafb;
    border: 2px dashed #5e72e4;
}

.chart-subtitle.selected {
    border: 2px dashed #5e72e4;
    background: #f9fafb;
}

.icons-grid-wrapper {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icons-grid-wrapper:hover {
    border: 2px dashed #5e72e4;
    background: rgba(94, 114, 228, 0.02);
}

.icons-grid-wrapper.selected {
    border: 2px dashed #5e72e4;
    background: rgba(94, 114, 228, 0.02);
}

.icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

/* Inline context controls */
.context-controls {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.context-controls.visible {
    opacity: 1;
    visibility: visible;
}

.context-control-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.context-control-btn:hover {
    background: #5e72e4;
    color: white;
    border-color: #5e72e4;
}

.context-control-btn.active {
    background: #5e72e4;
    color: white;
    border-color: #5e72e4;
}

.icon-item {
    font-size: 24px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    flex-shrink: 0;
}

.icon-item.highlighted {
    color: #5e72e4;
}

.icon-item.dimmed {
    color: #e5e7eb;
}

/* Icon Picker Dropdown */
.icon-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    z-index: 1100;
    min-width: 320px;
    max-height: 400px;
    overflow: hidden;
    transform: translateY(-2px);
    opacity: 0;
    transition: all 0.15s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.icon-picker-dropdown.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.icon-picker-wrapper {
    position: relative;
}

.icon-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.icon-dropdown-trigger:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.icon-dropdown-trigger:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.selected-icon-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.dropdown-arrow {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.icon-picker-dropdown.active ~ .icon-dropdown-trigger .dropdown-arrow,
.icon-dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.icon-search-container {
    padding: 8px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.icon-search-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    position: relative;
}

.icon-search-input:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.1);
}

.icon-grid {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.icon-grid::-webkit-scrollbar {
    width: 8px;
}

.icon-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.icon-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.icon-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    aspect-ratio: 1;
}

.icon-option:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.icon-option.selected {
    background: #eff6ff;
    border-color: #5e72e4;
}

.icon-option i {
    font-size: 14px;
    color: #4b5563;
}

.icon-option:hover i {
    color: #1f2937;
}

.icon-option.selected i {
    color: #5e72e4;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .service-header h1 {
        font-size: 1.75rem;
    }
    
    .service-header p {
        font-size: 1rem;
    }
    
    .floating-panel {
        display: none;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .canvas-side-image {
        display: none;
    }
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    font-size: 12px;
    color: #666;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.app-info {
    font-weight: 500;
    color: #333;
}

.separator {
    color: #ccc;
}

.feature-list {
    font-size: 11px;
    color: #888;
}

.app-description {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.free-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

/* Footer already accounted for in app-container height calc */

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-content {
        gap: 6px;
    }
    
    .feature-list, .app-description {
        display: none;
    }
    
    .app-footer {
        padding: 8px 15px;
    }
}


.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    font-size: 12px;
    color: #666;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.app-info {
    font-weight: 500;
    color: #333;
}

.separator {
    color: #ccc;
}

.feature-list {
    font-size: 11px;
    color: #888;
}

.app-description {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.free-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

/* Adjust main content to account for footer */
body {
    padding-bottom: 40px;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-content {
        gap: 6px;
    }
    
    .feature-list, .app-description {
        display: none;
    }
    
    .app-footer {
        padding: 8px 15px;
    }
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    user-select: none;
    transition: color 0.3s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ccc;
}

@media (max-width: 768px) {
    .image-modal-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .image-modal-content {
        padding: 20px;
    }
}