/* Windows 95 Style CSS */

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

body {
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 11px;
  overflow: hidden;
}

/* Boot Screen */
.boot-screen {
  background: #000000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Courier New', Consolas, monospace;
}

.boot-container {
  max-width: 600px;
  width: 90%;
}

.boot-text {
  margin-bottom: 24px;
}

.boot-text p {
  margin: 8px 0;
  font-size: 13px;
}

.boot-bar {
  width: 100%;
  height: 24px;
  background: #404040;
  border: 2px solid #808080;
  position: relative;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  background: #FFFFFF;
  width: 0%;
  transition: width 0.1s linear;
}

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

.login-window {
  width: 400px;
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

.window-title-bar {
  background: #808080;
  color: #C0C0C0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-weight: bold;
  font-size: 12px;
}

.window-title-bar.active {
  background: #003380;
  color: #ffffff;
}

.window-title {
  user-select: none;
}

.window-close {
  width: 18px;
  height: 18px;
  background: #C0C0C0;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-close:active {
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.window-content {
  padding: 8px;
  background: #979797;
  min-height: 100px;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.login-icon img {
  image-rendering: pixelated;
}

.login-text {
  text-align: center;
}

.login-text p {
  margin: 4px 0;
}

/* Desktop */
.desktop {
  background: #008080;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.desktop-icons {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(0, 0, 128, 0.3);
  outline: 1px dotted #FFFFFF;
}

.desktop-icon img {
  image-rendering: pixelated;
  margin-bottom: 4px;
}

.desktop-icon span {
  color: #FFFFFF;
  text-align: center;
  font-size: 11px;
  text-shadow: 1px 1px 2px #000000;
  word-wrap: break-word;
  max-width: 100%;
}

/* Windows */
.window {
  position: absolute;
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  min-width: 400px;
  max-width: 800px;
  display: none;
  z-index: 10;
}

.window.active {
  z-index: 100;
}

.window.active .window-title-bar {
  background: #000080;
  color: #FFFFFF;
}

.window-large {
  min-width: 700px;
  width: 80vw;
  max-width: 1000px;
}

.window h2 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #000080;
}

.window h3 {
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 8px;
  color: #000000;
}

.window ul,
.window ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.window li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.window p {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Buttons */
.win95-button {
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 4px 12px;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: #000000;
  min-height: 24px;
}

.win95-button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  padding: 5px 11px 3px 13px;
}

.win95-button.small {
  padding: 2px 8px;
  font-size: 10px;
  min-height: 20px;
}

.win95-button.active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
}

.login-button {
  min-width: 200px;
}

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

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 4px;
  background: #FFFFFF;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 11px;
}

.form-group textarea {
  resize: vertical;
}

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

.checkbox-group input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 1000;
}

.start-button {
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 2px 8px;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  height: 22px;
}

.start-button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
}

.taskbar-windows {
  flex: 1;
  display: flex;
  gap: 4px;
  margin-left: 8px;
  overflow-x: auto;
}

.taskbar-window {
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-window.active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
}

.taskbar-clock {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  padding: 2px 8px;
  font-size: 11px;
  min-width: 60px;
  text-align: center;
}

/* Account Section */
.account-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F0F0F0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid #000000;
}

.text-muted {
  color: #808080;
  font-size: 10px;
}

.whitelist-status {
  padding: 12px;
  background: #F0F0F0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 8px;
}

.status-pending {
  background: #FFFF00;
  color: #000000;
}

.status-approved {
  background: #00FF00;
  color: #000000;
}

.status-rejected {
  background: #FF0000;
  color: #FFFFFF;
}

.notifications-section {
  padding: 12px;
  background: #F0F0F0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #FFFFFF;
  max-height: 200px;
  overflow-y: auto;
}

.notification-item {
  padding: 8px;
  margin-bottom: 8px;
  background: #FFFFFF;
  border: 1px solid #808080;
}

.notification-item.unread {
  font-weight: bold;
  background: #FFFFCC;
}

.notification-date {
  font-size: 9px;
  color: #808080;
  margin-top: 4px;
}

.account-actions {
  display: flex;
  gap: 8px;
}

/* News */
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #F0F0F0;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.news-image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid #000000;
}

.news-content {
  flex: 1;
}

.news-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.news-date {
  font-size: 9px;
  color: #808080;
  margin-bottom: 4px;
}

.news-text {
  font-size: 11px;
  line-height: 1.3;
}

/* Admin Tabs */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  border-bottom: 2px solid #808080;
}

.tab-button {
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #808080;
  border-bottom: none;
  padding: 4px 16px;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  top: 2px;
}

.tab-button.active {
  background: #FFFFFF;
  border-right: 2px solid #FFFFFF;
  top: 2px;
}

.tab-content {
  display: none;
}

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

.filter-buttons {
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #808080;
}

.data-table th {
  background: #C0C0C0;
  padding: 4px 8px;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid #808080;
  border-right: 1px solid #808080;
}

.data-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
}

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

.data-table tr:hover {
  background: #E0E0FF;
}

/* Message Box */
.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #C0C0C0;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  min-width: 300px;
  z-index: 9999;
}

.message-box-large {
  min-width: 500px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.message-content img {
  flex-shrink: 0;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #C0C0C0;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

::-webkit-scrollbar-button {
  background: #C0C0C0;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

/* Utility */
.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mt-12 {
  margin-top: 12px;
}
