﻿/* ==================== GLOBE SPECIFIC STYLES */
#container {width: 100vw;height: 100vh;position: relative;background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0e1a 70%);}   
        
#info {position: absolute; top: 20px; left: 20px; max-width: 350px;}        
#info p {color: var(--text-dim);font-size: 0.9rem;}

#mineInfo.visible {display: block;opacity: 1;}
#mineInfo .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

/* Mine Details Section */
#mineDetailsSection {padding: 15px 20px;border-bottom: 1px solid var(--border);position: relative;}
#mineDetails {color: var(--text);font-size: 0.9rem;line-height: 1.4;display: grid;grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));gap: 8px;margin-bottom: 10px;}
#mineDetails div {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
#mineDetails strong {color: var(--secondary);font-family: var(--font-tech);}

/* More Tab Styling */
.more-tab {
    position: absolute;
    bottom: -1px;
    right: 20px;
    background: var(--primary);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 0.8rem;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-bottom: none;
    transition: all 0.3s ease;
    z-index: 101;
}

.more-tab:hover {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.more-tab.active {
    background: var(--secondary);
    color: var(--primary);
}

/* More Details Dropdown */
.more-details {
    position: relative;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.more-details.active {
    max-height: 300px;
    overflow-y: auto;
}

.more-details-content {
    padding: 20px;
}

.more-details h5 {
    color: var(--accent);
    font-family: var(--font-tech);
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-item {display: flex;justify-content: space-between;margin-bottom: 5px;font-size: 0.85rem;}
.detail-label {color: var(--text-dim);font-weight: 500;}

.detail-value {
    color: var(--text);
    font-family: var(--font-tech);
    text-align: right;
}

.detail-description {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 8px;
    font-style: italic;
}

/* Resources Section */
.resources-section {
    padding: 15px 20px;
}

.resources-section h5 {
    color: var(--accent);
    font-family: var(--font-tech);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#resourcesContent {
    color: var(--text);
    font-size: 0.85rem;
    margin-top: 10px;
}

#resourcesContent table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#resourcesContent th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 600;
}

#resourcesContent td {
    border: 1px solid var(--border);
    padding: 6px 10px;
    color: var(--text);
    font-family: var(--font-main);
}

#resourcesContent tr:nth-child(even) {
    background: rgba(0, 212, 255, 0.05);
}

#resourcesContent tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Responsive adjustments for Mine Info Panel */
@media (max-width: 1400px) {
    #mineInfo {right: 180px; /* Smaller margin for control panel */}
}

@media (max-width: 1200px) {
    #mineInfo {left: 20px;right: 195px;top: 160px;height: calc(100vh - 180px);}
    #mineDetails {grid-template-columns: 1fr 1fr; /* 2 columns on smaller screens */}
}

