/* App-specific styles */

/* Notepad */
.notepad-menu {
    background: #F0F0F0;
    padding: 5px 10px;
    border-bottom: 1px solid #D0D0D0;
    font-size: 12px;
}

.notepad-menu span {
    padding: 4px 8px;
    cursor: pointer;
    display: inline-block;
}

.notepad-menu span:hover {
    background: #E0E0E0;
}

.notepad-textarea {
    width: 100%;
    height: 100%;
    border: none;
    padding: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    outline: none;
}

/* Browser */
.browser-toolbar {
    display: flex;
    padding: 5px 10px;
    background: #F0F0F0;
    border-bottom: 1px solid #D0D0D0;
    gap: 5px;
}

.browser-toolbar button {
    padding: 4px 8px;
    background: #E0E0E0;
    border: 1px solid #C0C0C0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.browser-toolbar button:hover {
    background: #D0D0D0;
}

.browser-url {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #C0C0C0;
    border-radius: 3px;
    font-size: 14px;
}

.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.browser-newtab {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.browser-newtab h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #C0C0C0;
    border-radius: 15px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 16px;
    background: #0078D7;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

/* Pinball */
.pinball-canvas {
    background: #000000;
    display: block;
    margin: 0 auto;
}

.pinball-score {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
}

.pinball-lives {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFFFFF;
    font-size: 14px;
}

/* Solitaire */
.solitaire-table {
    width: 100%;
    height: 100%;
    background: #0A5C36;
    position: relative;
}

.card {
    width: 60px;
    height: 84px;
    border-radius: 4px;
    background: #FFFFFF;
    border: 1px solid #C0C0C0;
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card.red {
    color: #FF0000;
}

.card.black {
    color: #000000;
}

.card.face-down {
    background: #1A5FB4;
    border-color: #0D4B8F;
}

.card.face-down .card-suit,
.card.face-down .card-rank {
    display: none;
}

/* Minesweeper */
.minesweeper-board {
    display: grid;
    gap: 1px;
    background: #C0C0C0;
    padding: 1px;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.minesweeper-cell {
    width: 24px;
    height: 24px;
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.minesweeper-cell.revealed {
    border: 1px solid #808080;
    background: #E0E0E0;
}

.minesweeper-cell.mine {
    background: #FF0000;
}

.minesweeper-cell.flagged::after {
    content: '🚩';
    font-size: 12px;
}

.minesweeper-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #C0C0C0;
    border-bottom: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
}

.minesweeper-mines,
.minesweeper-timer {
    font-size: 24px;
    font-weight: bold;
    color: #FF0000;
    background: #000000;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.minesweeper-smiley {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Computer */
.computer-window {
    padding: 20px;
}

.computer-folder {
    display: inline-block;
    margin: 10px;
    text-align: center;
    cursor: pointer;
}

.computer-folder .folder-icon {
    font-size: 48px;
}

.computer-folder .folder-name {
    font-size: 12px;
    margin-top: 5px;
}

/* Recycle Bin */
.recycle-bin-empty {
    padding: 40px;
    text-align: center;
    color: #808080;
    font-size: 16px;
}

/* Chess */
.chess-board {
    border: 2px solid #808080;
    background: #f5f5dc;
}

.chess-square {
    width: 50px;
    height: 50px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid #c0c0c0;
}

/* Light and dark square colors are handled in JS */