/* CoinForest Styles - Pixel Art Theme */

/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    background: linear-gradient(to bottom, #0F1F0F 0%, #1A3C1A 50%, #3F2A1D 100%); /* Simple forest gradient */
    color: #FFF;
    overflow: hidden;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Forest effect with pseudo-elements (no canvas) */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, rgba(26,60,26,0.3), transparent); /* Mist */
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: repeating-linear-gradient(90deg, #1A3C1A, #1A3C1A 2px, #0F1F0F 2px, #0F1F0F 4px); /* Grass pattern */
    z-index: -1;
}

/* Logo */
#logo {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
    color: #FFD700;
    animation: bob 3s infinite ease-in-out;
    text-shadow: 2px 2px #3F2A1D;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Desktop */
#desktop {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    padding: 20px;
}

.icon {
    position: relative;
    cursor: pointer;
    text-align: center;
    font-size: 8px;
    color: #FFF;
    width: 64px;
    height: 64px;
    margin: 10px;
    border: 1px dashed #1A3C1A;
    padding: 5px;
}

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

.icon span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 48px;
    background: rgba(17, 34, 17, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.3);
    max-width: 800px;
    width: auto;
}

#start-btn {
    background: transparent;
    border: none;
    color: #FFD700;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

#taskbar-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

#taskbar-icons img {
    margin: 0 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

#tray {
    display: flex;
    align-items: center;
}

#clock {
    font-size: 12px;
    color: #FFD700;
    margin-left: 20px;
}

/* Modal */
#modal, #start-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 640px;
    height: 480px;
    border: 4px solid #3F2A1D;
    background: #0F1F0F;
    z-index: 1000;
    box-shadow: 8px 8px 0 #1A3C1A;
}

.title-bar {
    background: #1A3C1A;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #3F2A1D;
}

.title {
    color: #FFD700;
}

.close {
    background: #3F2A1D;
    color: #FFD700;
    border: 1px solid #FFD700;
    cursor: pointer;
    padding: 5px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    #desktop {
        padding: 10px;
    }
    .icon {
        width: 48px;
        height: 48px;
    }
    #taskbar {
        width: 100%;
        border-radius: 0;
        padding: 0 10px;
    }
}

/* Admin Styles */
.admin-body {
    background: #1A3C1A;
    color: #FFD700;
    padding: 20px;
    overflow: auto;
    height: 100vh;
}

h1 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

form {
    background: #0F1F0F;
    padding: 15px;
    border: 2px solid #3F2A1D;
    margin-bottom: 20px;
}

input, textarea, button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background: #1A3C1A;
    color: #FFD700;
    border: 1px solid #3F2A1D;
    font-family: 'Press Start 2P', cursive;
}

button {
    cursor: pointer;
    background: #3F2A1D;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0F1F0F;
}

th, td {
    padding: 10px;
    border: 1px solid #3F2A1D;
    text-align: left;
}

a {
    color: #FFD700;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
}