
:root {

    --colour-dashboard-primaryText: #000000;
    --colour-dashboard-secondaryText: #1e293b;

    --colour-dashboard-itemType-datacenter: #1e40af;
    --colour-dashboard-itemType-hypervisor: #059669;
    --colour-dashboard-itemType-vm: #7c3aed;
    --colour-dashboard-itemType-ct: #ea580c;

    --colour-dashboard-status-running: #10b981;
    --colour-dashboard-status-stopped: #ef4444;
    --colour-dashboard-status-unknown: #f59e0b;

    --colour-dashboard-resource-cpu: #3b82f6;
    --colour-dashboard-resource-memory: #10b981;
    --colour-dashboard-resource-storage: #f59e0b;
}



#OSWindow {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    background: #f0f0f0;
    overflow: hidden;
}















.HypervisorContainer {
    height: 100vh;
}

/* Header */
.HypervisorHeader {
    background: #2e2e2e;
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}

.HypervisorHeader-Left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.HypervisorHeader-Right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.HypervisorHeaderControlButton {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.HypervisorHeaderControlButton:hover {
    background: rgba(255,255,255,0.2);
}

/* Main Content */
.HypervisorMainContent {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.HypervisorSideBar {
    height: 100vh;
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.HypervisorSideBarHeader {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.HypervisorSideBar-TreeView {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.HypervisorSideBar-TreeNode {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    position: relative;
    font-size: 13px;
}

.HypervisorSideBar-TreeNode:hover {
    background: #f1f5f9;
}

.HypervisorSideBar-TreeNode.selected {
    background: #e0e7ff;
    border-right: 3px solid #3b82f6;
    color: #1e40af;
}

.HypervisorSideBar-TreeNode.HypervisorSideBar-TreeNode-Datacenter {
    font-weight: 600;
    color: var(--colour-dashboard-itemType-datacenter);
}

.HypervisorSideBar-TreeNode.HypervisorSideBar-TreeNode-Hypervisor {
    color: var(--colour-dashboard-itemType-hypervisor);
    font-weight: 500;
}
.HypervisorSideBar-TreeNode.HypervisorSideBar-TreeNode-VM { color: var(--colour-dashboard-itemType-vm); }
.HypervisorSideBar-TreeNode.HypervisorSideBar-TreeNode-Container { color: var(--colour-dashboard-itemType-ct); }


.HypervisorSideBar-TreeChildren {
    margin-left: 16px;
}

.HypervisorSideBar-TreeNode-Status {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.HypervisorSideBar-TreeNode-Status-Running { background: var(--colour-dashboard-status-running); }
.HypervisorSideBar-TreeNode-Status-Stopped { background: var(--colour-dashboard-status-stopped); }
.HypervisorSideBar-TreeNode-Status-Unknown { background: var(--colour-dashboard-status-unknown); }

/* Content Area */
.HypervisorContentArea {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.HypervisorContentHeader {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
}

#Hypervisor-Dashboard-Title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

#HypervisorContent-ToolBar {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.HypervisorContent-ToolBarButton {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.HypervisorContent-ToolBarButton:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

#HypervisorContentBodyContainer {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.HypervisorContentBody {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: #f8fafc;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    visibility: hidden;
}

.HypervisorContentBody.active {
    opacity: 1;
    visibility: visible;
}



















.Hypervisor-Dashboard-Grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.Hypervisor-Dashboard-Card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.Hypervisor-Dashboard-CardHeader {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    color: var(--colour-dashboard-primaryText);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.Hypervisor-Dashboard-CardBody {
    padding: 20px;
}

.Hypervisor-Dashboard-StatValue {
    font-size: 2.5em;
    font-weight: 750;
    color: var(--colour-dashboard-primaryText);
}

.Hypervisor-Dashboard-StatLabel {
    font-size: 1.5em;
    color: var(--colour-dashboard-primaryText);
    text-transform: uppercase;
}

.Hypervisor-Dashboard-ResourceBar {
    height: 1em;
    background: #e2e8f0;
    border-radius: 5em;
    margin: 8px 0;
    overflow: hidden;
}

.Hypervisor-Dashboard-ResourceFill {
    height: 100%;
    border-radius: 5em;
    transition: width 0.25s ease;
}

.Hypervisor-Dashboard-Resource-CPU { background: var(--colour-dashboard-resource-cpu); }
.Hypervisor-Dashboard-Resource-Memory { background: var(--colour-dashboard-resource-memory); }
.Hypervisor-Dashboard-Resource-Storage { background: var(--colour-dashboard-resource-storage); }


.Hypervisor-Dashboard-Info-Section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
}

.Hypervisor-Dashboard-Info-Title {
    font-size: 18px;
    font-weight: 600;
    color: var(--colour-dashboard-primaryText);
    margin-bottom: 16px;
}

.Hypervisor-Dashboard-Info-Grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.Hypervisor-Dashboard-Info-Item {
    display: flex;
    justify-content: space-between;
}

.Hypervisor-Dashboard-Info-Label {
    font-weight: 500;
    color: var(--colour-dashboard-secondaryText);
}

.Hypervisor-Dashboard-Info-Value {
    color: var(--colour-dashboard-primaryText);
}