/* URL Redirection Chain Visualization Dashboard Styles */

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.dashboard-header {
    flex: 0 0 auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    z-index: 10;
}

.dashboard-content {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
}

.dashboard-sidebar {
    flex: 0 0 300px;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 1rem;
    transition: all 0.3s ease;
}

.dashboard-sidebar-collapsed {
    flex: 0 0 50px;
}

.dashboard-main {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background-color: #fff;
    position: relative;
}

/* Panel Layout Modes */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-auto-rows: minmax(400px, auto);
    gap: 1rem;
    padding: 0.5rem;
}

.stacked-layout .dashboard-grid {
    display: block;
}

.stacked-layout .dashboard-panel {
    margin-bottom: 1rem;
}

.tabbed-layout .dashboard-panel:not(.active-panel) {
    display: none;
}

/* Dashboard Panels */
.dashboard-panel {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: all 0.3s ease;
}

.dashboard-panel-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.dashboard-panel-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem;
    position: relative;
}

/* Expanded Panel */
.panel-expanded {
    grid-column: 1 / -1;
    min-height: 600px;
}

/* Panel Placeholder and Drag Zone */
.panel-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.panel-drag-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px dashed #007bff;
    border-radius: 0.25rem;
    z-index: 1000;
    display: none;
}

.drag-over .panel-drag-zone {
    display: block;
}

/* Add Panel Button */
.add-panel-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-panel-btn:hover {
    transform: scale(1.1);
    background-color: #0069d9;
}

/* Panel Controls */
.panel-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

/* Comparison Panel */
.comparison-panel {
    background-color: #f8f9ff;
}

/* Visualizations */
.visualization-container {
    width: 100%;
    height: 350px;
    position: relative;
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

/* Loading Indicator */
#loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .dashboard-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1001;
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dashboard-panel {
        min-height: 300px;
    }
    
    .panel-expanded {
        min-height: 450px;
    }
}

/* Dark Mode */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] .dashboard-header,
[data-theme="dark"] .dashboard-sidebar {
    background-color: #343a40;
    border-color: #495057;
}

[data-theme="dark"] .dashboard-main {
    background-color: #212529;
}

[data-theme="dark"] .dashboard-panel {
    background-color: #343a40;
    border-color: #495057;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .dashboard-panel-header {
    background-color: #212529;
    border-color: #495057;
}

[data-theme="dark"] .panel-placeholder {
    border-color: #495057;
    background-color: #2c3136;
}

[data-theme="dark"] #loading-indicator {
    background-color: rgba(33, 37, 41, 0.8);
} 