* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    background: #008080;
    padding: 20px;
    image-rendering: pixelated;
}

.window {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
}

.title-bar {
    background: linear-gradient(90deg, #000080, #1084D0);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    border: 1px solid;
    border-color: #FFFFFF #000000 #000000 #FFFFFF;
    background: #C0C0C0;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.menu-bar {
    background: #C0C0C0;
    padding: 2px;
    border-bottom: 1px solid #808080;
    font-size: 11px;
}

.menu-bar span {
    padding: 3px 8px;
    cursor: pointer;
}

.menu-bar span:hover {
    background: #000080;
    color: white;
}

.toolbar {
    background: #C0C0C0;
    padding: 4px;
    border-bottom: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.toolbar-button {
    width: 24px;
    height: 22px;
    border: 1px solid;
    border-color: #FFFFFF #000000 #000000 #FFFFFF;
    background: #C0C0C0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.toolbar-button:active {
    border-color: #000000 #FFFFFF #FFFFFF #000000;
}

.toolbar-select {
    height: 22px;
    border: 1px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    background: white;
    font-family: inherit;
    font-size: 11px;
    padding: 2px;
}

.toolbar-scale {
    border: 1px solid;
    border-color: #FFFFFF #000000 #000000 #FFFFFF;
    background: #C0C0C0;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}

.main-content {
    display: flex;
    height: 500px;
}

.sidebar {
    width: 150px;
    background: #C0C0C0;
    border-right: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    background: #000080;
    color: white;
    padding: 3px 5px;
    font-size: 11px;
    font-weight: bold;
}

.plant-list {
    flex: 1;
    background: white;
    overflow-y: auto;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    margin: 4px;
}

.plant-item {
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plant-item:hover {
    background: #E0E0E0;
}

.plant-item.selected {
    background: #000080;
    color: white;
}

.plant-icon {
    width: 12px;
    height: 12px;
    color: #008000;
}

.gallery-container {
    flex: 1;
    background: white;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    margin: 4px;
    overflow-x: auto;
    overflow-y: hidden;
}

.gallery {
    display: flex;
    padding: 20px;
    gap: 20px;
    height: 100%;
}

.plant-display {
    min-width: 80px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #E0E0E0;
    padding: 0 10px;
}

.plant-display:hover {
    background: #F5F5F5;
}

.plant-display.selected {
    background: #E8E8FF;
}

.plant-svg {
    width: 80px;
    height: 200px;
}

.details-panel {
    width: 300px;
    background: #C0C0C0;
    border-left: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    display: flex;
    flex-direction: column;
}

.panel-title {
    background: #000080;
    color: white;
    padding: 3px 5px;
    font-size: 11px;
    font-weight: bold;
}

.panel-content {
    flex: 1;
    padding: 8px;
    background: white;
    margin: 4px;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.growth-graph {
    width: 100%;
    height: 120px;
    border: 1px solid #808080;
    margin: 8px 0;
    background: white;
    position: relative;
}

.graph-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    font-size: 9px;
    color: #808080;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.graph-canvas {
    position: absolute;
    left: 30px;
    right: 0;
    top: 0;
    bottom: 0;
}

.age-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 11px;
}

.spinner {
    display: flex;
    align-items: center;
    gap: 2px;
}

.spinner-input {
    width: 50px;
    height: 20px;
    border: 1px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 2px 4px;
    font-family: inherit;
    font-size: 11px;
}

.spinner-buttons {
    display: flex;
    flex-direction: column;
}

.spinner-button {
    width: 16px;
    height: 10px;
    border: 1px solid;
    border-color: #FFFFFF #000000 #000000 #FFFFFF;
    background: #C0C0C0;
    cursor: pointer;
    font-size: 8px;
    line-height: 1;
    padding: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    font-size: 11px;
}

.checkbox {
    width: 13px;
    height: 13px;
    border: 1px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    background: white;
    cursor: pointer;
}

.tab-bar {
    display: flex;
    margin-top: 12px;
    font-size: 11px;
}

.tab {
    padding: 4px 12px;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    background: #C0C0C0;
    cursor: pointer;
    margin-right: 2px;
}

.tab.active {
    background: white;
    border-bottom-color: white;
}

.status-bar {
    background: #C0C0C0;
    border-top: 1px solid #FFFFFF;
    padding: 4px 8px;
    font-size: 10px;
    display: flex;
    gap: 16px;
}

.status-item {
    border: 1px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 1px 8px;
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: #FFFFFF;
}

.footer a {
    color: #FFFFFF;
    text-decoration: underline;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #008080;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-box {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    padding: 20px;
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 20px;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    background: white;
    margin: 12px auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000080;
    transition: width 0.3s;
}

@keyframes grow {
    from { transform: scale(0.1); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

.plant-svg.animating {
    animation: grow 2s ease-in-out;
}

.scrollbar::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.scrollbar::-webkit-scrollbar-track {
    background: #DFDFDF;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
}

.scrollbar::-webkit-scrollbar-button {
    background: #C0C0C0;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    height: 16px;
    width: 16px;
}