/*
 * A simplified, pure-CSS version inspired by
 * the OS/2 Warp 3.0 aesthetic.
 */

body, html {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
}

/* The main "desktop" background */
body.os2-desktop {
    background: #ccc; /* Classic UI grey */
    padding: 20px;
}

/* === The Window === */

.os2-window {
    background: #ccc;
    /* This creates the classic 3D "outset" border */
    border: 2px solid;
    border-color: #fff #888 #888 #fff; /* T/R/B/L */
    box-shadow: 2px 2px 2px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

/* === Window Title Bar === */

.os2-window-titlebar {
    background: #000080; /* Classic OS/2 blue */
    color: white;
    font-weight: bold;
    padding: 6px 8px;
    margin: 2px; /* Sits inside the white top border */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Window Content === */

.os2-window-content {
    padding: 10px;
    background: #fff; /* Content area is often white */
    margin: 2px; /* Sits inside the borders */
    /* Add a subtle inset "well" effect */
    border: 2px solid;
    border-color: #888 #fff #fff #888;
}

/* === Buttons === */

.os2-button {
    display: inline-block;
    background: #ccc;
    color: #000;
    text-decoration: none;
    padding: 6px 14px;
    margin: 2px;
    min-width: 80px;
    text-align: center;
    cursor: pointer;

    /* The "outset" 3D button effect */
    border: 2px solid;
    border-color: #fff #888 #888 #fff;
    box-shadow: 1px 1px 1px #888;
}

/* The "pressed" state for buttons */
.os2-button:active,
.os2-button:focus {
    /* "Inset" border */
    border-color: #888 #fff #fff #888;
    background: #bbb;
    /* Move the text to simulate a press */
    transform: translate(1px, 1px);
    box-shadow: none;
    outline: none;
}

/* === Form Elements === */

.os2-form-group {
    margin-bottom: 12px;
}

.os2-form-group label {
    display: block;
    margin-bottom: 4px;
}

/* Text inputs, textareas, selects */
input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
    background: #fff;
    padding: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;

    /* The "inset" 3D well effect */
    border: 2px solid;
    border-color: #888 #fff #fff #888;
}

textarea {
    font-family: "Courier New", Courier, monospace;
}

/* === List Box (for admin index) === */

.os2-list-box {
    background: #fff;
    border: 2px solid;
    border-color: #888 #fff #fff #888; /* Inset */
    padding: 5px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.os2-list-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.os2-list-box li {
    padding: 5px 8px;
    border-bottom: 1px dotted #ccc;
}

.os2-list-box li:hover {
    background: #000080;
    color: #fff;
}

/* === Control Center (for buttons) === */

.os2-control-center {
    text-align: center;
    padding: 10px 0 0 0;
    margin-top: 10px;
    border-top: 1px solid #888;
}
