/* Application-specific styles */

/* Notepad */
.notepad-content {
    background: white;
    border: 2px inset #c0c0c0;
    margin: 4px;
    padding: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    outline: none;
    border: none;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
}

/* Paint */
.paint-canvas-container {
    background: white;
    border: 2px inset #c0c0c0;
    margin: 4px;
    overflow: auto;
    flex: 1;
}

.paint-canvas {
    background: white;
    cursor: crosshair;
}

.paint-toolbox {
    width: 60px;
    background: #c0c0c0;
    border-right: 1px solid #808080;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.paint-tool {
    width: 24px;
    height: 24px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.paint-tool:hover {
    background: #d0d0d0;
}

.paint-tool.active {
    border: 1px inset #c0c0c0;
    background: #a0a0a0;
}

.paint-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: 8px;
}

.paint-color {
    width: 12px;
    height: 12px;
    border: 1px solid #808080;
    cursor: pointer;
}

.paint-color.active {
    border: 2px solid #000000;
}

/* Internet Explorer */
.ie-address-bar {
    height: 24px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 4px;
}

.ie-address-input {
    flex: 1;
    height: 20px;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.ie-go-button {
    height: 20px;
    padding: 2px 8px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.ie-go-button:active {
    border: 1px inset #c0c0c0;
}

.ie-content {
    background: white;
    padding: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    line-height: 1.4;
}

/* Task Manager */
.task-manager-tabs {
    height: 24px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
}

.task-manager-tab {
    padding: 4px 12px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    border-bottom: none;
    cursor: pointer;
    font-size: 11px;
}

.task-manager-tab.active {
    background: white;
    border-bottom: 1px solid white;
}

.task-manager-content {
    background: white;
    padding: 8px;
}

.task-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.task-list th,
.task-list td {
    border: 1px solid #c0c0c0;
    padding: 4px 8px;
    text-align: left;
}

.task-list th {
    background: #c0c0c0;
    font-weight: bold;
}

.task-list tr:nth-child(even) {
    background: #f0f0f0;
}

.task-list tr:hover {
    background: #316AC5;
    color: white;
}

/* File Explorer */
.explorer-toolbar {
    height: 28px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 4px;
}

.explorer-address {
    flex: 1;
    height: 20px;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: white;
}

.explorer-content {
    display: flex;
    flex: 1;
}

.explorer-tree {
    width: 200px;
    background: white;
    border-right: 1px solid #c0c0c0;
    padding: 4px;
    overflow-y: auto;
}

.explorer-files {
    flex: 1;
    background: white;
    padding: 4px;
    overflow: auto;
}

.tree-item {
    padding: 2px 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tree-item:hover {
    background: #316AC5;
    color: white;
}

.tree-item img {
    width: 16px;
    height: 16px;
}

.file-item {
    display: inline-block;
    width: 80px;
    padding: 4px;
    margin: 2px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    border-radius: 2px;
}

.file-item:hover {
    background: #316AC5;
    color: white;
}

.file-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.file-item span {
    display: block;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Calculator */
.calculator-display {
    height: 40px;
    background: white;
    border: 2px inset #c0c0c0;
    margin: 4px;
    padding: 8px;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 4px;
}

.calculator-button {
    height: 32px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.calculator-button:active {
    border: 1px inset #c0c0c0;
}

.calculator-button.wide {
    grid-column: span 2;
}

/* Run Dialog */
.run-dialog {
    width: 300px;
}

.run-input {
    width: 100%;
    height: 20px;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-family: 'Courier New', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    margin-top: 8px;
}

/* Shutdown Dialog */
.shutdown-dialog {
    width: 280px;
}

.shutdown-options {
    margin: 16px 0;
}

.shutdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    cursor: pointer;
}

.shutdown-option input[type="radio"] {
    margin: 0;
}