/* System.css overrides and extensions */
.hidden {
    display: none !important;
}
/* Boot Screen Styles using system.css */
.boot-progress-container {
  width: 100%;
  margin: 1rem 0;
}

.progress-bar {
  height: 4px;
  background-color: #666;
  width: 0%;
  transition: width 0.3s ease;
}

.boot-status {
  font-size: 12px;
  margin: 1rem 0;
}
/* Desktop */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    background-size: cover;
    z-index: 1;
}

.menu-bar {
    background: #DDD;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #999;
    font-size: 12px;
    position: relative;
    z-index: 10;
}

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

.menu-item:hover {
    background: #BBB;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 20px;
    left: 0;
    background: #DDD;
    border: 1px solid #999;
    min-width: 150px;
    z-index: 20;
}

.menu-divider {
    height: 1px;
    background: #999;
    margin: 4px 0;
}

.apple-menu:hover .menu-dropdown,
.file-menu:hover .menu-dropdown {
    display: block;
}

.desktop-icons {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.icon {
    width: 80px;
    text-align: center;
    margin-right: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 1px black;
}

.icon img {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 5px auto;
}

.icon span {
    font-size: 12px;
    display: block;
    word-break: break-word;
}

/* Connecting Screen */
.connecting-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.connecting-container {
    text-align: center;
    width: 300px;
}

.connecting-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
}

.connecting-message {
    margin-bottom: 1rem;
}

.connecting-progress-container {
    margin-top: 1rem;
    width: 100%;
}

.connecting-progress-bar {
    height: 4px;
    background: #666;
    width: 0%;
    transition: width 0.3s ease;
}

/* Program Window */
.window {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 400px;
    min-height: 300px;
    background: white;
    border: 2px solid;
    border-top-color: #F0F0F0;
    border-left-color: #F0F0F0;
    border-right-color: #808080;
    border-bottom-color: #808080;
    resize: both;
    overflow: auto;
    z-index: 2;
}

.window-header {
    background: #DDD;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
    cursor: move;
    border-bottom: 1px solid #808080;
}

.window-title {
    flex: 1;
}

.window-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.window-content {
    padding: 8px;
    height: calc(100% - 20px);
}

/* BBS Program specific styles */
.bbs-content {
    font-family: monospace;
    white-space: pre;
    color: #000;
    line-height: 1.2;
    font-size: 12px;
}

/* Big GIFs program styles */
.gifs-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

/* Sprite Slicer program styles */
.slicer-content {
    padding: 8px;
}

/* Welcome dialog styles */
.welcome-dialog {
    background: white;
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #F0F0F0;
    border-bottom-color: #F0F0F0;
    padding: 16px;
    width: 300px;
    margin: auto;
    margin-top: 20%;
    text-align: center;
}