File size: 4,638 Bytes
b2363b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
class GeoSidebar extends HTMLElement {
    constructor() {
        super();
    }
    
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    width: 280px;
                    background: white;
                    border-right: 1px solid #e5e7eb;
                    height: 100%;
                    overflow-y: auto;
                }
                .dark :host {
                    background: #1f2937;
                    border-right-color: #374151;
                }
                .sidebar-header {
                    padding: 1.5rem;
                    border-bottom: 1px solid #e5e7eb;
                }
                .dark .sidebar-header {
                    border-bottom-color: #374151;
                }
                h2 {
                    font-size: 0.875rem;
                    font-weight: 600;
                    color: #6b7280;
                    text-transform: uppercase;
                    letter-spacing: 0.05em;
                    margin: 0;
                }
                .dark h2 {
                    color: #9ca3af;
                }
                .menu-list {
                    list-style: none;
                    padding: 0;
                    margin: 0;
                }
                .menu-item {
                    display: flex;
                    align-items: center;
                    gap: 0.75rem;
                    padding: 0.875rem 1.5rem;
                    color: #374151;
                    text-decoration: none;
                    font-size: 0.875rem;
                    font-weight: 500;
                    transition: all 0.2s;
                    border-left: 3px solid transparent;
                }
                .menu-item:hover {
                    background: #f9fafb;
                    color: #6366f1;
                    border-left-color: #6366f1;
                }
                .menu-item.active {
                    background: #eef2ff;
                    color: #6366f1;
                    border-left-color: #6366f1;
                }
                .dark .menu-item {
                    color: #d1d5db;
                }
                .dark .menu-item:hover {
                    background: #374151;
                    color: #818cf8;
                    border-left-color: #818cf8;
                }
                .dark .menu-item.active {
                    background: rgba(99, 102, 241, 0.1);
                    color: #818cf8;
                    border-left-color: #818cf8;
                }
                .icon {
                    width: 1.25rem;
                    height: 1.25rem;
                }
                .stats {
                    padding: 1.5rem;
                    margin-top: auto;
                }
                .stat-card {
                    background: linear-gradient(135deg, #6366f1, #8b5cf6);
                    border-radius: 0.75rem;
                    padding: 1rem;
                    color: white;
                }
                .stat-number {
                    font-size: 1.5rem;
                    font-weight: 700;
                    margin-bottom: 0.25rem;
                }
                .stat-label {
                    font-size: 0.75rem;
                    opacity: 0.9;
                }
            </style>
            <div style="display: flex; flex-direction: column; height: 100%;">
                <div class="sidebar-header">
                    <h2>Menu Principal</h2>
                </div>
                
                <nav style="flex: 1;">
                    <ul class="menu-list">
                        <li>
                            <a href="index.html" class="menu-item active">
                                <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
                                Dashboard
                            </a>
                        </li>
                        <li>
                            <a href="#" class="menu-item" onclick="alert('Funcionalidade em desenvolvimento')">
                                <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-line