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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    background: #F9FAFB;
    padding: 20px 30px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: relative;
}

.header h1 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #f0f4ff;
}

.view-btn.active {
    background: #667eea;
    color: white;
}



.filter-btn {
    padding: 8px 16px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #9CA3AF;
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: #374151;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-sticky-btn {
    padding: 10px 20px;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.add-sticky-btn:hover {
    background: #10b981;
    color: white;
}

.clear-data-btn {
    padding: 10px 20px;
    border: 2px solid #ef4444;
    background: white;
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-data-btn:hover {
    background: #ef4444;
    color: white;
}

.canvas-container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 80px);
    overflow: hidden;
}

canvas {
    cursor: grab;
    background: #FFFFFF;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

canvas:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.zoom-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.zoom-controls button:hover {
    background: #667eea;
    color: white;
}

#zoomReset {
    width: auto;
    padding: 0 10px;
    font-size: 12px;
}



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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

#editTextarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 200px;
}

#editTextarea:focus {
    outline: none;
    border-color: #667eea;
}

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

.btn-primary {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    padding: 12px 24px;
    background: #e5e7eb;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        flex-wrap: wrap;
    }
}