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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #ef0010 0%, #b70707 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
}

.dropdown-item.active {
    background: #667eea;
    color: white;
}

/* Main Content */
.main-content {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
}

.editor-container {
    display: none;
    grid-template-columns: 280px 1fr 350px;
    gap: 1.5rem;
    height: calc(100vh - 200px);
    position: relative;
}

.editor-container.active {
    display: grid;
}

/* Editor Panel */
.editor-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-header h2 {
    font-size: 1.25rem;
    color: #495057;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

/* Controles de Label Size no header */
.label-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.label-size-controls label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    white-space: nowrap;
}

.label-size-controls input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.label-size-controls select {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    min-width: 70px;
}

.label-size-controls span {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.label-size-controls input:focus,
.label-size-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.code-editor-wrapper {
    flex: 1;
    position: relative;
}

#dpl-code, #zpl-code {
    width: 100%;
    height: 100%;
    border: none;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #2d3748;
    color: #e2e8f0;
    resize: none;
    outline: none;
}

/* Preview Panel */
.preview-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    font-size: 1.25rem;
    color: #495057;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.preview-controls select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
}

.preview-area {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.preview-placeholder {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.export-controls {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-export {
    background: #28a745;
    color: white;
}

.btn-export:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .editor-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .editor-panel,
    .preview-panel {
        height: 400px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        flex: 1;
        text-align: center;
    }
}

/* Syntax Highlighting for CodeMirror */
.CodeMirror {
    height: 100% !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 14px !important;
}

.CodeMirror-scroll {
    padding: 1rem;
}

/* Elements Palette */
.elements-palette {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.palette-header {
    background: linear-gradient(135deg, #da030d 0%, #cc050b 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.palette-header h3 {
    font-size: 1rem;
    margin: 0;
}

.palette-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.element-group {
    margin-bottom: 1.5rem;
}

.element-group h4 {
    color: #495057;
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    font-weight: 600;
}

.draggable-element {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: grab;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    user-select: none;
}

.draggable-element:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.draggable-element:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.draggable-element i {
    color: #667eea;
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.draggable-element span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

/* Visual Editor */
.visual-editor {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.canvas-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    overflow: auto;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.canvas-ruler-x, .canvas-ruler-y {
    position: absolute;
    background: #e9ecef;
    z-index: 10;
}

.canvas-ruler-x {
    top: 0;
    left: 20px;
    right: 0;
    height: 20px;
    border-bottom: 1px solid #dee2e6;
}

.canvas-ruler-y {
    left: 0;
    top: 20px;
    bottom: 0;
    width: 20px;
    border-right: 1px solid #dee2e6;
}

.design-canvas {
    position: relative;
    background: white;
    border: 3px solid #dee2e6;
    border-radius: 8px;
    overflow: visible;
    flex-shrink: 0;
    margin: 0 auto;
}

.canvas-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-canvas.show-grid .canvas-background {
    opacity: 1;
}

.drop-zone-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    pointer-events: none;
    z-index: 1;
}

.drop-zone-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.drop-zone-message p {
    font-size: 1.1rem;
    margin: 0;
}

.design-canvas.has-elements .drop-zone-message {
    display: none;
}

/* Dropped Elements */
.canvas-element {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: move;
    user-select: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    z-index: 100;
}

.canvas-element:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.canvas-element.selected {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.canvas-element.dragging {
    opacity: 0.7;
    transform: rotate(5deg);
    z-index: 1000;
}

/* Element Types */
.element-text {
    padding: 8px 12px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
}

.element-title {
    padding: 12px 16px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
}

.element-barcode {
    padding: 8px;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
    text-align: center;
    font-family: monospace;
}

.element-qrcode {
    padding: 8px;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
    text-align: center;
}

.element-rectangle {
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    min-width: 100px;
    min-height: 50px;
}

.element-line {
    background: #667eea;
    height: 2px;
    min-width: 100px;
}

.element-image {
    background: rgba(248, 249, 250, 0.95);
    border: 1px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    min-width: 100px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.element-date {
    padding: 8px 12px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
}

/* Code Panel */
.code-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Print Settings */
.print-settings {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-row label {
    font-weight: 600;
    color: #495057;
    min-width: 85px;
    font-size: 12px;
}

.settings-row select {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    flex: 1;
    max-width: 150px;
}

.settings-row input[type="number"] {
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
    text-align: center;
}

.settings-row span {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.settings-row select:focus,
.settings-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.code-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header h3 {
    font-size: 1rem;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* Properties Panel */
.properties-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.properties-panel.active {
    right: 2rem;
}

.properties-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.properties-header h3 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.properties-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.property-group {
    margin-bottom: 1.5rem;
}

.property-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.property-group input,
.property-group select,
.property-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.property-group input:focus,
.property-group select:focus,
.property-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.property-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Drag and Drop States */
.design-canvas.drag-over {
    border-color: #28a745 !important;
    border-style: solid !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3) !important;
}

.draggable-element.dragging {
    opacity: 0.5 !important;
    transform: rotate(5deg) !important;
    cursor: grabbing !important;
}

.draggable-element {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.canvas-element {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all 0.2s ease;
}

.canvas-element:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Canvas com tamanho FIEL */
.design-canvas {
    border: 3px solid #dc3545 !important;
    background: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 20px auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Melhorar feedback visual do drag */
.draggable-element:active {
    transform: scale(0.95) !important;
}

/* Botões ativos */
.btn.active {
    background: #28a745 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

.btn.active:hover {
    background: #218838 !important;
}

/* Elemento selecionado */
.canvas-element.selected {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3) !important;
}

/* Botão de delete */
.delete-button {
    transition: all 0.2s ease;
}

.delete-button:hover {
    background: #c82333 !important;
    transform: scale(1.1);
}

/* Controles de tamanho */
.size-controls {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.size-controls select,
.size-controls input {
    transition: border-color 0.2s ease;
}

.size-controls select:focus,
.size-controls input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Canvas com tamanho definido */
.design-canvas {
    border: 3px solid #dee2e6;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.design-canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px dashed rgba(102, 126, 234, 0.3);
    pointer-events: none;
}

/* Indicador de tamanho */
.size-indicator {
    transition: opacity 0.3s ease;
}

.size-indicator:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .editor-container {
        grid-template-columns: 250px 1fr 300px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .editor-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 1rem;
    }

    .elements-palette,
    .visual-editor,
    .code-panel {
        height: 400px;
    }

    .properties-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .properties-panel.active {
        right: 0;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        flex: 1;
        text-align: center;
    }
}

/* Páginas de Documentação e Ajuda */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.docs-content h1,
.help-content h1,
.intro-content h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
}

/* Páginas de Introdução */
.intro-section {
    margin-bottom: 3rem;
}

.intro-section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-section h3 {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.intro-section p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.intro-section ul,
.intro-section ol {
    color: #6c757d;
    line-height: 1.6;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.intro-section li {
    margin-bottom: 0.5rem;
}

/* Exemplos de Código */
.code-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.code-example h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.code-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.code-example code {
    background: none;
    color: inherit;
    padding: 0;
}

.example-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.example-result h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.label-preview {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    display: inline-block;
}

.label-box {
    border: 1px solid #ccc;
    padding: 0.5rem;
    background: #f8f9fa;
    min-width: 200px;
}

.label-text {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.label-barcode,
.label-price {
    font-family: monospace;
    color: #666;
    font-size: 0.9rem;
}

/* Diagrama de Coordenadas */
.coordinate-diagram {
    margin: 1.5rem 0;
    text-align: center;
}

.diagram {
    position: relative;
    width: 300px;
    height: 200px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    margin: 0 auto;
}

.origin {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.point {
    position: absolute;
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.docs-section,
.help-section {
    margin-bottom: 3rem;
}

.docs-section h2,
.help-section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.docs-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.docs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.docs-card h3 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-card ul {
    list-style: none;
    padding: 0;
}

.docs-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-card li:last-child {
    border-bottom: none;
}

.docs-card code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

/* Página Como Usar */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tip-card h3 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 0.3rem 0;
    color: #6c757d;
}

.tip-card strong {
    color: #495057;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #ef0010 0%, #b70707 100%);
    color: white;
    padding: 1px 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-content p:first-child {
    font-weight: 600;
    font-size: 16px;
}

.footer-content p:last-child {
    opacity: 0.9;
    font-size: 13px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
