@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&display=swap');

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

body {
    font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* === HEADER === */
.header {
    text-align: center;
    padding: 14px 20px 8px;
    color: white;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2px;
}

.header .subtitle {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 400;
}

/* === CONTAINER === */
.container {
    display: flex;
    align-items: flex-start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 12px;
}

/* === NAV PANE === */
.nav-pane {
    width: 220px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.nav-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 8px 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 10px;
}

.nav-pane ul {
    list-style: none;
}

.nav-pane ul li {
    margin-bottom: 6px;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #f0e6ff;
    color: #6c5ce7;
    border-color: #d4c4f7;
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}

/* === CANVAS === */
.canvas-container {
    flex: 1;
    min-width: 0;
}

canvas {
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: white;
    border: none;
    width: 100%;
    max-width: 800px;
}

.hidden {
    display: none !important;
}

/* === VISITOR COUNTER === */
.visitor-counter {
    position: fixed;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    font-family: 'Baloo 2', sans-serif;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.visitor-counter .eye-icon { font-size: 15px; }
.visitor-counter .count { font-weight: 700; color: #6c5ce7; }
