/* GST Win95 App - Additional styles on top of 98.css */

@import url('98.css');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #008080; /* classic teal desktop */
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  overflow: hidden;
}

/* Desktop */
.desktop {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #008080;
}

/* Taskbar */
.taskbar {
  height: 28px;
  background: silver;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
  box-shadow: inset 0 1px 0 #dfdfdf;
  z-index: 1000;
}

.start-btn {
  min-width: 54px !important;
  height: 22px !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px !important;
}

.start-btn img {
  width: 16px;
  height: 16px;
}

.taskbar-time {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px inset #808080;
  background: silver;
  min-width: 70px;
  text-align: center;
}

/* Main window */
.app-window {
  margin: 20px auto;
  width: 920px;
  max-width: 96vw;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.app-window .window-body {
  flex: 1;
  overflow: auto;
  padding: 8px;
  background: silver;
}

/* Menu bar */
.menu-bar {
  display: flex;
  background: silver;
  border-bottom: 1px solid #808080;
  padding: 1px 0;
  font-size: 11px;
}

.menu-bar > .menu-item {
  padding: 3px 10px;
  cursor: default;
  position: relative;
}

.menu-bar > .menu-item:hover,
.menu-bar > .menu-item.open {
  background: navy;
  color: white;
}

.menu-bar .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: silver;
  border: 2px outset #dfdfdf;
  min-width: 180px;
  z-index: 200;
  box-shadow: 2px 2px 0 #000;
}

.menu-bar .menu-item.open .dropdown {
  display: block;
}

.menu-bar .dropdown a {
  display: block;
  padding: 4px 20px 4px 24px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.menu-bar .dropdown a:hover {
  background: navy;
  color: white;
}

.menu-bar .dropdown .separator {
  height: 1px;
  background: #808080;
  margin: 3px 2px;
  border-bottom: 1px solid #fff;
}

/* Status bar */
.status-bar {
  display: flex;
  border-top: 1px solid #808080;
  background: silver;
  padding: 2px;
  font-size: 11px;
}

.status-bar-field {
  flex: 1;
  border: 1px inset #808080;
  padding: 2px 6px;
  margin-right: 2px;
}

.status-bar-field:last-child {
  margin-right: 0;
  flex: 0 0 120px;
  text-align: center;
}

/* Login screen */
.login-desktop {
  height: 100vh;
  width: 100vw;
  background: #008080;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-window {
  width: 420px;
  max-width: 94vw;
  box-shadow: 2px 2px 0 #000;
}

.login-window .window-body {
  padding: 18px;
  background: silver;
}

.login-form label {
  display: inline-block;
  min-width: 90px;
  width: 90px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 220px;
  height: 23px;
  box-sizing: border-box;
}

.login-actions {
  margin-top: 16px;
  text-align: right;
}

.login-actions button {
  margin-left: 8px;
  min-width: 75px;
  height: 23px;
}

/* Dashboard icons */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 12px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 6px 4px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #000;
}

.desktop-icon:hover {
  background: rgba(0,0,128,0.15);
  border: 1px dotted navy;
}

.desktop-icon .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 32px;
}

.desktop-icon .label {
  font-size: 11px;
  max-width: 80px;
  word-wrap: break-word;
}

/* Content panels */
.panel {
  background: white;
  border: 2px inset #808080;
  padding: 8px;
  margin-bottom: 8px;
}

.panel-title {
  font-weight: bold;
  margin-bottom: 6px;
  border-bottom: 1px solid #808080;
  padding-bottom: 2px;
}

/* Tables */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

table.data-table th {
  background: silver;
  text-align: left;
  padding: 3px 6px;
  border: 1px solid #808080;
  font-weight: normal;
}

table.data-table td {
  padding: 2px 6px;
  border: 1px solid #c0c0c0;
}

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

table.data-table tr.negative td {
  color: #c00;
  font-weight: bold;
}

/* Forms */
.form-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row label {
  min-width: 120px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select {
  flex: 1;
  max-width: 280px;
}

/* Utility */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.hidden { display: none; }

.badge {
  display: inline-block;
  padding: 1px 6px;
  background: navy;
  color: white;
  font-size: 10px;
}

.badge.ok { background: #008000; }
.badge.warn { background: #808000; }
.badge.err { background: #800000; }
