﻿/* Simple PowerShell Syntax Highlighting */
.code-container {
    position: relative;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #1e1e1e;
    font-family: 'Consolas', 'Courier New', monospace;
}

.code-toolbar {
    background: #2d2d2d;
    border-bottom: 1px solid #555;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-toolbar .language {
    color: #cccccc;
    font-weight: bold;
    font-size: 12px;
}

.code-toolbar .buttons {
    display: flex;
    gap: 8px;
}

.code-toolbar button {
    background: #404040;
    border: 1px solid #666;
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.code-toolbar button:hover {
    background: #505050;
}

.code-toolbar button:active {
    background: #606060;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 0 0 4px 4px;
}

.code-display {
    display: flex;
}

.line-numbers-column {
    flex-shrink: 0;
    width: 50px;
    border-right: 1px solid #404040;
    user-select: none;
}

.line-number {
    padding: 2px 8px 2px 4px;
    text-align: right;
    color: #858585;
    font-family: inherit;
}

.line-number-odd {
    background: transparent;
}

.line-number-even {
    background: rgba(255, 255, 255, 0.03);
}

.code-content-column {
    flex: 1;
    padding-left: 12px;
}

.code-line {
    padding: 2px 0;
    min-height: 1.4em;
    white-space: pre;
}

.code-line-odd {
    background: transparent;
}

.code-line-even {
    background: rgba(255, 255, 255, 0.03);
}

/* PowerShell Syntax Colors - Vivid VS Code Theme (matching screenshot) */
.ps-comment {
    color: #6a9955;
    /* Comments - VS Code green */
}

.ps-string {
    color: #ce9178;
    /* String literals - VS Code orange/peach */
}

.ps-keyword {
    color: #569cd6;
    /* Language keywords - VS Code blue */
}

.ps-control-flow {
    color: #c586c0;
    /* Control flow keywords - VS Code bright purple/magenta */
}

.ps-cmdlet {
    color: #dcdcaa;
    /* Functions and cmdlets - VS Code bright yellow */
}

.ps-parameter {
    color: #9cdcfe;
    /* Parameters - VS Code bright light blue */
}

.ps-variable {
    color: #9cdcfe;
    /* Variables - VS Code bright light blue */
}

.ps-operator {
    color: #d4d4d4;
    /* Operators - VS Code white/light gray */
}

.ps-number {
    color: #b5cea8;
    /* Numbers - VS Code light green */
}

.ps-type {
    color: #4ec9b0;
    /* Type accelerators - VS Code bright cyan/turquoise */
    font-weight: 500;
}

/* Enhanced type accelerator styling */
.ps-type:hover {
    background-color: rgba(78, 201, 176, 0.15);
    border-radius: 2px;
    cursor: help;
}

/* Specific styling for different type categories - All use official VS Code type color */
.ps-type-system {
    color: #4ec9b0;
    /* System types - VS Code official cyan */
}

.ps-type-powershell {
    color: #4ec9b0;
    /* PowerShell types - VS Code official cyan */
}

.ps-type-attribute {
    color: #4ec9b0;
    /* Attributes - VS Code official cyan */
}

.ps-type-validation {
    color: #4ec9b0;
    /* Validation attributes - VS Code official cyan */
}

/* Additional VS Code-style elements */
.ps-error-handling {
    color: #c586c0;
    /* Error handling keywords - VS Code purple */
}

.ps-function-block {
    color: #c586c0;
    /* Function blocks - VS Code purple */
}

.ps-class-enum {
    color: #4ec9b0;
    /* Class/enum keywords - VS Code cyan */
}

.ps-member {
    color: #dcdcaa;
    /* Member access (properties/methods) - VS Code yellow */
}

/* Copy notification */
.copy-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
}
