body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background-color: #1e1e1e;
    color: #d4d4d4;
}

.visualization-panel {
    position: fixed;
    right: -600px; /* main screen ke liye */
    top: 20px;
    width: 600px;
    height: 80vh;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.visualization-panel.visible {
    right: 20px;
    opacity: 1;
}

.visualization-header {
    padding: 10px;
    background: #1e1e1e;
    border-bottom: 1px solid #3c3c3c;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visualization-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.visualization-tabs {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #3c3c3c;
}

.visualization-tab {
    padding: 5px 10px;
    background: none;
    border: none;
    color: #d4d4d4;
    cursor: pointer;
}

.visualization-tab.active {
    background: #0e639c;
    border-radius: 4px;
}

.diagram-container {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.diagram-container svg {
    width: 100%;
    height: 100%;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.zoom-button {
    padding: 5px 10px;
    background: #0e639c;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}


.sidebar {
    width: 280px;
    background-color: #252526;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #3c3c3c;
}

.content {
    flex-grow: 1;
    display: grid;
    grid-template-rows: 1fr 250px 200px;
    overflow: hidden;
}
.debugger-logo {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: contain;
}

h2 {
    display: flex;
    align-items: center;
}

h2, h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    border-bottom: 1px solid #3c3c3c;
    position: relative;
}

button {
    padding: 8px 12px;
    background-color: #0e639c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

button:hover:not(:disabled) {
    background-color: #1177bb;
}

button:disabled {
    background-color: #404040;
    cursor: not-allowed;
    opacity: 0.7;
}

.code-area {
    background-color: #1e1e1e;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 0.9;
    padding: 10px 0;
    position: relative;
}

.code-line {
    padding: 0 5px 0 30px;
    position: relative;
    white-space: pre;
    min-height: 14px;
    line-height: 0.9;
}
.profile-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(74, 144, 226, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-panel.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.profile-header {
    padding: 1.5rem 2rem;
    background: rgba(24, 24, 24, 0.95);
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-header span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-header span::before {
    content: "";
    font-size: 1.4rem;
}


.profile-content {
    flex: 1;
    padding: 20px;
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.chart-container {
    flex: 1;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    height: auto;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.chart-containers {
    flex: 1;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    height: auto;
    min-height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.code-line:hover {
    background-color: #2d2d2d;
}

.code-line.active {
    background-color: #264f78;
}

.code-line::before {
    content: attr(data-line);
    position: absolute;
    left: 0;
    width: 25px;
    padding-right: 5px;
    color: #858585;
    text-align: right;
}

.code-line.breakpoint::after {
    content: "●";
    position: absolute;
    left: 3px;
    
    color: #d16969;
}

.hljs {
    background: transparent;
    padding: 0;
}

.variable-tooltip {
    position: absolute;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    padding: 8px;
    border-radius: 4px;
    z-index: 1000;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    pointer-events: none;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.debug-info {
    background-color: #252526;
    border-top: 1px solid #3c3c3c;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.variables-panel, .stack-panel {
    padding: 15px;
    overflow-y: auto;
}

.variable-group {
    margin-bottom: 15px;
}

.section-title {
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #3c3c3c;
}

.variable-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.variable-item:hover {
    background-color: #2d2d2d;
}

.variable-name {
    color: #9cdcfe;
    white-space: nowrap;
}

.variable-value {
    color: #ce9178;
    overflow-x: auto;
    white-space: nowrap;
}

.stack-frame {
    padding: 8px;
    margin: 4px 0;
    background-color: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
}

.stack-frame:hover {
    background-color: #383838;
}

.stack-frame.active {
    background-color: #044b6e;
}

.output-panel {
    background-color: #1e1e1e;
    border-top: 1px solid #3c3c3c;
    padding: 15px;
    overflow-y: auto;
}

.output-content {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    margin: 0;
    color: #dcddde;
}

.breakpoint-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.breakpoint-input input {
    padding: 4px 8px;
    background: #3c3c3c;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    width: 100%;
}

.breakpoint-input button {
    align-self: flex-start;
}

.breakpoint-line-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.breakpoint-line-container input {
    width: 100px;
}

.file-upload {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0e639c;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: background-color 0.2s;
}

.file-upload-label:hover {
    background-color: #1177bb;
}

.error-message {
    background-color: #ff000033;
    color: #ff6b6b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 13px;
}

.code-evaluation-panel {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 400px;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
}

.code-evaluation-header {
    padding: 10px;
    background: #1e1e1e;
    border-bottom: 1px solid #3c3c3c;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-evaluation-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.code-evaluation-input {
    width: 100%;
    min-height: 60px;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    color: #d4d4d4;
    padding: 8px;
    font-family: 'Consolas', monospace;
    margin-bottom: 10px;
    resize: vertical;
}

.evaluation-result {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-family: 'Consolas', monospace;
}

.side-effect {
    color: #f9826c;
    margin-top: 5px;
    font-size: 0.9em;
}

.selection-controls {
    position: absolute;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 5px;
    display: none;
    z-index: 1000;
}

.selection-info {
    background: #0e639c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    margin-top: 8px;
    z-index: 1000;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #d4d4d4;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.selection-active {
    background-color: #264f78 !important;
}




.main-content-wrapper {
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 100%;
}

body.editor-open .main-content-wrapper {
    filter: blur(5px);
    pointer-events: none;
}


.editor-panel {
    position: fixed;
    right: -600px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    width: 600px;
    height: 80vh;
    background: rgba(31, 31, 31, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
}

.editor-panel.open {
    right: 20px;
    transform: translateY(-50%) scale(1);
    opacity: 1;
}


.editor-header {
    padding: 20px;
    background: rgba(31, 31, 31, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-header span {
    font-size: 1.1em;
    font-weight: 500;
    color: #fff;
}

.editor-controls {
    padding: 20px;
    background: rgba(31, 31, 31, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

.editor-controls button {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.editor-controls button:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.code-editor {
    flex: 1;
    width: 100%;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    resize: none;
    background: rgba(31, 31, 31, 0.6);
    color: #d4d4d4;
    outline: none;
    tab-size: 4;
}
.editor-toggle-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #4a90e2;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-toggle-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.editor-toggle-button span {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.editor-toggle-button:hover span {
    transform: rotate(-10deg);
}
body.editor-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.editor-open.fade-in::after {
    opacity: 1;
}

body.profile-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.profile-open.fade-in::after {
    opacity: 1;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}
.mermaid-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    max-width: 200px;
    white-space: pre-wrap;
}

#diagramContainer svg {
    width: 100%;
    height: 100%;
    transition: transform 0.2s;
}

.node:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

.edgeLabel:hover {
    filter: brightness(1.2);
}

.code-area::-webkit-scrollbar,
.variables-panel::-webkit-scrollbar,
.stack-panel::-webkit-scrollbar,
.output-panel::-webkit-scrollbar,
.visualization-content::-webkit-scrollbar,
.code-evaluation-content::-webkit-scrollbar,
.code-editor::-webkit-scrollbar,
.profile-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-area::-webkit-scrollbar-track,
.variables-panel::-webkit-scrollbar-track,
.stack-panel::-webkit-scrollbar-track,
.output-panel::-webkit-scrollbar-track,
.visualization-content::-webkit-scrollbar-track,
.code-evaluation-content::-webkit-scrollbar-track,
.code-editor::-webkit-scrollbar-track,
.profile-content::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.code-area::-webkit-scrollbar-thumb,
.variables-panel::-webkit-scrollbar-thumb,
.stack-panel::-webkit-scrollbar-thumb,
.output-panel::-webkit-scrollbar-thumb,
.visualization-content::-webkit-scrollbar-thumb,
.code-evaluation-content::-webkit-scrollbar-thumb,
.code-editor::-webkit-scrollbar-thumb,
.profile-content::-webkit-scrollbar-thumb {
    background: #3c3c3c;
    border-radius: 4px;
}

.code-area::-webkit-scrollbar-thumb:hover,
.variables-panel::-webkit-scrollbar-thumb:hover,
.stack-panel::-webkit-scrollbar-thumb:hover,
.output-panel::-webkit-scrollbar-thumb:hover,
.visualization-content::-webkit-scrollbar-thumb:hover,
.code-evaluation-content::-webkit-scrollbar-thumb:hover,
.code-editor::-webkit-scrollbar-thumb:hover,
.profile-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3c3c3c #1e1e1e;
}

@supports (-ms-overflow-style: none) {
    .code-area,
    .variables-panel,
    .stack-panel,
    .output-panel,
    .visualization-content,
    .code-evaluation-content,
    .code-editor,
    .profile-content {
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}

@supports (-ms-ime-align: auto) {
    .code-area,
    .variables-panel,
    .stack-panel,
    .output-panel,
    .visualization-content,
    .code-evaluation-content,
    .code-editor,
    .profile-content {
        scrollbar-width: thin;
        scrollbar-color: #3c3c3c #1e1e1e;
    }
}

.variable-value {
    -ms-overflow-style: none;
    scrollbar-width: none; 
}
.variable-value::-webkit-scrollbar {
    display: none;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .variable-value {
        -ms-overflow-style: none;
    }
}

.breakpoint {
    background-color: rgba(255, 0, 0, 0.1);
    position: relative;
}

.conditional-breakpoint {
    background-color: rgba(255, 165, 0, 0.15);
    border-left: 3px solid orange;
}

.conditional-indicator {
    position: absolute;
    left: -20px;
    color: orange;
    cursor: help;
}

.conditional-breakpoint::before {
    content: "?";
    position: absolute;
    left: -20px;
    color: #ffd700;
}


.breakpoint-list {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #3c3c3c;
    padding-top: 8px;
}

.breakpoint-item {
    display: flex;
    margin: 5px 0;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin: 2px 0;
    background-color: #2d2d2d;
    border-radius: 4px;
}

.breakpoint-item .condition {
    font-size: 0.9em;
    color: #ffa500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 10px;
    overflow: hidden;
    font-style: italic;
    text-overflow: ellipsis;
}
.breakpoint-item button {
    padding: 2px 6px;
    background: #444;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
}

.condition-icon {
    color: orange;
    font-size: 1.1em;
}

.remove-breakpoint {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
}

.remove-breakpoint:hover {
    background: rgba(255, 68, 68, 0.1);
}

.resource-monitor {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(37, 37, 38, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    width: 160px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
}
.resource-monitor::after {
    content: "⋮";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #4a90e2;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.resource-monitor:hover::after {
    opacity: 1;
}
.resource-monitor:hover {
    background: rgba(37, 37, 38, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(74, 144, 226, 0.4);
}

.resource-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(31, 31, 31, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.resource-detail-header {
    padding: 1.5rem 2rem;
    background: rgba(28, 28, 28, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.resource-detail-header h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.resource-detail-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 5rem);
}
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.resource-item:last-child {
    margin-bottom: 0;
}
.resource-item:hover {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(74, 144, 226, 0.3);
}

.resource-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.resource-detail.show, .resource-overlay.show {
    display: block;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    background: rgba(45, 45, 45, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 1.5rem;
}

.resource-value {
    margin-left: auto;
    font-weight: 500;
    color: #4a90e2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.1rem 0.3rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 3px;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.chart-container {
    background: rgba(28, 28, 28, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chart-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.chart-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.metric-value {
    color: #4a90e2;
    font-weight: 500;
}

/* Resource Stats Section */
.resource-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(45, 45, 45, 0.7);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.8rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.negative {
    color: #f44336;
}

/* Animation and Transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.resource-detail.show {
    display: block;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Styling */
.resource-detail-content::-webkit-scrollbar {
    width: 8px;
}

.resource-detail-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 4px;
}

.resource-detail-content::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(30, 30, 30, 0.8);
}

.resource-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.5);
}

body.resource-detail-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 20;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.resource-detail-open.fade-in::after {
    opacity: 1;
}