body, html { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #111; overflow: hidden; }
#map { width: 100%; height: 100%; }

/* HUD YAZILARI */
#hud { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); background: rgba(15, 20, 25, 0.9); color: #fff; padding: 8px 15px; border-radius: 8px; z-index: 1000; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); font-size: 9px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,0.1); width: max-content; }
.val { font-weight: bold; color: #00e676; margin-left: 4px; font-family: monospace; font-size: 10px; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: all 0.2s ease; }
.val:hover { background: rgba(0, 230, 118, 0.2); box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }

.hud-icon-btn { color: white; border: none; padding: 0; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.hud-icon-btn:hover { filter: brightness(1.2); transform: scale(1.05); }

/* SOL MENÜ İKONLARI (Masaüstü Kusursuz Matematiksel Aralıklar) */
#locationToggle { position: absolute; top: 50px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #28a745; color: #28a745; }
#locationToggle:hover { background: #e0f8e9; transform: scale(1.05); }

#panelToggle { position: absolute; top: 106px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #007bff; color: #007bff; }
#panelToggle:hover { background: #f0f8ff; transform: scale(1.05); }
#panelToggle.open { background: #dc3545; color: white; border-color: #dc3545; transform: rotate(90deg); }

#pinToggle { position: absolute; top: 162px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #e83e8c; color: #e83e8c; }
#pinToggle:hover { background: #fff0f6; transform: scale(1.05); }
#pinToggle.open { background: #e83e8c; color: white; border-color: #e83e8c; transform: rotate(90deg); }

#categoryToggle { position: absolute; top: 218px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #17a2b8; color: #17a2b8; }
#categoryToggle:hover { background: #e0f8fb; transform: scale(1.05); }
#categoryToggle.open { background: #17a2b8; color: white; border-color: #17a2b8; transform: rotate(90deg); }

#kmlToggle { position: absolute; top: 274px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #fd7e14; color: #fd7e14; }
#kmlToggle:hover { background: #fff4e6; transform: scale(1.05); }
#kmlToggle.open { background: #fd7e14; color: white; border-color: #fd7e14; transform: rotate(90deg); }

#libraryToggle { position: absolute; top: 330px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #6f42c1; color: #6f42c1; }
#libraryToggle:hover { background: #f3e8ff; transform: scale(1.05); }
#libraryToggle.open { background: #6f42c1; color: white; border-color: #6f42c1; transform: rotate(90deg); }

#timelineToggle { position: absolute; top: 386px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #8e44ad; color: #8e44ad; }
#timelineToggle:hover { background: #f4e8fb; transform: scale(1.05); }

#fullscreenToggle { position: absolute; bottom: 25px; left: 15px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: all 0.3s ease; border: 2px solid #343a40; color: #343a40; }
#fullscreenToggle:hover { background: #f8f9fa; transform: scale(1.05); }

/* SAĞ MENÜ İKONLARI HİZALAMASI */
.leaflet-top.leaflet-right { top: 50px !important; right: 15px !important; }
.leaflet-right .leaflet-control:not(.leaflet-control-zoom) { margin-top: 0 !important; margin-bottom: 10px !important; margin-right: 0 !important; border: 2px solid #6c757d !important; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; background-color: #fff !important; transition: all 0.3s ease; }
.leaflet-right .leaflet-control:not(.leaflet-control-zoom):hover { transform: scale(1.05); }
.leaflet-right .leaflet-control.leaflet-control-layers-expanded { border-radius: 8px !important; padding: 10px !important; transform: none; border: none !important; }
.leaflet-control-layers-toggle { width: 44px !important; height: 44px !important; background-size: 22px 22px !important; }
.leaflet-control-layers a { font-size: 20px !important; display: flex !important; align-items: center; justify-content: center; text-decoration: none; color: #333; transition: all 0.3s ease; }
.leaflet-control-layers-expanded .leaflet-control-layers-toggle { width: auto !important; height: auto !important; }
.leaflet-control-zoom a { width: 22px !important; height: 22px !important; line-height: 22px !important; font-size: 15px !important; }

/* TOOLTIP SİSTEMİ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip); position: absolute; opacity: 0; visibility: hidden; background: rgba(15, 20, 25, 0.95); 
    color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; white-space: nowrap; 
    pointer-events: none; z-index: 10000; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
}
.side-icon-btn[data-tooltip]::after { left: 120%; top: 50%; transform: translateY(-50%) translateX(-10px); }
.side-icon-btn[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.leaflet-right [data-tooltip]::after { right: 120%; left: auto; top: 50%; transform: translateY(-50%) translateX(10px); }
.leaflet-right [data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.hud-icon-btn[data-tooltip]::after { top: 120%; left: 50%; transform: translate(-50%, -10px); }
.hud-icon-btn[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 768px) { [data-tooltip]::after { display: none !important; } }

/* PANELLER */
.side-panel { position: absolute; left: -350px; z-index: 1000; background: rgba(255, 255, 255, 0.95); padding: 15px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); width: 280px; backdrop-filter: blur(5px); transition: all 0.3s ease; max-height: 80vh; overflow-y: auto; overflow-x: hidden; }
.side-panel.open { left: 75px; } 
#controlPanel { top: 110px; }
#pinPanel { top: 170px; }
#categoryPanel { top: 230px; }
#iconManagerPanel { top: 230px; } 
#kmlPanel { top: 290px; }
#libraryPanel { top: 350px; display:flex; flex-direction:column; } 

.panel-close-btn { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; background: #ffffff; color: #111; border: 1px solid #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; cursor: pointer; z-index: 1005; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: all 0.2s ease; }
.panel-close-btn:hover { background: #f8f9fa; transform: scale(1.1); color: #dc3545; border-color: #dc3545; }
.side-panel .panel-title { padding-right: 30px; box-sizing: border-box; }

.panel-title { font-size: 13px; font-weight: bold; color: #444; margin-bottom: 8px; text-transform: uppercase; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.form-group { margin-bottom: 12px; display: flex; gap: 5px; }
.form-group input[type="text"], .form-group input[type="number"] { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #007bff; }
.form-group button { padding: 8px 12px; background: #333; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.form-group button:hover { opacity: 0.9; }
.coord-inputs { display: flex; gap: 5px; margin-bottom: 5px; }
.coord-inputs input { width: 100%; box-sizing: border-box; }

.cat-filter-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; border-bottom: 1px solid #eee; font-size: 13px; transition: background 0.2s; border-radius: 4px;}
.cat-filter-item:hover { background: #f1f7fd; }
.cat-filter-item:last-child { border-bottom: none; }
.cat-filter-item label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-weight: bold; color:#333; flex: 1; }
.cat-filter-item input[type="checkbox"] { transform: scale(1.3); cursor: pointer; accent-color: #17a2b8; }
.cat-filter-count { background: #e9ecef; color: #555; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 900; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }

#toast { position: fixed; bottom: 160px; left: 50%; transform: translateX(-50%); background: #28a745; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: bold; font-size: 14px; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }

#measureResultBox { display: none; background: #e9ecef; border-left: 4px solid #d9534f; padding: 10px; margin-top: 10px; border-radius: 4px; font-size: 13px; font-weight: bold; color: #333; }
#measureValue { color: #d9534f; font-size: 16px; display: block; margin-top: 2px; margin-bottom: 5px;}
#measureDroneCount { color: #0056b3; font-size: 14px; display: block; padding-top: 5px; border-top: 1px dashed #ccc; }
#measureBudget { color: #28a745; font-size: 14px; display: none; padding-top: 5px; border-top: 1px dashed #ccc; margin-top: 5px; font-weight: bold; }

#droneSettingsGrp { display: none; background: #f8f9fa; padding: 10px; margin-bottom: 12px; border-radius: 4px; border: 1px solid #ced4da; }
#droneSettingsGrp label { font-size: 12px; font-weight: bold; color: #444; }

#crosshair { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); pointer-events: none; z-index: 500; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: rgba(220, 53, 69, 0.9); box-shadow: 0 0 4px rgba(255,255,255,0.9); border-radius: 2px; }
#crosshair::before { top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%); }
#crosshair::after { top: 0; left: 50%; width: 3px; height: 100%; transform: translateX(-50%); }

.vertex-marker { background: #d9534f; border: 2px solid #fff; border-radius: 50%; width: 12px !important; height: 12px !important; margin-left: -6px !important; margin-top: -6px !important; box-shadow: 0 0 4px rgba(0,0,0,0.6); cursor: grab; }
.vertex-marker:active { cursor: grabbing; background: #ffc107; }

.gps-marker-point { background: #007bff; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(0,123,255,0.8); }
.gps-marker-pulse { background: transparent; border: 3px solid #007bff; border-radius: 50%; position: absolute; top:0; left:0; width:100%; height:100%; animation: gpsPulse 1.5s infinite ease-out; }
@keyframes gpsPulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

.svg-pin { filter: drop-shadow(0px 6px 6px rgba(0,0,0,0.6)); outline: none; transition: transform 0.2s; }
.leaflet-tooltip-pane { z-index: 650; } 
.glass-tooltip { background: rgba(255, 255, 255, 0.90) !important; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.5) !important; border-radius: 12px !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important; padding: 16px 20px !important; max-width: 600px !important; min-width: 250px; white-space: normal; text-align: center; cursor: pointer; pointer-events: auto !important; }
.glass-tooltip::before { border-top-color: rgba(255, 255, 255, 0.90) !important; }

.tooltip-cover-image { width: auto; max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 6px; margin: 0 auto 12px auto; display: block; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.tooltip-cat-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: bold; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.tooltip-cat-badge svg, .tooltip-cat-badge i { width: 14px; height: 14px; font-size: 12px; vertical-align: middle; margin-right: 4px; }
.tooltip-title { font-weight: 900; font-size: 18px; color: #222; margin-bottom: 8px; display: block; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 8px; line-height: 1.2;}
.tooltip-desc { font-family: "Georgia", "Times New Roman", serif; font-size: 15px; color: #444; line-height: 1.6; font-weight: normal; text-align: left; }
.tooltip-hint { display: block; text-align: center; font-size: 11px; color: #007bff; margin-top: 10px; font-weight: bold; }

/* MODALLAR ORTAK YAPI VE ROZET TASARIMLARI */
#modalOverlay, #pinDetailModalOverlay, #libModalOverlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(230, 235, 240, 0.4); z-index: 10001; 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
}
#pinDetailModalOverlay { z-index: 10005; }

#planModal, .glass-modal { 
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 90%; max-width: 500px; max-height: 85vh; 
    background: rgba(255, 255, 255, 0.90); border: 1px solid rgba(255,255,255,0.8); 
    z-index: 10002; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); 
    overflow: hidden; font-family: sans-serif; flex-direction: column;
}
#planModal h3, .glass-modal .modal-header { 
    margin: 0; padding: 18px 20px; background: transparent; color: #222; 
    font-size: 18px; font-weight: 900; text-align: center; 
    border-bottom: 2px solid rgba(0,0,0,0.05); position: relative;
}
#modalClose, .modal-close { 
    position: absolute; top: 16px; right: 20px; color: #666; font-size: 24px; 
    cursor: pointer; font-weight: bold; z-index: 10; line-height: 1; transition: 0.2s; 
}
#modalClose:hover, .modal-close:hover { color: #dc3545; transform: scale(1.1); }

#modalContent, .modal-body { 
    padding: 20px; 
    max-height: calc(85vh - 60px); 
    overflow-y: auto; box-sizing: border-box; background: transparent; 
    padding-bottom: 30px; 
}

#pinDetailModal { 
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 100%; max-width: 650px; height: auto; max-height: 90vh; 
    background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255,255,255,0.8); 
    z-index: 10006; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
    overflow: hidden; flex-direction: column; font-family: sans-serif; 
}
.detail-header { background: transparent; color: #222; padding: 18px 25px; position: relative; border-bottom: 3px solid #e83e8c; text-align: center;}
.detail-header h3 { margin: 0; font-size: 22px; font-weight: 900; display: block; padding: 0 40px; box-sizing: border-box; width: 100%; margin-bottom: 4px; }
.detail-close { position: absolute; right: 20px; top: 15px; cursor: pointer; font-size: 32px; font-weight: bold; line-height: 1; transition: 0.2s; color: #666; z-index: 10; }
.detail-close:hover { color: #dc3545; transform: scale(1.1); }
.detail-body { padding: 30px; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; background: transparent; width: 100%; box-sizing: border-box; }

#detailCategory, #detailYear, #libReadMainCategory, #libReadMainYear { 
    font-size: 10px; font-weight: bold; color: #fff; padding: 3px 12px; border-radius: 12px; display: inline-block; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-transform: uppercase; 
}
#detailCategory i, #detailYear i, #libReadMainCategory i, #libReadMainYear i { 
    margin-right: 4px; font-size: 11px;
}
#detailDesc { font-size: 13px; line-height: 1.8; color: #333; width: 100%; max-width: 100%; box-sizing: border-box; text-align: left; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; padding: 0 10px; }

/* ORTAKLAŞTIRILMIŞ DOSYA YÜKLEME VE ÖNİZLEME */
.image-drop-zone, .lib-image-drop-zone { border: 2px dashed #007bff; border-radius: 6px; padding: 15px 10px; text-align: center; background: rgba(255,255,255,0.5); color: #666; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80px; }
.image-drop-zone.dragover, .lib-image-drop-zone.dragover { background: rgba(224, 240, 255, 0.8); border-color: #28a745; color: #28a745; }
.image-drop-zone .drop-text, .lib-image-drop-zone .drop-text { font-size: 11px; font-weight: bold; margin-bottom: 5px; }

.preview-gallery, .lib-preview-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; width: 100%; justify-content: center; pointer-events: auto; box-sizing: border-box; }
.preview-item, .lib-preview-item { position: relative; width: 60px; height: 60px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#fff; border-radius:4px; border:1px solid #ccc; box-shadow:0 2px 4px rgba(0,0,0,0.2); transition:0.2s;}
.preview-item:hover, .lib-preview-item:hover { border-color: #007bff; transform:scale(1.05); }
.preview-item img, .lib-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.preview-item .file-ext, .lib-preview-item .file-ext { font-size: 9px; font-weight: bold; margin-top: 2px; color: #555; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px;}

.preview-item .remove-btn, .lib-preview-item .remove-btn { position: absolute; top: -6px; right: -6px; background: #dc3545; color: white; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,0.5); padding: 0; z-index:10;}
.preview-item .remove-btn:hover, .lib-preview-item .remove-btn:hover { background: #a82333; }

.detail-gallery, .lib-detail-gallery { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; justify-content: center; width: 100%; box-sizing: border-box; }
.detail-gallery img, .lib-detail-gallery img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; cursor: zoom-in; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.2s; border: 2px solid transparent; }
.detail-gallery img:hover, .lib-detail-gallery img:hover { transform: scale(1.05); border-color: #007bff; }

/* TEK VE KUSURSUZ LIGHTBOX EKRANI */
#lightboxOverlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 20, 25, 0.85); z-index: 10010; backdrop-filter: blur(15px); flex-direction: column; justify-content: center; align-items: center; overflow: hidden !important;}
#lightboxImage { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.9); object-fit: contain; cursor: zoom-in; transition: transform 0.3s; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s; z-index: 10011; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6); }
.lightbox-close:hover { color: #dc3545; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 50px; color: rgba(255,255,255,0.7); cursor: pointer; user-select: none; padding: 20px; z-index: 10012; text-shadow: 0 2px 10px rgba(0,0,0,0.8); transition: 0.3s; }
.lightbox-nav:hover { color: #fff; transform: translateY(-50%) scale(1.1); }
.lightbox-nav.left { left: 15px; }
.lightbox-nav.right { right: 15px; }

/* NATIVE PDF SCROLLBAR YAPISI */
#lightboxPdfNative::-webkit-scrollbar { width: 6px; }
#lightboxPdfNative::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 6px; }
#lightboxPdfNative::-webkit-scrollbar-thumb { background: #888; border-radius: 6px; }
#lightboxPdfNative::-webkit-scrollbar-thumb:hover { background: #aaa; }

#savedAreasContainer { margin-top: 15px; }
.measure-card { background: rgba(255,255,255,0.7); border-left: 4px solid #28a745; border-radius: 4px; padding: 10px; margin-bottom: 10px; font-size: 13px; color: #333; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.measure-card.dist { border-left-color: #007bff; }
.measure-card.kml { border-left-color: #fd7e14; }

.card-actions { margin-top: 8px; display: flex; gap: 5px; }
.card-icon-btn { background: #e9ecef; color: #333; border: none; border-radius: 4px; padding: 6px 0; font-size: 15px; cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.card-icon-btn:hover { filter: brightness(0.9); transform: translateY(-1px); }
.card-icon-btn.btn-vis { background: #6c757d; color: white; }
.card-icon-btn.btn-vis.active { background: #28a745; }
.card-icon-btn.btn-edit { background: #ffc107; color: #111; }
.card-icon-btn.btn-save { background: #17a2b8; color: white; }
.card-icon-btn.btn-del { background: #dc3545; color: white; }

.save-input-group { display: flex; gap: 10px; margin-bottom: 5px; }
.save-input-group input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; outline: none; box-sizing: border-box; background: rgba(255,255,255,0.8);}
.save-input-group input:focus { border-color: #007bff; background: #fff;}
.save-input-group button { background: #28a745; color: white; border: none; padding: 10px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.save-input-group button:hover { background: #218838; }

.saved-item { background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.1); padding: 12px; border-radius: 4px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.saved-item:hover { border-color: #b8daff; background: rgba(255,255,255,0.9); }
.saved-item-info { flex: 1; overflow: hidden; }
.saved-item-title { font-weight: bold; font-size: 14px; color: #333; margin-bottom: 4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item-desc { font-size: 11px; color: #666; }
.saved-item-actions { display: flex; gap: 5px; }

.admin-panel { display: flex; flex-direction: column; gap: 15px; }
.admin-section { border: 1px solid #ddd; border-radius: 8px; padding: 12px; background: rgba(255,255,255,0.6); border-left: 4px solid #007bff; }
.admin-title { font-size: 14px; font-weight: 900; color: #333; margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px; }
.admin-section label { font-size: 11px; font-weight: bold; color: #555; display: block; margin-bottom: 3px; }
.admin-section input, .admin-section select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 13px; font-family: inherit; margin-bottom: 8px; background:rgba(255,255,255,0.8);}
.btn-primary { background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-success { background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-info { background: #17a2b8; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }

.backup-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.backup-table th, .backup-table td { padding: 8px; border-bottom: 1px solid #ddd; text-align: left; }
.backup-table th { background: rgba(0,0,0,0.05); font-weight: bold; }
.backup-table button { padding: 4px 8px; border: none; border-radius: 3px; cursor: pointer; font-weight: bold; font-size: 11px; color: white; }

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

#elevationChartContainer { position: fixed; bottom: 0; left: 0; width: 100%; height: 250px; background: rgba(255,255,255,0.95); z-index: 10000; border-top: 3px solid #007bff; box-shadow: 0 -5px 25px rgba(0,0,0,0.4); padding: 10px 30px 10px 10px; box-sizing: border-box; backdrop-filter: blur(8px); transition: transform 0.3s ease; }
#closeChartBtn { position: absolute; top: 10px; right: 20px; font-size: 24px; font-weight: bold; cursor: pointer; color: #dc3545; z-index: 10001; transition: 0.2s; line-height: 1; }
#closeChartBtn:hover { transform: scale(1.1); color: #a82333; }
.tracking-arrow { background: transparent; border: none; }

/* İKON VE RENK YÖNETİCİSİ PANEL STİLLERİ */
.cat-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,0.7); padding: 10px; border-radius: 8px; margin-bottom: 8px; border: 1px solid #ddd; transition: 0.2s; }
.cat-edit-row:hover { border-color: #8e44ad; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateX(-2px); }
.cat-edit-row .cat-name { flex: 1; font-size: 13px; font-weight: bold; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-edit-row input[type="color"] { border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; padding: 0; background: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); flex-shrink: 0; }
.cat-edit-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cat-edit-row input[type="color"]::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; }

.shape-select { padding: 6px; border-radius: 6px; border: 1px solid #ccc; font-size: 12px; outline: none; background: rgba(255,255,255,0.8); cursor: pointer; color: #333; flex-shrink: 0; }

.icon-btn { background: #fff; border: 1px solid #ccc; border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); padding: 2px; flex-shrink: 0; color: #333; }
.icon-btn:hover { background: #f4e8fb; border-color: #8e44ad; transform: scale(1.1); }
.icon-btn svg, .icon-btn img { width: 22px; height: 22px; object-fit: contain; }

#emojiPickerModal::-webkit-scrollbar { width: 8px; }
#emojiPickerModal::-webkit-scrollbar-track { background: transparent; border-radius: 8px; }
#emojiPickerModal::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 8px; }
#emojiPickerModal::-webkit-scrollbar-thumb:hover { background: #8e44ad; }

.svg-upload-box { background: rgba(250, 245, 255, 0.8); border: 2px dashed #8e44ad; border-radius: 8px; padding: 15px 10px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 15px; margin-top: 25px; color: #8e44ad; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: sticky; top: -15px; z-index: 101; backdrop-filter: blur(5px); }
.svg-upload-box:hover { background: #f0e1f9; transform: scale(1.02); border-style: solid; box-shadow: 0 4px 10px rgba(142, 68, 173, 0.2); }
.svg-upload-box .svg-icon { font-size: 26px; line-height: 1; }
.svg-upload-box .svg-title { font-size: 13px; font-weight: 900; }
.svg-upload-box .svg-desc { font-size: 10px; color: #666; }

.fa-link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(224, 240, 255, 0.8); color: #0056b3; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 11px; font-weight: bold; margin-top: 10px; border: 1px solid #b8daff; transition: all 0.2s; }
.fa-link-btn:hover { background: #007bff; color: white; border-color: #007bff; box-shadow: 0 4px 10px rgba(0,123,255,0.3); transform: translateY(-1px); }

.divider { display: flex; align-items: center; text-align: center; color: #aaa; font-size: 11px; font-weight: bold; margin-bottom: 15px; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }

.custom-icon-box { background: rgba(255,255,255,0.6); padding: 10px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.1); margin-bottom: 10px; }
.custom-icon-box input { width: 100%; padding: 10px; border: 2px solid #8e44ad; border-radius: 6px; font-size: 14px; text-align: center; box-sizing: border-box; outline: none; font-weight: bold; font-family: monospace; color: #333; background: rgba(255,255,255,0.9);}
.custom-icon-hint { font-size: 10px; color: #666; text-align: center; margin-top: 5px; line-height: 1.3;}

.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.emoji-item { text-align: center; padding: 8px 0; font-size: 22px; cursor: pointer; border-radius: 6px; transition: 0.2s; line-height: 1; color: #444; display: flex; align-items: center; justify-content: center; }
.emoji-item:hover { background: #f1f3f5; transform: scale(1.4); z-index: 10; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.2); color: #007bff; }
.emoji-category-title { font-size: 13px; font-weight: bold; color: #8e44ad; margin-top: 15px; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; display: flex; align-items: center; gap: 5px; }

.custom-leaflet-icon { background: transparent; border: none; }
.map-pin-wrapper { transform: scale(0.75); transform-origin: bottom center; transition: transform 0.2s; }
.pin-inner-icon {
    position: absolute; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; font-size: 24px; 
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-weight: bold; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    overflow: visible; white-space: nowrap; pointer-events: none;
}
.pin-inner-icon svg, .pin-inner-icon img { width: 28px; height: 28px; object-fit: contain; }
.pin-inner-icon i { font-size: 22px; color: #ffffff; }

/* KÜTÜPHANE MODÜLÜ EKSTRA STİLLERİ */
.btn-manage-cats { background: #e9ecef; color: #333; border: 1px solid #ccc; font-size: 10px; padding: 4px 8px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-weight: bold; margin-bottom: 10px; transition: 0.2s; width: fit-content; }
.btn-manage-cats:hover { background: #dee2e6; color: #000; border-color: #bbb;}

.cat-filter-wrapper { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ddd; }
.cat-pill { background: #f3e8ff; color: #6f42c1; border: 1px solid #d8b4fe; padding: 4px 10px; border-radius: 12px; font-size: 10px; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.cat-pill:hover { background: #e9d5ff; }
.cat-pill.active { background: #6f42c1 !important; color: white !important; border-color: #6f42c1 !important; box-shadow: 0 2px 5px rgba(111,66,193,0.3); }

#libraryDocumentList { overflow-y: auto; flex: 1; padding-right: 5px; }
#libraryDocumentList::-webkit-scrollbar { width: 6px; }
#libraryDocumentList::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.doc-item { background: #fdfdfd; border-radius: 6px; padding: 12px 10px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.2s; border: 1px solid #eee; display: flex; align-items: center; gap: 10px;}
.doc-item:hover { background: #f3e8ff; transform: translateX(3px); box-shadow: 0 4px 8px rgba(111,66,193,0.15); }
.doc-icon { font-size: 16px; }
.doc-title { font-weight: bold; font-size: 13px; color: #333; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.form-label { font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; display: block; margin-top: 15px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 13px; background: rgba(255,255,255,0.8); font-family: inherit; outline: none; transition: 0.2s;}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: #6f42c1; background: #fff; box-shadow: 0 0 0 3px rgba(111,66,193,0.1); }
.form-textarea { height: 140px; resize: vertical; }

.btn-add-new { width: 100%; background: linear-gradient(135deg, #6f42c1, #5a32a3); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3); transition: 0.2s; }
.btn-add-new:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(111, 66, 193, 0.4); }

/* KÜTÜPHANE KAYNAK KUTULARI */
.lib-source-box { background:#fff; border:1px solid #eaeaea; border-radius:10px; padding:15px; margin-bottom:15px; box-shadow:0 2px 8px rgba(0,0,0,0.03); }
.lib-source-header { display:flex; justify-content:flex-start; align-items:center; margin-bottom:10px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px;}
.lib-source-title { font-size:13px; font-weight:900; color:#333; }
.lib-source-content { font-size:14.5px; line-height:1.7; color:#444; white-space:pre-wrap; }
.lib-source-footer { font-size:10px; color:#888; border-top:1px dashed #eee; padding-top:8px; margin-top:12px; font-weight:bold; }

/* MOBİL İKONLAR (Aralıklar ve Boyutlar Kusursuz Eşitlendi) */
@media (max-width: 768px) {
    #hud { width: 95vw; box-sizing: border-box; padding: 4px; gap: 2px; font-size: 7px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; top: 10px; }
    #hud > div { padding: 0 3px !important; margin: 0 !important; border:none !important; }
    #hud > div:nth-child(2) { order: 1; }
    #hud > div:nth-child(3) { order: 2; }
    #hud > div:nth-child(4) { order: 3; }
    #hud::before { content: ""; width: 100%; order: 4; height: 4px; }
    #hud > div:nth-child(1) { order: 5; display:flex; justify-content:center; }
    #hud > div:nth-child(5) { order: 6; display:flex; gap:6px; padding-left:4px !important; }

    .val { font-size: 8px; padding: 1px 2px; margin-left: 2px; }
    .hud-icon-btn { width: 26px; height: 26px; font-size: 13px; }

    /* Tüm Sol Menü İkonlarının Ortak Mobil Tasarımı */
    #locationToggle, #panelToggle, #pinToggle, #categoryToggle, #kmlToggle, #libraryToggle, #timelineToggle { 
        width: 28px !important; height: 28px !important; font-size: 14px !important; left: 10px !important; border-width: 1px !important; 
    }  
    
    /* Mobil İçin Özel Eşit Aralıklar (28px height + 8px gap = 36px step) */
    #locationToggle { top: 65px !important; }
    #panelToggle { top: 101px !important; }
    #pinToggle { top: 137px !important; }
    #categoryToggle { top: 173px !important; }
    #kmlToggle { top: 209px !important; }
    #libraryToggle { top: 245px !important; }
    #timelineToggle { top: 281px !important; }

    #fullscreenToggle { width: 28px !important; height: 28px !important; font-size: 14px !important; left: 10px !important; border-width: 1px !important; bottom: 25px !important; }

    .leaflet-top.leaflet-right { top: 65px !important; right: 10px !important; }
    .leaflet-right .leaflet-control:not(.leaflet-control-zoom) { margin-top: 0 !important; margin-bottom: 3px !important; margin-right: 0 !important; border-width: 1px !important; }
    
    .leaflet-control-layers { border-radius: 50% !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; border: 1px solid #aaa !important; }
    .leaflet-control-layers-toggle { width: 28px !important; height: 28px !important; background-size: 14px 14px !important; }
    .leaflet-control-layers a { font-size: 14px !important; display: flex !important; align-items: center; justify-content: center; }
    .leaflet-control-layers-expanded { border-radius: 6px !important; font-size: 10px !important; padding: 6px !important; }
    .leaflet-control-layers-expanded .leaflet-control-layers-toggle { width: auto !important; height: auto !important; }

    .side-panel { width: calc(100vw - 50px); max-width: 250px; left: -100%; top: 65px !important; padding: 10px; }
    .side-panel.open { left: 45px; }

    .panel-title { font-size: 11px; margin-bottom: 6px; padding-bottom: 2px; }
    .form-group { margin-bottom: 8px; gap: 4px; }
    .form-group input[type="text"], .form-group input[type="number"], .form-group select { padding: 6px; font-size: 11px; }
    .form-group textarea { padding: 6px; font-size: 11px; height: 50px !important; }
    .form-group button { padding: 6px 8px; font-size: 11px; }
    
    #pinInstruction { font-size: 10px; padding: 8px 0; }
    .image-drop-zone, .lib-image-drop-zone { padding: 10px 5px; min-height: 50px; }
    .image-drop-zone .drop-text, .lib-image-drop-zone .drop-text { font-size: 9px; }
    .preview-item, .lib-preview-item { width: 40px; height: 40px; }
    .preview-item .remove-btn, .lib-preview-item .remove-btn { width: 14px; height: 14px; font-size: 8px; top: -4px; right: -4px; }
    
    .cat-filter-item { padding: 2px 6px; font-size: 11px; }
    .cat-filter-count { font-size: 9px; padding: 2px 5px; }
    
    .measure-card { font-size: 11px; padding: 8px; margin-bottom: 6px; }
    .card-icon-btn { font-size: 11px; padding: 4px 0; }
    #droneSettingsGrp label { font-size: 10px; }
    
    .map-pin-wrapper { transform: scale(0.707) !important; transform-origin: bottom center; }

    .glass-tooltip { padding: 8px 10px !important; max-width: 180px !important; min-width: 140px !important; border-radius: 8px !important;}
    .tooltip-title { font-size: 12px !important; margin-bottom: 4px !important; padding-bottom: 3px !important;}
    .tooltip-desc { font-size: 10px !important; line-height: 1.3 !important; }
    .tooltip-cat-badge { font-size: 8px !important; padding: 2px 6px !important; margin-bottom: 4px !important;}
    .tooltip-cover-image { max-height: 70px !important; margin-bottom: 5px !important; border-radius: 4px !important; }
    .tooltip-hint { font-size: 8px !important; margin-top: 5px !important; }

    #drawingActionBar { width: 85vw; font-size: 10px; top: 55px; padding: 6px 10px; flex-wrap: wrap; justify-content: center; }
    #drawingActionBar button { padding: 5px 10px; font-size: 10px; }
    
    #isolationActionBar { width: 90vw; flex-wrap: wrap; justify-content: center; bottom: 15px; padding: 6px; font-size: 10px;}

    #planModal, .glass-modal { width: 90vw; max-height: 85vh; }
    #planModal h3, .glass-modal .modal-header h3 { font-size: 15px !important; margin-bottom: 4px !important; }
    .glass-modal .modal-header { padding: 12px 20px !important; }
    #modalContent, .glass-modal .modal-body { padding: 15px; max-height: calc(85vh - 55px); padding-bottom: 35px; }
    #modalClose, .glass-modal .modal-close { top: 14px; right: 18px; font-size: 22px; }

    .lib-source-box { padding: 10px !important; margin-bottom: 10px !important; border-radius: 8px; }
    .lib-source-header { margin-bottom: 6px !important; padding-bottom: 6px !important; }
    .lib-source-title { font-size: 12px !important; }
    .lib-source-content { font-size: 13px !important; line-height: 1.5 !important; }
    #libReadSourcesContainer { padding: 12px !important; max-height: calc(85vh - 110px) !important;}
    #libActionRow { padding: 0 12px 12px 12px !important; gap: 4px !important; }
    #libActionRow button { padding: 10px !important; font-size: 11px !important; }
    
    #detailCategory, #detailYear, #libReadMainCategory, #libReadMainYear { font-size: 9px !important; padding: 2px 10px !important; margin-bottom: 0 !important; margin-top: 2px !important;}
    
    .saved-item { padding: 8px; margin-bottom: 6px; }
    .saved-item-title { font-size: 12px; }
    .saved-item-desc { font-size: 9px; }
    
     #pinDetailModal { width: 95vw; max-width: none; height: auto; max-height: 95vh; }
    .detail-header { padding: 12px 15px; border-bottom: 2px solid #e83e8c;}
    .detail-header h3 { font-size: 16px !important; padding: 0 30px !important; margin-bottom: 4px !important; }
    .detail-close { top: 12px; right: 12px; font-size: 28px; }
    .detail-body { padding: 15px; }
    #detailDesc { font-size: 12px; line-height: 1.5; }
    .detail-gallery, .lib-detail-gallery { gap: 8px; margin-bottom: 15px; }
    .detail-gallery img, .lib-detail-gallery img { width: 60px; height: 60px; border-radius: 6px; }
    
    #toast { bottom: 60px; width: 75%; text-align: center; font-size: 11px; padding: 8px; }
    
    #globalLoginOverlay > div { padding: 15px; width: 80%; }
    #globalLoginOverlay h2 { font-size: 18px; }
    #loginWelcomeText { font-size: 11px; margin-bottom: 12px;}
    #globalPasswordInput { padding: 10px; font-size: 13px; margin-bottom: 10px; }
    #globalLoginOverlay button { padding: 10px; font-size: 13px; }

    #elevationChartContainer { height: 200px; padding: 5px 25px 5px 5px; }
    #closeChartBtn { top: 5px; right: 10px; font-size: 20px; }
	
	.cat-drag-item { transition: border 0.1s ease, transform 0.2s; background: rgba(255,255,255,0.8); }
    .cat-drag-item.dragging { opacity: 0.4; border: 1px dashed #007bff !important; transform: scale(0.98); }
    .cat-drag-item:hover { background: #fff; }

    .emoji-grid { grid-template-columns: repeat(6, 1fr); }
    .emoji-item { font-size: 22px; padding: 6px 0; }
    .svg-upload-box { margin-top: 20px; }
}

/* LINKED DOCS BİLGİ BANKASI ENTEGRASYONU */
.linked-doc-btn { background: linear-gradient(135deg, #6f42c1, #5a32a3); color: white; border: none; padding: 8px 14px; border-radius: 6px; font-size: 11px; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(111,66,193,0.3); display: flex; align-items: center; gap: 6px; }
.linked-doc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(111,66,193,0.4); filter: brightness(1.1); }
.linked-doc-tag { background: #f3e8ff; color: #6f42c1; border: 1px solid #d8b4fe; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.linked-doc-tag-rmv { cursor: pointer; color: #dc3545; font-weight: 900; font-size: 14px; transition: transform 0.2s; line-height: 1; }
.linked-doc-tag-rmv:hover { transform: scale(1.2); }

/* TIMELINE (ZAMAN TÜNELİ) MODAL & STİLLERİ */
#timelineModalOverlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 20, 25, 0.8); z-index: 10020; backdrop-filter: blur(10px);
}
#timelineModal {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90vw; max-width: 900px; height: 90vh; background: #f8f9fa; 
    border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.3); z-index: 10021;
    flex-direction: column; overflow: hidden; font-family: sans-serif;
}
.timeline-header {
    background: #fff; padding: 20px 30px; border-bottom: 2px solid #eaeaea; position: relative; text-align: center;
}
.timeline-header h2 { margin: 0 0 5px 0; color: #222; font-weight: 900; font-size: 24px; }
.timeline-header p { margin: 0; color: #666; font-size: 13px; }
.timeline-close {
    position: absolute; top: 20px; right: 25px; font-size: 32px; font-weight: bold;
    color: #aaa; cursor: pointer; line-height: 1; transition: 0.2s;
}
.timeline-close:hover { color: #dc3545; transform: scale(1.1); }

.timeline-body {
    flex: 1; overflow-y: auto; padding: 30px 15px; background: #f8f9fa; position: relative;
}
.timeline-body::-webkit-scrollbar { width: 8px; }
.timeline-body::-webkit-scrollbar-track { background: #eee; }
.timeline-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.v-timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.v-timeline::after {
    content: ''; position: absolute; width: 4px; background: #ddd;
    top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px;
}
.v-timeline-item { padding: 10px 40px; position: relative; background: inherit; width: 50%; box-sizing: border-box; }
.v-timeline-item.left { left: 0; }
.v-timeline-item.right { left: 50%; }

.v-timeline-icon {
    position: absolute; width: 40px; height: 40px; right: -20px; top: 15px;
    background: #007bff; border: 4px solid #f8f9fa; border-radius: 50%; z-index: 1;
    display: flex; align-items: center; justify-content: center; color: white;
    font-size: 16px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.v-timeline-item.right .v-timeline-icon { left: -20px; }

.v-timeline-content {
    padding: 20px; background: white; border-radius: 8px; position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}
.v-timeline-content:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: #bbb; }

.v-timeline-content::before {
    content: " "; height: 0; position: absolute; top: 22px; width: 0; z-index: 1;
    border: medium solid white;
}
.v-timeline-item.left .v-timeline-content::before {
    right: -10px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent white;
}
.v-timeline-item.right .v-timeline-content::before {
    left: -10px; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent;
}

.v-timeline-date {
    display: inline-block; padding: 4px 10px; border-radius: 12px; font-weight: 900;
    font-size: 12px; border: 2px solid #ccc; background: rgba(0,0,0,0.02);
}
.v-timeline-cat { font-size: 11px; font-weight: bold; text-transform: uppercase; }
.v-timeline-title { margin: 0 0 10px 0; font-size: 18px; color: #333; font-weight: 900; }
.v-timeline-desc { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }
.v-timeline-hint { margin-top: 15px; font-size: 11px; color: #007bff; font-weight: bold; text-align: right; opacity: 0; transition: opacity 0.3s; }
.v-timeline-content:hover .v-timeline-hint { opacity: 1; }

@media (max-width: 768px) {
    .v-timeline::after { left: 31px; }
    .v-timeline-item { width: 100%; padding-left: 70px; padding-right: 15px; }
    .v-timeline-item.right { left: 0; }
    .v-timeline-icon { left: 11px !important; right: auto !important; width: 32px; height: 32px; font-size: 14px; top: 20px;}
    .v-timeline-item.left .v-timeline-content::before, .v-timeline-item.right .v-timeline-content::before {
        left: -10px; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent;
    }
    .timeline-header { padding: 15px 20px; }
    .timeline-header h2 { font-size: 18px; }
    .timeline-header p { font-size: 11px; }
    .timeline-close { top: 12px; right: 15px; font-size: 28px; }
    .v-timeline-title { font-size: 15px; }
    .v-timeline-desc { font-size: 12px; }
    .v-timeline-date { font-size: 10px; padding: 2px 8px; }
}

/* ========================================================= */
/* BİLGİ BANKASI KAYNAKLARI (MAP PİN DETAY EKRANI İÇİN)      */
/* ========================================================= */
.ref-section-title { font-size: 14px; font-weight: bold; color: #444; margin: 25px 0 15px 0; padding-bottom: 8px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 8px; }
.ref-card { background: #f8f9fa; border: 1px solid #dee2e6; border-left: 4px solid #007bff; border-radius: 8px; padding: 15px; margin-bottom: 15px; transition: 0.2s; }
.ref-card:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #007bff; }
.ref-title { font-size: 14px; font-weight: bold; color: #222; margin: 0 0 8px 0; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; }
.cat-badge { background: #6f42c1; color: white; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; display: inline-flex; align-items: center; margin-top: 1px; }
.ref-metadata { display: flex; flex-wrap: wrap; gap: 15px; font-size: 11px; color: #666; background: #e9ecef; padding: 8px 10px; border-radius: 6px; margin-bottom: 12px; border-left: 2px solid #17a2b8; }
.ref-pages-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ref-pages-label { font-size: 11px; font-weight: bold; color: #555; width: 100%; margin-bottom: 5px; }
.page-pill { display: inline-flex; background: #f0f7ff; border-radius: 6px; overflow: hidden; border: 1px solid #c5dcf1; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.page-pill:hover { background: #0056b3; border-color: #0056b3; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.page-link { font-weight: bold; color: #0056b3; cursor: pointer; padding: 6px 10px; font-size: 11px; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 28px; }
.page-pill:hover .page-link { color: white; }

/* ========================================================= */
/* PİN DETAY: MOBİL REFERANS (KÜNYE) VE SAYFA KUTUCUKLARI UX */
/* ========================================================= */
@media (max-width: 768px) {
    /* Ana Kartı Daralt ve Kenarlıkları İncelterek Yer Kazan */
    .ref-card { padding: 8px 10px !important; margin-bottom: 10px !important; border-width: 1px !important; border-left-width: 3px !important; border-radius: 6px !important; }
    
    /* Araştırma Adı (Daha Küçük Punto ve Ekstra Bold) */
    .ref-title { font-size: 12px !important; font-weight: 800 !important; margin-bottom: 6px !important; gap: 6px !important; line-height: 1.3 !important; }
    .ref-title i { font-size: 12px !important; }
    .ref-title .cat-badge { font-size: 9px !important; padding: 2px 4px !important; border-radius: 4px !important; }
    
    /* Yazar, Kurum, Yıl Bilgileri (Gereksiz boşlukları alınmış kompakt yapı) */
    .ref-metadata { padding: 4px 6px !important; font-size: 9px !important; gap: 8px !important; margin-bottom: 8px !important; border-left-width: 2px !important; border-radius: 4px !important; }
    .ref-metadata span { display: inline-flex; align-items: center; gap: 4px; }
    .ref-metadata i { font-size: 9px !important; }
    
    /* Sayfa Bulgu Etiketi */
    .ref-pages-label { font-size: 10px !important; margin-bottom: 4px !important; width: 100% !important; color: #444 !important; }
    
    /* SAYFA KUTUCUKLARI (1/4 Oranında Küçültülmüş, Yan Yana Sığacak Tasarım) */
    .ref-pages-container { gap: 4px !important; }
    .page-pill { border-radius: 4px !important; }
    
    /* Kutucuk içindeki dikey hizalamayı yataya (row) çekiyor ve boşlukları siliyoruz */
    .page-link { padding: 3px 6px !important; font-size: 10px !important; flex-direction: row !important; gap: 3px !important; min-width: auto !important; height: 22px !important; }
    
    /* Sayfa kutucuğundaki ikon boyutunu minimalize et */
    .page-link i { font-size: 9px !important; margin: 0 !important; }
}

/* ========================================= */
/* GÜVENLİ & GLASSMORPHISM LOGIN EKRANI      */
/* ========================================= */
#loginScreenDiv {
    /* Senin mevcut pozisyon (fixed), genişlik vb. ayarların aynen kalsın */
    /* Sadece aşağıdaki 3 satırı ekleyerek arkadaki haritayı puslu cam yapıyoruz: */
    background: rgba(20, 25, 30, 0.4) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
}