@media (max-width: 768px) {
    #mineInfo {
        width: calc(100vw - 40px);
        left: 20px;
        right: 165px;
        top: 160px;
        height: calc(100vh - 180px);
        padding: 0;
    }
    
    #mineInfo .panel-header {
        padding: 12px 15px;
    }
    
    #mineDetailsSection {
        padding: 12px 15px;
    }
    
    .resources-section {
        padding: 12px 15px;
    }
    
    #mineDetails {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 10px;
    }
    
    .more-tab {
        right: 15px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

        /* Tooltip Styles */
.mine-tooltip {background: rgba(0, 0, 0, 0.9);color: white;padding: 8px 12px;border-radius: 6px;font-size: 13px;font-family: Arial, sans-serif;pointer-events: none;z-index: 1000;position: absolute;white-space: nowrap;border: 1px solid #555;box-shadow: 0 2px 8px rgba(0,0,0,0.3);line-height: 1.4;}
.mine-tooltip::after {content: '';position: absolute;top: 100%;left: 50%;margin-left: -5px;border: 5px solid transparent;border-top-color: var(--border);}

.panel-close-btn {background: none !important;border: none !important;color: var(--text) !important;font-size: 24px !important;cursor: pointer !important;padding: 0 !important;transition: color 0.3s ease !important;}
.panel-close-btn:hover {color: var(--danger) !important;}

        /* ==================== GLOBE CONTROLS - Upper Right Vertical */
        #globe-controls {position: fixed !important; top: 20px !important; right: 20px !important; bottom: auto !important; left: auto !important; transform: none !important; display: flex !important; flex-direction: column !important; gap: 12px !important; align-items: stretch !important; width: 160px !important;}



        /* ==================== ZOOM CONTROLS */
        .zoom-controls {display: flex;gap: 4px;margin: 8px 0;}
        .zoom-btn {
            width: 32px !important;
            height: 32px !important;
            background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
            border-radius: 6px !important;
            cursor: pointer !important;
            font-size: 18px !important;
            font-weight: 700 !important;
            font-family: var(--font-tech) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.3s ease !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        .zoom-btn:hover {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%) !important;
            border-color: var(--glow) !important;
            color: var(--primary) !important;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.4) !important;
            transform: translateY(-1px) !important;
        }

        .zoom-btn:active {
            transform: translateY(0) !important;
        }
        
        .marker-info strong {
            color: var(--secondary);
            font-family: var(--font-tech);
        }

        .marker-info table {
            margin-top: 10px;
            font-size: 0.85rem;
        }

        .marker-info th {
            background: rgba(0, 212, 255, 0.1);
            color: var(--secondary);
        }
                
        /* ==================== REGULAR BUTTONS */
        button:not(.zoom-btn):not(.resource-btn):not(.close-btn) {
            background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
            padding: 8px 12px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            font-size: 10px !important;
            font-weight: 600 !important;
            font-family: var(--font-tech) !important;
            width: 100% !important;
            display: block !important;
            transition: all 0.3s ease !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            position: relative !important;
            overflow: hidden !important;
            text-align: center !important;
        }

        button:not(.zoom-btn):not(.resource-btn):not(.close-btn)::before {
            content: '' !important;
            position: absolute !important;
            top: 0 !important;
            left: -100% !important;
            width: 100% !important;
            height: 100% !important;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent) !important;
            transition: left 0.5s !important;
        }
        
        button:not(.zoom-btn):not(.resource-btn):not(.close-btn):hover {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%) !important;
            border-color: var(--glow) !important;
            color: var(--primary) !important;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
            transform: translateY(-1px) !important;
        }

        button:not(.zoom-btn):not(.resource-btn):not(.close-btn):hover::before {
            left: 100% !important;
        }

        button:not(.zoom-btn):not(.resource-btn):not(.close-btn):active {
            transform: translateY(0) !important;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6) !important;
        }
        
        #loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--secondary);
            font-size: 18px;
            font-family: var(--font-tech);
            z-index: 300;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

/* ==================== SCROLLBAR STYLING */
::-webkit-scrollbar {width: 8px;}
::-webkit-scrollbar-track {background: var(--bg);}
::-webkit-scrollbar-thumb {background: var(--secondary);border-radius: 4px;}
::-webkit-scrollbar-thumb:hover {background: var(--accent);}

/* ==================== CONTROL PANEL STYLES */
.control-panel {position: fixed; top: 0; right: -25vw; width: 25vw; height: 100vh; border-left: 2px solid var(--border); z-index: 150; transition: right 0.4s ease; overflow-y: auto;}
.control-panel.open {right: 0;}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}


.close-btn {
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: auto !important;
}

.close-btn:hover {
    color: var(--danger) !important;
}

.panel-content {
    padding: 20px;
}

.control-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h5 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1rem;
}

.control-section label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

.control-section input[type="checkbox"] {
    margin-right: 8px;
}

.control-section select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: var(--primary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Adjust main container when panel is open */
#container.panel-open {
    width: 75vw;
}

/* Side Information Panel */
#sideInfo {position: absolute;top: 160px;left: 20px;z-index: 100;width: 350px; bottom: 240px;overflow-y: auto;}

#sideInfoContent {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

#sideInfoContent .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
}

#sideInfoContent .stat-label {
    color: var(--text-dim);
}

#sideInfoContent .stat-value {
    color: var(--secondary);
    font-family: var(--font-tech);
    font-weight: 600;
}

/* What's New Panel */
.whats-new-panel {
    position: fixed; 
    top: 0; 
    right: -30vw; 
    width: 30vw; 
    height: 100vh; 
    border-left: 2px solid var(--border); 
    z-index: 150; 
    transition: right 0.4s ease; 
    overflow-y: auto;
}

.whats-new-panel.open {
    right: 0;
}
.whats-new-panel.open {right: 0;}
.whats-new-content {padding: 20px;}

.feature-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}

.feature-item h6 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-item p {
    color: var(--text);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.feature-date {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-tech);
}

