/* Windows 1.01 Simulator Custom Styles */

body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  background: #c0c0c0;
  overflow: hidden;
}

/* Disable text selection for authentic feel */
.select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Classic button styling */
button {
  font-family: 'Courier New', monospace;
}

button:active {
  transform: translateY(1px);
}

/* Scrollbar styling for authentic look */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 2px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border: 2px outset #808080;
}

::-webkit-scrollbar-corner {
  background: #c0c0c0;
}

/* Canvas cursor for paint */
.cursor-crosshair {
  cursor: crosshair;
}

/* Menu hover effects */
.hover\:bg-gray-400:hover {
  background-color: #9ca3af;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

/* Window dragging */
.cursor-move {
  cursor: move;
}

/* Animation for boot screen */
.transition-all {
  transition: all 0.1s ease-in-out;
}

/* Ensure proper stacking */
.z-50 {
  z-index: 50;
}

/* Clock hand animations */
.clock-hand {
  transition: transform 1s ease-in-out;
}

/* Calculator display styling */
.font-mono {
  font-family: 'Courier New', monospace;
}

/* Paint tool selection */
.ring-2 {
  box-shadow: 0 0 0 2px currentColor;
}

.ring-blue-500 {
  --tw-ring-color: #3b82f6;
}

/* File manager styling */
.hover\:bg-blue-600:hover {
  background-color: #2563eb;
}

.hover\:text-white:hover {
  color: white;
}

/* Ensure windows are properly contained */
.overflow-hidden {
  overflow: hidden;
}

/* Custom border styles for authentic Windows 1.01 look */
.border-inset {
  border-style: inset;
}

.border-outset {
  border-style: outset;
}

/* Text area styling */
textarea {
  font-family: 'Courier New', monospace;
  line-height: 1.2;
}

textarea:focus {
  outline: none;
  background-color: white;
}

/* Menu positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Ensure buttons have proper spacing */
.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* Grid layouts for calculator and paint */
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

/* Gap utilities */
.gap-1 {
  gap: 0.25rem;
}

/* Responsive canvas */
canvas {
  display: block;
}

/* Ensure proper window management */
.window-container {
  transition: all 0.2s ease-in-out;
}

/* About dialog styling */
.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Clock face styling */
.rounded-full {
  border-radius: 50%;
}

/* Ensure proper font sizing */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

/* Loading screen styling */
.duration-100 {
  transition-duration: 100ms;
}

/* Ensure proper layout */
.flex-1 {
  flex: 1 1 0%;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.h-screen {
  height: 100vh;
}

/* Final touches for authentic Windows 1.01 feel */
* {
  box-sizing: border-box;
}

.retro-shadow {
  box-shadow: 2px 2px 0px #808080;
}

.inset-border {
  border: 2px inset #c0c0c0;
}

.outset-border {
  border: 2px outset #c0c0c0;
}