﻿.control-section {
    /* height: calc(100vh - 90px)*/
    height: inherit;
}

.wrapper {
    width:100%;
}
.switch-control .heading {
    text-indent: 15px;
    padding: 15px 0;
}

.switch-control div {
    display: flex;
    align-items: center;
}

.switch-control {
    margin: 0 auto;
    width: 275px;
}

.switch-control label {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    font-size: 13px;
}

.switch-control .e-disabled {
    pointer-events: none;
}

.button-container {
    display: flex;
    flex-direction: column; /* Ensures buttons stack vertically */
    gap: 8px; /* Adjusts spacing between buttons */
}

.uniform-button {
    width: 100%; /* Makes all buttons the same width */
    max-width: 150px; /* Limits the width of the button */
    height: 40px; /* Sets a uniform height */
    margin: 0 auto; /* Centers the buttons */
}
.navigation-link {
    color: #007bff; /* Blue color for the hyperlink */
    text-decoration: underline; /* Underline to indicate it's a link */
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
}

    .navigation-link:hover {
        color: #0056b3; /* Darker blue when the link is hovered */
        text-decoration: underline; /* Keep underline on hover */
    }

.e-grid[disable="yes"] {
    opacity: .5;
    pointer-events: none;
    -ms-touch-action: none;
    touch-action: none;
    cursor: no-drop;
}

.e-accordion {
    border: none !important;
}

/*.e-card {
    border: none !important;
}

    .e-card .e-card-content {
        background-color: #f5f5f5 !important;
        border: 1px solid #dee2e6;
    }

    .e-card .e-card-actions {
        background-color: #f5f5f5 !important;
    }

     .NoBoundaryCard .e-card-content {
        background-color: #f5f5f5 !important;
        border: none !important;
    }

    .e-card .e-card-header {
        box-sizing: border-box;
        display: flex;
        background: #4f46e5 !important;
        color: white !important;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-pack: center;
        justify-content: left !important;
        line-height: normal;
        min-height: 22.5px;
        padding: 12px;
        width: inherit;
        padding-bottom: 12px !important;        
    }

        .e-card .e-card-header .e-card-header-caption .e-card-header-title {
            font-size: 16px !important;
            font-weight: bold !important;
            line-height: 1.5 !important;
            color: white !important;
        }*/

.BoundaryCard {
    border: 1px solid #dee2e6 !important;
}

.BoundaryCard .e-card-content {
    background-color: #f5f5f5 !important;
    border: none !important;
}

.FixedHeightCard .e-card-content {
    background-color: #f5f5f5 !important;
    border: none !important;
    height: 450px !important;
}
.BoundaryCard .e-card-header {
    box-sizing: border-box;
    display: flex;
    background: #f5f5f5 !important;
    color: black !important;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: normal;
    min-height: 22.5px;
    padding: 12px;
    width: inherit;
    padding-bottom: 12px !important;
}

    .BoundaryCard .e-card-header .e-card-header-caption .e-card-header-title {
        font-size: 16px !important;
        font-weight: bold !important;
        line-height: 1.5 !important;
        color: black !important;
    }

.e-accordion .e-acrdn-item .e-acrdn-header {
    background: #4f46e5 !important;
    color: white !important;
}

    .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
        font-weight: bold !important;
        font-size: 16px !important;
        color: white !important;
    }


.e-accordion .AlwaysVisibleAccordion.e-acrdn-item .e-acrdn-header .e-toggle-icon .e-icons {
    visibility: hidden !important;
}

.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon .e-icons {
    color: white !important;
}

.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-icon {
    color: white !important;
}

.e-accordion .e-acrdn-item .e-acrdn-panel {
    border: 1px solid #dee2e6 !important;
    background-color: #f5f5f5 !important;
}


/*.e-toolbar .e-toolbar-item .e-tbar-btn {
    background: #4f46e5 !important;
    border: none !important;
}

    .e-toolbar .e-toolbar-item .e-tbar-btn:hover {
        background: #f5f5f5 !important;
        border: 1px solid #4f46e5 !important;
    }

    .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
        color: white !important;
    }

    .e-toolbar .e-toolbar-item .e-tbar-btn:hover .e-tbar-btn-text {
        color: #4f46e5 !important;
    }

    .e-toolbar .e-toolbar-item .e-tbar-btn.e-tbtn-txt .e-icons.e-btn-icon {
        color: white !important;
    }

    .e-toolbar .e-toolbar-item .e-tbar-btn:hover.e-tbtn-txt .e-icons.e-btn-icon {
        color: #4f46e5 !important;
    }*/