.resource-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.resource-btn {
    background: var(--primary) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-family: var(--font-tech) !important;
    cursor: pointer !important;
    flex: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: auto !important;
    width: auto !important;
}

.resource-btn:hover {
    background: var(--secondary) !important;
    color: var(--primary) !important;
}

.resource-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.resource-checkboxes label {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-size: 0.8rem;
    padding: 1px 0;
    white-space: nowrap;
}

.resource-checkboxes input[type="checkbox"] {
    margin-right: 4px;
    margin-left: 0;
    flex-shrink: 0;
}

/* ==================== RESPONSIVE */
@media (max-width: 1200px) {
    #globe-controls {right: 10px !important;width: 140px !important;}
    .control-panel {width: 30vw;right: -30vw;}
    #container.panel-open {width: 70vw;}
}

@media (max-width: 768px) {
            body { font-size: 14px; }
            h1 { font-size: 2rem; }
            h2 { font-size: 1.75rem; }
            h3 { font-size: 1.25rem; }
            
            #info {
                padding: 15px;
                max-width: 280px;
                top: 10px;
                left: 10px;
            }
                        
            #globe-controls {
                right: 10px !important;
                width: 120px !important;
                padding: 10px !important;
            }
            
            .toggle-label {
                font-size: 9px;
            }

            .toggle-switch {
                width: 32px;
                height: 16px;
            }

            .toggle-slider {
                width: 12px;
                height: 12px;
            }

            .toggle-switch.active .toggle-slider {
                left: 18px;
            }

            .zoom-btn {
                width: 28px !important;
                height: 28px !important;
                font-size: 16px !important;
            }
            
            button:not(.zoom-btn):not(.resource-btn):not(.close-btn) {
                padding: 6px 10px !important;
                font-size: 9px !important;
            }
            
            #resourcesContent th,
            #resourcesContent td {
                padding: 4px 6px;
                font-size: 0.75rem;
            }

            .control-panel {
                width: 100vw;
                right: -100vw;
            }
            
            #container.panel-open {
                width: 0;
            }
        }

        @media (max-width: 480px) {
            #globe-controls {
                width: 110px !important;
            }
            
            .toggle-label {
                font-size: 8px;
            }

            button:not(.zoom-btn):not(.resource-btn):not(.close-btn) {
                padding: 5px 8px !important;
                font-size: 8px !important;
            }

            .zoom-btn {
                width: 24px !important;
                height: 24px !important;
                font-size: 14px !important;
            }
        }


        
/* Override any conflicting styles */
.panel-content button:not(.admin-clear-cache-btn):not(.admin-globe-btn-compact):not(.globe-icon-btn):not(.admin-login-btn) {
    all: unset;
    background: #607d8b !important;
    color: white !important;
    border: 1px solid #546e7a !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-family: Arial, sans-serif !important;
    display: inline-block !important;
    text-align: center !important;
    transition: background-color 0.3s !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

.panel-content button:not(.admin-clear-cache-btn):not(.admin-globe-btn-compact):not(.globe-icon-btn):not(.admin-login-btn):hover {
    background: #546e7a !important;
}

/* Shortcut-specific styles - minimal additions */
.shortcut-list {
    margin: 10px 0;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.2);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-key {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.shortcut-desc {
    color: #b0bec5;
    font-size: 12px;
    margin-left: 15px;
    flex: 1;
}

.shortcut-tip {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.shortcut-tip p {
    color: #ffc107 !important;
    text-align: center;
    margin: 8px 0;
}

/* Search Control Styles */
.search-control {
    margin-bottom: 12px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100% !important;
    padding: 8px 25px 8px 10px !important;
    background: rgba(16, 32, 50, 0.9) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    color: var(--text) !important;
    font-size: 11px !important;
    font-family: var(--font-main) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

.search-input::placeholder {
    color: var(--text-dim) !important;
    font-style: italic !important;
}

.search-clear-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background: none !important;
    border: none !important;
    color: var(--text-dim) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-clear-btn:hover {
    background: rgba(255, 82, 82, 0.2) !important;
    color: var(--danger) !important;
}

.search-count {
    font-size: 9px !important;
    color: var(--text-dim) !important;
    font-family: var(--font-tech) !important;
    text-align: center !important;
    margin-top: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input {font-size: 10px !important;padding: 6px 22px 6px 8px !important;}
    .search-count {font-size: 8px !important;}
    .search-clear-btn {width: 18px !important;height: 18px !important;font-size: 14px !important;}
}

