 /* Hidden SEO content - invisible to users but visible to search engines */
        .citizens-list {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .citizen-item {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: #f9f9f9;
        }
        
        .citizen-item h3 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 1.2em;
        }
        
        .citizen-item p {
            margin: 5px 0;
            color: #666;
        }
        
        .citizen-item ul {
            margin: 10px 0;
            padding-left: 20px;
        }
        
        .citizen-item li {
            margin: 3px 0;
            color: #555;
        }

        /* Prevent horizontal scroll on zoom */
        body {
            overflow-x: hidden;
            overflow-y: auto;
        }
        
        .container {
            width: 100%;
            overflow: visible; /* Changed from hidden to allow fixed positioning to work properly */
            min-height: calc(100vh);
            display: flex;
            flex-direction: column;
            margin-top: 0; /* Removed - year strip is now fixed */
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-align: center;
            padding: 20px;
            flex-shrink: 0;
        }

        .header h1 {
            font-family: "FW", sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto 20px;
            line-height: 1.6;
        }



        .control-btn {
            color: black;
            border: none;
            padding: 8px;
            border-radius: 50%;
            width: 34px;
            height: 34px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 15px;
        }

        .control-bar .fas {font-size:20px;}

        .control-btn:hover {
            background: #eee;
            transform: translateY(-1px);
        }




        /* Timeline specific styles */
        .timeline-container {
            padding: 0;
            background: white;
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            overflow-y: auto;
            height: 100vh;
            max-height: 100vh;
        }

        .timeline-wrapper {
            background: transparent;
            overflow-y: visible;
            overflow-x: visible;
            flex: 1;
            width: 100% !important;
            display: flex;
            flex-direction: column;
            cursor: grab;
            position: relative;
            /* Smooth scrolling for iOS */
            -webkit-overflow-scrolling: touch;
            /* Prevent scrolling on touch devices while dragging */
            touch-action: pan-y;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .timeline-wrapper.dragging {
            cursor: grabbing;
            touch-action: none;
        }

        .timeline-inner {
            position: relative;
            height: 100%;
            width: 100%;
            min-height: 92px; /* Ensure at least ruler height */
            padding-bottom: 40px; /* Space for period indicators */
            transition: transform 0.1s ease-out;
            overflow: visible;
        }

        .ruler-container-fixed {
            height: 92px;
            background: #dee3e7;
            border-bottom: 2px solid #333;
            flex-shrink: 0;
            overflow: visible;
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            width: 100%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .period-strip-fixed {
            height: 40px;
            background: rgba(255, 255, 255, 0.95);
            border-top: 2px solid #333;
            flex-shrink: 0;
            overflow: visible;
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 100;
            width: 100%;
            box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
        }

        .timeline-viewport {
            flex: 1;
            position: relative;
            overflow: visible;
            margin-top: 0; /* Ruler is positioned separately now */
        }

        .ruler-content {
            position: relative;
            height: 100%;
            width: 100%;
            transform: translateX(0px); /* Will be updated by JavaScript */
        }

        .year-marker {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 13px;
            color: black;
            white-space: nowrap;
        }

        .decade-line {
            position: absolute;
            bottom: 0;
            width: 1px;
            height: 100%;
            z-index: 0;
        }
        
        /* Light color for year strip (ruler area) */
        .decade-line.strip-section {
            background-color: #adb5bd;
        }
        
        /* Dark color for chart area (citizen bars) */
        .decade-line.chart-section {
            background-color: #343a40;
        }
        
        /* Historical period strip - fixed at bottom */
        .period-strip-container {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            z-index: 10;
            pointer-events: none;
        }
        
        .period-strip-content {
            position: relative;
            height: 100%;
            width: 100%;
        }
        
        .period-indicator-strip {
            position: absolute;
            height: 8px;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        
        .period-label-strip {
            position: absolute;
            font-family: system-ui, -apple-system, sans-serif;
            font-size: 10px;
            font-weight: 600;
            color: #333;
            white-space: nowrap;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
        }
        


        .chart-content {
            position: relative;
            height: 100%;
            width: 100%;
        }

        .citizen-bar {
            position: absolute;
            height: 36px; /* Fixed height for consistent row spacing */
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            padding: 0 6px 0 0;
            color: white;
            font-size: 13px;
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            box-shadow: 0 3px 12px rgba(0,0,0,0.15);
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            z-index: 1;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .citizen-bar:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.25);
            z-index: 10;
        }

        .citizen-bar.active {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            z-index: 10;
        }

        .citizen-content {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .citizen-thumbnail {
            width: 42px;
            height: 42px;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            flex-shrink: 0;
            background-size: cover;
            background-position: center;
            margin-right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 10px;
            color: white;
            text-transform: uppercase;
            position: relative;
            overflow: hidden;
        }
        
        .citizen-thumbnail::after {
            content: attr(data-initial);
            position: relative;
            z-index: 1;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        .citizen-thumbnail:not([style*="background-image"]) {
            /* Background will be set via JavaScript/PHP with citizen-specific colors */
        }
        }

        .citizen-name {
            flex: 1;
            min-width: 0;
            font-size: 13px;
            font-weight: 500;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }
        
        .citizen-bar.external .citizen-name {
            font-size: 15px;
            font-weight: 700;
        }

        .citizen-years {
            opacity: 0.9;
            font-size: 12px;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        /* Enhanced color schemes */
        .nauka { 
            background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
        }
        .slikarstvo { 
            background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
        }
        .knjizevnost { 
            background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
        }
        .gluma { 
            background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
        }
        .biznis { 
            background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
        }
        .muzika { 
            background: linear-gradient(135deg, #fdcb6e 0%, #fd79a8 100%);
        }
        .sport { 
            background: linear-gradient(135deg, #00cec9 0%, #55a3ff 100%);
        }
        .vojska { 
            background: linear-gradient(135deg, #6c8e3f 0%, #4a5d3a 100%);
        }
        .novinarstvo { 
            background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
        }
        .politika { 
            background: linear-gradient(135deg, #cd853f 0%, #daa520 100%);
        }

        

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh; /* Dynamic viewport height for mobile */
            background-color: rgba(0,0,0,0.5);
            backdrop-filter: blur(5px);
            overflow-y: auto;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .modal-header {
            background: #6D4F4B;
            color: white;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .modal-title {
            font-family: "FW", sans-serif;
            font-size: 1.8rem;
            margin: 0;
            font-weight: 500;
        }

        .close {
            position: absolute;
            right: 10px;
            top: 10px;
            color: white;
            background: black;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: opacity 0.3s;
            border: 2px solid rgba(255,255,255,0.3);
        }

        .close:hover {
            opacity: 0.7;
        }

        .modal-body {
            padding: 20px;
        }

        .modal-thumbnail {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            margin: 0 auto 20px;
            border: 4px solid #6D4F4B;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 24px;
            color: white;
            text-transform: uppercase;
            position: relative;
            overflow: hidden;
        }
        
        .modal-thumbnail::after {
            content: attr(data-initial);
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .modal-thumbnail:not([style*="background-image"]) {
            /* Background will be set via JavaScript/PHP with citizen-specific colors */
        }

        .modal-description {
            font-size: 16px;
            line-height: 1.6;
            color: #333;
            margin-bottom: 25px;
            text-align: center;
            /* Prevent text selection during dragging */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .modal-achievements {
            margin-top: 20px;
        }

        .modal-achievements h3 {
            color: #6D4F4B;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .modal-actions {
            margin-top: 30px;
            text-align: center;
        }

        .modal-link-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background-color: #6D4F4B;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid #6D4F4B;
        }

        .modal-link-button:hover {
            background-color: #6D4F4B;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(109, 79, 75, 0.3);
        }

        .modal-link-button i {
            font-size: 14px;
        }

        .modal-achievements ul {
            list-style: none;
            padding: 0;
        }

        .modal-achievements li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            position: relative;
            padding-left: 20px;
        }

        .modal-achievements li:before {
            content: "•";
            color: #6D4F4B;
            font-size: 20px;
            position: absolute;
            left: 0;
            top: 4px;
        }

        .modal-u-pancevo {
            margin-top: 20px;
        }

        .modal-u-pancevo h3 {
            color: #6D4F4B;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .modal-u-pancevo p {
            line-height: 1.6;
            color: #343a40;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #6D4F4B;
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background-color: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background-color: #003764;
            outline: 1px solid #002449;
        }

        /* Sidebar styles for logo click - LEFT SIDE */
        .info-sidebar {
            position: fixed;
            top: 54px;
            left: -400px;
            width: 380px;
            height: calc(100vh - 54px);
            background: #ffffff;
            box-shadow: 5px 0 15px rgba(0,0,0,0.1);
            z-index: 10000;
            transition: left 0.3s ease-in-out;
            overflow-y: auto;
            border-right: 1px solid #e9ecef;
        }

        .info-sidebar.open {
            left: 0;
        }

        .sidebar-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-title {
            font-family: "FW", sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            margin: 0;
        }

        .sidebar-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

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

        .sidebar-content {
            padding: 25px;
        }

        .page-info {
            margin-bottom: 30px;
        }

        .page-info h3 {
            color: #495057;
            font-size: 1.1rem;
            margin-bottom: 12px;
            border-bottom: 2px solid #6D4F4B;
            padding-bottom: 6px;
        }

        .info-item {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .info-icon {
            color: #6D4F4B;
            width: 20px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .info-text {
            color: #495057;
            line-height: 1.5;
            flex: 1;
        }

        .info-label {
            font-weight: 600;
            color: #343a40;
            display: block;
            margin-bottom: 4px;
        }

        .timeline-stats {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-item {
            text-align: center;
            padding: 10px;
            background: white;
            border-radius: 6px;
            border: 1px solid #dee2e6;
        }

        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            color: #6D4F4B;
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #6c757d;
        }

        .sidebar-overlay {
            position: fixed;
            top: 54px;
            left: 0;
            width: 100vw;
            height: calc(100vh - 54px);
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .sidebar-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile responsiveness for sidebar */
        @media (max-width: 768px) {
            .info-sidebar {
                width: 100vw;
                left: -100vw;
            }

            .sidebar-content {
                padding: 20px;
            }

            .stat-grid {
                grid-template-columns: 1fr;
            }

            /* Fix period strip to bottom of screen on mobile */
            .period-strip-fixed {
                position: fixed !important;
                bottom: 0 !important;
            }
        }
        
        /* Control bar for buttons outside timeline container */
        .control-bar {
            position: fixed;
            top: 10px;
            right: 15px;
            z-index: 10000000;
            pointer-events: none;
        }
        
        .control-bar .control-buttons {
            pointer-events: auto;
            display: flex;
            gap: 5px;
        }
        
        /* Filter dropdown styles */
        .filter-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .filter-content {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background-color: #ffffff;
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 10000001;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            margin-top: 5px;
            padding: 10px;
        }
        
        .search-container {
            margin-bottom: 10px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .search-input {
            width: 100%;
            padding: 8px 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        .search-input:focus {
            border-color: #4CAF50;
        }

        .search-input::placeholder {
            color: #999;
            font-style: italic;
        }
        
        .filter-content.show {
            display: block;
        }
        
        .filter-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            cursor: pointer;
            border-radius: 4px;
            margin: 2px 0;
            color: white;
            font-weight: 500;
        }
        
        .filter-option:hover {
            background-color: rgba(255,255,255,0.2);
        }
        
        .filter-option input[type="checkbox"] {
            margin: 0;
            cursor: pointer;
        }
        
        .filter-option label {
            cursor: pointer;
            font-size: 14px;
            color: white;
            flex: 1;
        }
        
        .filter-option[data-type="nauka"] {
            background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
        }
        
        .filter-option[data-type="slikarstvo"] {
            background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
        }
        
        .filter-option[data-type="knjizevnost"] {
            background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
        }
        
        .filter-option[data-type="gluma"] {
            background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
        }
        
        .filter-option[data-type="biznis"] {
            background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
        }
        
        .filter-option[data-type="muzika"] {
            background: linear-gradient(135deg, #fdcb6e 0%, #fd79a8 100%);
        }
        
        .filter-option[data-type="sport"] {
            background: linear-gradient(135deg, #00cec9 0%, #55a3ff 100%);
        }
        
        .filter-option[data-type="vojska"] {
            background: linear-gradient(135deg, #6c8e3f 0%, #4a5d3a 100%);
        }
        
        .filter-option[data-type="novinarstvo"] {
            background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
        }
        
        .filter-option[data-type="politika"] {
            background: linear-gradient(135deg, #cd853f 0%, #daa520 100%);
        }

        

        /* Mobile navigation adjustments */
        @media (max-width: 768px) {
            
        }

        /* Interactive tooltip styles */
        .interactive-tooltip {
            position: fixed;
            z-index: 10000;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.4;
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            max-width: 250px;
            white-space: normal;
            display: none;
        }