.e-grid .e-gridheader .e-headertext {
    font-weight: bold !important;
    font-size: 12px !important;
    
}

.e-grid .e-rowcell {
    font-size: 11px !important;
}

.e-reportviewer-pageviewcontainer {
    background-color: white !important;
}

.e-reportviewer-pageouterline {
    margin: 0 !important;
    padding: 0 !important;
}

/*.e-daterangepicker.e-popup .e-presets {
    height: 80px;
}*/

/* Theme Selector Styles */
.theme-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bs-body-bg);
    border-radius: 6px;
    border: 1px solid var(--bs-border-color);
}

.theme-dropdown {
    min-width: 220px;
}

.theme-dropdown .e-input-group {
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
}

.theme-dropdown .e-input-group:hover {
    border-color: var(--bs-primary);
}

/* Dark theme specific adjustments */
[data-bs-theme="dark"] .theme-selector-container {
    background: var(--bs-dark);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .theme-dropdown .e-input-group {
    background: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .theme-dropdown .e-input-group:hover {
    border-color: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-dropdown {
        min-width: 180px;
    }
    
    .theme-selector-container {
        padding: 6px 12px;
    }
}

/* Lastgangdaten Page Optimizations */
.lastgangdaten-page {
    /* Optimize rendering performance */
    will-change: transform;
    contain: layout style paint;
}

/* Optimized Chart Container */
.chart-loading-container {
    position: relative;
    min-height: 950px;
    background: var(--bs-body-bg);
    border-radius: 8px;
    overflow: hidden;
}

.chart-loading-container .skeletonRectangle {
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Progress Bar Styling */
.progress-info {
    padding: 8px 0;
    background: var(--bs-light);
    border-radius: 6px;
    padding: 12px;
}

.progress-info .progress {
    height: 6px;
    border-radius: 3px;
    background: var(--bs-gray-200);
}

.progress-info .progress-bar {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Button Loading States */
.btn-load-diagram {
    min-width: 120px;
    position: relative;
    transition: all 0.2s ease;
}

.btn-load-diagram:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-load-diagram .e-spinner-pane {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Accordion Performance */
.control-section .e-accordion {
    /* Optimize accordion rendering */
    contain: layout style;
}

.control-section .e-accordion .e-acrdn-item {
    /* Reduce repaints during expansion/collapse */
    will-change: height;
}

/* Tab Performance */
.default-tab.e-fill {
    /* Optimize tab switching */
    contain: layout style paint;
}

.default-tab.e-fill .e-tab-content {
    /* Prevent layout shifts */
    min-height: 950px;
}

/* Data Grid Optimizations */
.e-grid {
    /* Optimize grid rendering */
    contain: layout style;
}

.e-grid .e-gridcontent {
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-loading-container {
        min-height: 600px;
    }
    
    .default-tab.e-fill .e-tab-content {
        min-height: 600px;
    }
    
    .btn-load-diagram {
        min-width: 100px;
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

/* Performance Monitoring */
.performance-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bs-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9999;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.performance-indicator:hover {
    opacity: 1;
}

/* Memory Usage Indicator */
.memory-usage {
    background: var(--bs-warning);
    color: var(--bs-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Cache Status */
.cache-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

.cache-status .cache-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-success);
}

.cache-status .cache-indicator.invalid {
    background: var(--bs-danger);
}

/* Smooth Transitions */
.e-accordion,
.e-tab,
.e-card,
.e-button {
    transition: all 0.2s ease;
}

/* Optimize for High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chart-loading-container,
    .e-skeleton {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .e-spinner-pane,
    .progress-bar,
    .e-accordion,
    .e-tab,
    .e-card,
    .e-button {
        animation: none !important;
        transition: none !important;
    }
    
    .chart-loading-container .skeletonRectangle {
        animation: none !important;
    }
}