/* OS/2 Warp 3.0 Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "System", "Helvetica", sans-serif;
    background: linear-gradient(135deg, #008080 0%, #004c4c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* OS/2 Window */
.os2-window {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 0 0 0 1px #808080;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Title Bar */
.title-bar {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: white;
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #000000;
}

.title-text {
    display: flex;
    align-items: center;
}

.title-buttons {
    display: flex;
    gap: 4px;
}

.title-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    color: #000000;
    font-weight: bold;
    font-size: 12px;
    width: 24px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
    background: #808080;
}

/* Menu Bar */
.menu-bar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #ffffff #000000;
    padding: 4px 8px;
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.menu-item {
    padding: 2px 8px;
    cursor: pointer;
}

.menu-item:hover {
    background: #000080;
    color: white;
}

/* Window Content */
.window-content {
    flex: 1;
    padding: 12px;
    background: #c0c0c0;
    overflow: auto;
}

/* Control Panel */
.control-panel {
    background: #c0c0c0;
    padding: 12px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin-bottom: 12px;
}

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

.os2-label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 13px;
    color: #000000;
}

.os2-select,
.os2-input {
    width: 100%;
    padding: 4px 6px;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    background: white;
    font-size: 13px;
    font-family: "System", "Helvetica", sans-serif;
}

.os2-select {
    height: 28px;
    cursor: pointer;
}

.os2-input {
    height: 26px;
}

.os2-input:focus,
.os2-select:focus {
    outline: 1px dotted #000000;
    outline-offset: -3px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.os2-button {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: "System", "Helvetica", sans-serif;
    min-width: 80px;
}

.os2-button:hover {
    background: #d0d0d0;
}

.os2-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
    background: #a0a0a0;
    padding: 7px 15px 5px 17px;
}

.os2-button.primary {
    background: #000080;
    color: white;
    border-color: #1084d0 #000040 #000040 #1084d0;
}

.os2-button.primary:hover {
    background: #0000a0;
}

.os2-button.primary:active {
    border-color: #000040 #1084d0 #1084d0 #000040;
    background: #000060;
}

/* Info Panel */
.info-panel {
    background: white;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    background: #ffff00;
    border: 2px solid #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.info-text {
    font-size: 13px;
    line-height: 1.5;
}

/* Results Panel */
.results-panel {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.status-bar-top {
    background: #c0c0c0;
    padding: 6px 8px;
    border-bottom: 2px solid;
    border-color: #ffffff #000000;
    font-size: 12px;
    font-weight: bold;
}

/* Table Container */
.table-container {
    max-height: 450px;
    overflow: auto;
    background: white;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
}

/* OS/2 Table */
.os2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: white;
}

.os2-table th {
    background: #808080;
    color: white;
    font-weight: bold;
    padding: 6px 8px;
    text-align: left;
    border-right: 1px solid #c0c0c0;
    border-bottom: 2px solid #000000;
    position: sticky;
    top: 0;
    z-index: 10;
}

.os2-table th:last-child {
    border-right: none;
}

.os2-table td {
    padding: 5px 8px;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

.os2-table td:last-child {
    border-right: none;
}

.os2-table tr.data-row:nth-child(even) {
    background: #f0f0f0;
}

.os2-table tr.data-row:hover {
    background: #000080;
    color: white;
}

.os2-table tr.data-row:hover td {
    border-color: #000080;
}

/* Status Bar */
.status-bar {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #ffffff #000000;
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    gap: 10px;
}

.status-text {
    flex: 1;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    background: #ffffff;
}

/* Scrollbars for Webkit browsers (Chrome, Safari, Edge) */
.table-container::-webkit-scrollbar,
.window-content::-webkit-scrollbar {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
}

.table-container::-webkit-scrollbar-track,
.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
}

.table-container::-webkit-scrollbar-thumb,
.window-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
}

.table-container::-webkit-scrollbar-button,
.window-content::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    height: 18px;
    width: 18px;
}

.table-container::-webkit-scrollbar-button:active,
.window-content::-webkit-scrollbar-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

/* Login Page Styles */
.login-container {
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    border-color: #ffffff #000000;
}

.os2-logo {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    padding: 12px 24px;
    display: inline-block;
    border: 3px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.login-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000000;
}

.login-subtitle {
    font-size: 13px;
    color: #404040;
}

.login-form {
    background: #c0c0c0;
    padding: 16px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.login-info {
    background: white;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 10px;
    margin: 12px 0;
    font-size: 13px;
}

.login-info strong {
    color: #000080;
}

/* Error Panel */
.error-panel {
    background: #ff0000;
    border: 3px solid;
    border-color: #ff8080 #800000 #800000 #ff8080;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: white;
}

.error-icon {
    background: white;
    color: #ff0000;
    border: 2px solid #800000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.error-text {
    font-size: 13px;
    line-height: 1.5;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }

    .os2-button {
        width: 100%;
    }

    .os2-table {
        font-size: 11px;
    }

    .os2-table th,
    .os2-table td {
        padding: 4px 6px;
    }

    .os2-logo {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
