/* EthOS - Mac OS 6 Style Retro Desktop */

#ethos-screen {
    background: #000;
}

.ethos-desktop {
    width: 100%;
    height: 100%;
    background: url('https://myetherspace.s3.filebase.com/ignoreThis/ethos.gif') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    font-family: 'Press Start 2P', monospace;
}

/* Menu Bar */
.ethos-menubar {
    height: 28px;
    background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 100%);
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 20px;
}

.ethos-menubar-title {
    font-size: 10px;
    font-weight: bold;
    color: #000;
}

.ethos-menubar-address {
    font-size: 8px;
    color: #444;
    flex: 1;
}

.ethos-shutdown-btn {
    background: #ff6b6b;
    border: 2px outset #ffa0a0;
    color: white;
    width: 24px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ethos-shutdown-btn:hover {
    background: #ff4757;
}

.ethos-shutdown-btn:active {
    border-style: inset;
}

/* Desktop Area */
.ethos-desktop-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Desktop Icons */
.ethos-icons {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ethos-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.ethos-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ethos-icon img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.ethos-icon-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.ethos-icon-label {
    margin-top: 6px;
    font-size: 8px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Windows */
.ethos-windows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.ethos-window {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #e0e0e0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.ethos-window-titlebar {
    height: 24px;
    background: linear-gradient(to bottom, #000080 0%, #0000a0 100%);
    display: flex;
    align-items: center;
    padding: 0 4px;
    cursor: move;
    user-select: none;
}

.ethos-window-close {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #e0e0e0;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.ethos-window-close:hover {
    background: #ff6b6b;
    color: white;
}

.ethos-window-close:active {
    border-style: inset;
}

.ethos-window-title {
    font-size: 9px;
    color: #fff;
    flex: 1;
}

.ethos-window-content {
    flex: 1;
    background: #fff;
    border: 2px inset #808080;
    margin: 4px;
    overflow: auto;
    padding: 8px;
}

/* Window Resize Handle */
.ethos-window-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #808080 50%, #808080 60%, transparent 60%, transparent 70%, #808080 70%, #808080 80%, transparent 80%);
}

.ethos-window-resize:hover {
    background: linear-gradient(135deg, transparent 50%, #404040 50%, #404040 60%, transparent 60%, transparent 70%, #404040 70%, #404040 80%, transparent 80%);
}

.ethos-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 10px;
    color: #666;
}

/* App Common Styles */
.ethos-app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    font-size: 9px;
    color: #666;
    line-height: 2;
}

.ethos-btn {
    background: #c0c0c0;
    border: 2px outset #e0e0e0;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.ethos-btn:hover {
    background: #d0d0d0;
}

.ethos-btn:active {
    border-style: inset;
}

/* Log Viewer App */
.ethos-log-viewer {
    font-size: 12px;
}

.ethos-log-header {
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 12px;
}

.ethos-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ethos-log-entry {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.ethos-log-visitor {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ethos-log-address {
    font-weight: bold;
    color: #0066cc;
}

.ethos-log-time {
    color: #666;
}

.ethos-log-activity {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ethos-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.ethos-badge-geth { background: #d4edda; color: #155724; }
.ethos-badge-sketh { background: #cce5ff; color: #004085; }
.ethos-badge-meth { background: #f8d7da; color: #721c24; }
.ethos-badge-poh { background: #fff3cd; color: #856404; }
.ethos-badge-eth { background: #d1ecf1; color: #0c5460; }
.ethos-badge-view { background: #e2e3e5; color: #383d41; }
.ethos-badge-none { background: #f8f9fa; color: #6c757d; }

/* BankEth App */
.ethos-banketh {
    text-align: center;
    padding: 20px;
}

.ethos-banketh-header {
    margin-bottom: 20px;
}

.ethos-banketh-icon {
    font-size: 32px;
}

.ethos-banketh-header h2 {
    font-size: 15px;
    margin: 10px 0 0;
}

.ethos-banketh-title {
    color: #ff69b4;  /* Pink */
}

.ethos-banketh-balance {
    background: #f0f0f0;
    border: 2px inset #ccc;
    padding: 20px;
    margin: 20px 0;
}

.ethos-banketh-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.ethos-banketh-amount {
    font-size: 16px;
    font-weight: bold;
}

.ethos-banketh-amount.shiny {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.ethos-banketh-status {
    margin: 15px 0;
}

.ethos-banketh-msg {
    font-size: 12px;
    padding: 8px;
    border-radius: 4px;
}

.ethos-banketh-msg.success {
    background: #d4edda;
    color: #155724;
}

.ethos-banketh-msg.made-it {
    background: #ffd700;
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.ethos-banketh-msg.somebody-loves {
    background: #ffb6c1;
    color: #8b0000;
}

.ethos-banketh-msg.ngmi {
    background: #f8d7da;
    color: #721c24;
}

.ethos-banketh-info {
    font-size: 7px;
    color: #666;
    line-height: 2;
}

.ethos-banketh-actions {
    margin: 15px 0;
}

.ethos-withdraw-btn {
    background: #48c774;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 12px;
}

.ethos-withdraw-btn:hover:not(:disabled) {
    background: #3daf64;
}

.ethos-withdraw-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* EthMail App */
.ethos-ethmail {
    display: flex;
    height: 100%;
}

.ethos-ethmail-sidebar {
    width: 120px;
    background: #e0e0e0;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.ethos-ethmail-tab {
    background: none;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 14px 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.ethos-ethmail-tab:hover {
    background: #d0d0d0;
}

.ethos-ethmail-tab.active {
    background: #fff;
    font-weight: bold;
}

.ethos-badge-count {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 12px;
}

.ethos-ethmail-content {
    flex: 1;
    overflow: auto;
}

.ethos-inbox-list {
    font-size: 12px;
}

.ethos-inbox-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ethos-inbox-item:hover {
    background: #f5f5f5;
}

.ethos-inbox-item.unread {
    background: #e8f4ff;
    font-weight: bold;
}

.ethos-inbox-from {
    width: 140px;
    color: #0066cc;
}

.ethos-inbox-subject {
    flex: 1;
}

.ethos-inbox-date {
    color: #666;
    font-size: 12px;
}

/* Compose */
.ethos-compose {
    padding: 15px;
}

.ethos-compose-field {
    margin-bottom: 14px;
}

.ethos-compose-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #333;
}

.ethos-compose-field input,
.ethos-compose-field textarea {
    width: 100%;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 10px;
    border: 2px inset #ccc;
    box-sizing: border-box;
}

.ethos-compose-field textarea {
    resize: vertical;
}

/* Address Book */
.ethos-addressbook {
    font-size: 12px;
}

.ethos-addressbook-entry {
    padding: 14px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.ethos-addressbook-nickname {
    font-weight: bold;
    width: 140px;
}

.ethos-addressbook-address {
    color: #0066cc;
    flex: 1;
}

.ethos-addressbook-source {
    color: #666;
    font-size: 12px;
}

/* Notes App */
.ethos-notes {
    font-size: 12px;
}

.ethos-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ethos-note-item {
    padding: 12px;
    background: #fffef0;
    border: 1px solid #e0d090;
    display: flex;
    flex-direction: column;
}

.ethos-note-item:hover {
    background: #fff9d0;
}

.ethos-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ethos-note-toggle {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.ethos-note-toggle:hover {
    background: #f0f0f0;
}

.ethos-note-preview {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ethos-note-date {
    color: #666;
    font-size: 11px;
    flex-shrink: 0;
    margin-left: auto;
}

.ethos-note-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0d090;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* My Data App */
.ethos-mydata {
    padding: 15px;
    font-size: 14px;
}

.ethos-mydata-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    text-align: center;
}

.ethos-mydata-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.ethos-mydata-label {
    font-weight: bold;
    color: #333;
}

.ethos-mydata-value {
    color: #666;
}

.ethos-mydata-download {
    margin-top: 25px;
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid #333;
}

.ethos-mydata-download-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: #4a90d9;
    color: white;
    border: 2px solid #357abd;
    cursor: pointer;
    font-family: inherit;
}

.ethos-mydata-download-btn:hover {
    background: #357abd;
}

.ethos-mydata-download-btn:active {
    background: #2a5f8f;
}

.ethos-mydata-downloaded {
    color: #666;
    font-style: italic;
    margin: 0;
}
