/* 
 * Windows 98 Theme
 * Classic retro styling
 */

/* Remove Bootstrap interference */
.list-group-item {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.list-group {
    padding: 0 !important;
    margin: 0 !important;
}

.card {
    background-color: transparent !important;
    border: none !important;
}

.card-body {
    padding: 0 !important;
}

.row {
    margin: 0 !important;
}

.col {
    padding: 0 !important;
}

.form-control:focus,
.custom-select:focus {
    box-shadow: none !important;
}

a.list-group-item-action:hover,
a.list-group-item-action:focus {
    background-color: transparent !important;
}

.input-group-text {
    border: none !important;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-danger,
.btn-primary {
    background: none !important;
    border: none !important;
}

.collapse {
    display: none !important;
}

.collapse.show {
    display: block !important;
}

.modal {
    display: none !important;
}

/* Mobile touch improvements */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* Prevent zoom on iOS */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    font-size: 16px !important;
}

body, button, input, select, textarea {
    cursor: default !important;
}

a, button:not(:disabled) {
    cursor: pointer !important;
}

/* Selection colors */
::selection {
    background: #000080;
    color: #ffffff;
}

::-moz-selection {
    background: #000080;
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    height: 16px;
    width: 16px;
}

::-webkit-scrollbar-button:hover {
    background: #c0c0c0;
}

::-webkit-scrollbar-button:active {
    border-color: #000000 #ffffff #ffffff #000000;
}

::-webkit-scrollbar-button:vertical:decrement {
    background: #c0c0c0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="6,3 2,9 10,9" fill="black"/></svg>') center no-repeat;
}

::-webkit-scrollbar-button:vertical:increment {
    background: #c0c0c0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="6,9 2,3 10,3" fill="black"/></svg>') center no-repeat;
}

/* Link styles */
a {
    color: #0000ff !important;
    text-decoration: underline !important;
}

a:visited {
    color: #800080 !important;
}

a:hover {
    color: #0000ff !important;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
}

::placeholder {
    color: #808080 !important;
    font-style: italic;
}

button:disabled,
input:disabled,
select:disabled {
    color: #808080 !important;
    background: #c0c0c0 !important;
}

button:focus,
input:focus,
select:focus,
a:focus {
    outline: 1px dotted #000000 !important;
    outline-offset: -4px !important;
}

table {
    border-collapse: collapse;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

th, td {
    border: 1px solid #c0c0c0;
    padding: 4px;
    font-size: 11px;
}

th {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    font-weight: bold;
}

input[type="checkbox"],
input[type="radio"] {
    width: 13px;
    height: 13px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: #ffffff;
    margin: 2px;
}

ul, ol {
    padding-left: 20px;
}

li {
    font-size: 11px;
    margin: 2px 0;
}

pre, code {
    background: #ffffff !important;
    border: 2px solid !important;
    border-color: #808080 #ffffff #ffffff #808080 !important;
    padding: 4px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 10px !important;
    color: #000000 !important;
}

hr {
    border: 0;
    height: 2px;
    background: #ffffff;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 8px 0;
}

.menubar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 2px 4px;
    font-size: 11px;
}

.statusbar {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 2px 4px;
    font-size: 11px;
    display: flex;
    gap: 4px;
}

.statusbar-section {
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 1px 4px;
    flex: 1;
}

*, *::before, *::after {
    animation: none !important;
    transition: none !important;
}

* {
    image-rendering: pixelated;
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    background-color: #008080 !important;
    background-image: none !important;
}

.email-modal {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(0,0,0,0.55) !important;
  z-index: 10000 !important;
}

.email-modal[style*="display: flex"] {
  display: flex !important;
}

.email-modal .modal-window {
  position: relative !important;
  margin: 0 auto !important;
  transform: none !important;
  max-width: 600px !important;
  width: 90% !important;
  max-height: 90vh !important;
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #000000 #000000 #ffffff !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* TASKBAR - FIXED */
#win98-taskbar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 32px !important;
  background: #c0c0c0 !important;
  border-top: 2px solid #ffffff !important;
  display: flex !important;
  align-items: center !important;
  z-index: 99999 !important;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
}

.taskbar-start {
  position: relative !important;
}

#btn-start {
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #000000 #000000 #ffffff !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  height: 28px !important;
  margin: 2px !important;
}

#btn-start img { 
  width: 16px !important; 
  height: 16px !important; 
}

#btn-start:active { 
  border-color: #000000 #ffffff #ffffff #000000 !important; 
}

.taskbar-icons {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 8px !important;
}

.task-icon {
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #000000 #000000 #ffffff !important;
  margin-right: 4px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.task-icon img { 
  width: 16px !important; 
  height: 16px !important; 
}

.task-icon:active { 
  border-color: #000000 #ffffff #ffffff #000000 !important; 
}

.taskbar-tray { 
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
}

#tray-clock {
  padding: 3px 6px !important;
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #808080 #ffffff #ffffff #808080 !important;
  font-size: 11px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
}

#start-menu {
  position: absolute !important;
  bottom: 32px !important;
  left: 0 !important;
  width: 220px !important;
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #000000 #000000 #ffffff !important;
  display: none !important;
  flex-direction: row !important;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5) !important;
  z-index: 100000 !important;
}

#start-menu.open { 
  display: flex !important; 
}

.start-menu-sidebar {
  width: 40px !important;
  background: linear-gradient(to bottom,#000080,#1084d0) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 4px !important;
}

.start-menu-sidebar img {
  width: 32px !important;
  height: 32px !important;
}

.start-menu-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  width: 100% !important;
}

.start-menu-list li {
  position: relative !important;
  margin: 0 !important;
}

.start-menu-list a {
  display: block !important;
  padding: 4px 8px !important;
  color: #000 !important;
  text-decoration: none !important;
  font-size: 11px !important;
}

.start-menu-list a:hover {
  background: #000080 !important;
  color: #fff !important;
}

.start-menu-list .shutdown {
  font-weight: bold !important;
  color: #800000 !important;
}

.start-menu-list hr {
  margin: 2px 0 !important;
  border: 0 !important;
  border-top: 1px solid #808080 !important;
  border-bottom: 1px solid #ffffff !important;
  height: 0 !important;
}

/* CASCADING SUBMENU */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  left: 100%;
  bottom: 0;
  width: 200px;
  max-height: 300px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: none;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  z-index: 100001;
  overflow-y: auto;
  overflow-x: hidden;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  color: #000;
  text-decoration: none;
  font-size: 11px;
  word-break: break-all;
}

.submenu a:hover {
  background: #000080;
  color: #fff;
}

.delete-fav {
  background: transparent;
  border: none;
  color: #800000;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 4px;
  line-height: 1;
  flex-shrink: 0;
}

.submenu a:hover .delete-fav {
  color: #ff0000;
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"], 
  input[type="password"],
  select,
  textarea {
      font-size: 16px !important;
  }
}