body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background-color: #ECE9D8;
    margin: 0;
    padding: 20px;
    color: #000000;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #FFFFFF;
    border: 1px solid #7B9EBD;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.title-bar {
    background: linear-gradient(to bottom, #0A246A, #3A6EA5);
    color: white;
    padding: 6px 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-buttons {
    display: flex;
}

.title-button {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 3px;
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.minimize {
    background-color: #FFCC00;
}

.maximize {
    background-color: #69BE28;
}

.close {
    background-color: #FD6A3B;
}

.content {
    padding: 15px;
}

.menu-bar {
    background-color: #ECE9D8;
    border-bottom: 1px solid #ACA899;
    padding: 3px 8px;
    display: flex;
    gap: 12px;
}

.menu-item {
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
}

.menu-item:hover {
    background-color: #316AC5;
    color: white;
    border-radius: 2px;
}

.columns-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.column {
    flex: 1;
    min-width: 0;
}

.column-label {
    background: linear-gradient(to bottom, #F0F5FB, #D5E5F6);
    border: 1px solid #7B9EBD;
    border-bottom: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.column textarea {
    width: 100%;
    height: 240px;
    resize: none;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #7B9EBD;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    font-family: 'Tahoma', sans-serif;
    font-size: 12px;
    background-color: #FFFFFF;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 10px;
    background-color: #F0F0F0;
    border: 1px solid #ACA899;
    border-radius: 3px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    background: linear-gradient(to bottom, #FDFDFD, #E5E5E5);
    border: 1px solid #7B9EBD;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 11px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(to bottom, #EAF6FD, #D9F0FC);
    border-color: #3C7FB1;
}

button:active {
    background: linear-gradient(to bottom, #BEE6FD, #A7D9F5);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#output {
    padding: 10px;
    min-height: 80px;
    border: 1px solid #7B9EBD;
    background-color: #FFFFFF;
    margin-top: 10px;
    border-radius: 3px;
    font-family: 'Tahoma', sans-serif;
    font-size: 12px;
}

input[type="number"] {
    width: 60px;
    padding: 4px;
    border: 1px solid #7B9EBD;
    border-radius: 2px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
}

.status-bar {
    background-color: #ECE9D8;
    border-top: 1px solid #ACA899;
    padding: 3px 10px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

/* Custom scrollbar to match Windows XP */
textarea::-webkit-scrollbar {
    width: 16px;
}

textarea::-webkit-scrollbar-track {
    background-color: #FFFFFF;
    border: 1px solid #ACA899;
}

textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #FFFFFF, #CDCDCD);
    border: 1px solid #7F7F7F;
}

textarea::-webkit-scrollbar-button {
    background-color: #ECE9D8;
    border: 1px solid #ACA899;
    height: 16px;
}

/* Windows XP desktop background simulation */
.xp-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #235CBA, #73B7EF);
    z-index: -1;
}

/* View Menu Dropdown */
.view-options {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    border: 1px solid #ACA899;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    width: 150px;
}

.view-option {
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

.view-option:hover {
    background-color: #316AC5;
    color: white;
}

.view-separator {
    height: 1px;
    background-color: #ACA899;
    margin: 3px 0;
}

/* Content views */
.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

#textModeContent {
    margin-bottom: 20px;
}

#textInput {
    width: 100%;
    height: 240px;
    resize: none;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #7B9EBD;
    font-family: 'Tahoma', sans-serif;
    font-size: 12px;
    background-color: #FFFFFF;
}

.text-input-label {
    background: linear-gradient(to bottom, #F0F5FB, #D5E5F6);
    border: 1px solid #7B9EBD;
    border-bottom: none;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
