/* Telegram Network Visualizer - Basic Styles */

.telegram-network-container {
    width: 100%;
    height: 700px;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.network-app {
    width: 100%;
    height: 100%;
}

.network-graph {
    width: 100%;
    height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.stat-box {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.network-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1001;
    pointer-events: none;
    max-width: 250px;
}

/* Responsive */
@media (max-width: 768px) {
    .telegram-network-container {
        height: 600px;
    }
    
    .network-graph {
        height: 400px;
    }
}

/* Vue App Specific Styles */
#telegram-network-vue-app,
.telegram-network-vue-app {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* Loading Overlay */
/* This rule is already defined above, but the new block redefines it.
   Keeping the new definition as per instruction to append. */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

/* Error Overlay */
/* This rule is already defined above, but the new block redefines it.
   Keeping the new definition as per instruction to append. */
.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* Side Panel */
.network-sidepanel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: calc(100% - 40px);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 500;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidepanel-header {
    background: #118AB2;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidepanel-body {
    padding: 20px;
}

/* Controls Panel (Top Left) */
.network-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 500;
    padding: 15px;
}

/* Tooltip */
/* This rule is already defined above, but the new block redefines it.
   Keeping the new definition as per instruction to append. */
.network-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 2000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    min-width: 180px;
}

/* Stat Box */
/* This rule is already defined above, but the new block redefines it.
   Keeping the new definition as per instruction to append. */
.stat-box {
    background: #f1f3f5;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #118AB2;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
}

/* Connections list */
.connections-list {
    max-height: 150px;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
}

.connection-item {
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.connection-item:last-child {
    border-bottom: none;
}

/* Search bar improvements */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 10;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #06D6A0;
    transition: width 0.3s ease;
}
