/* Basic Setup */
body {
    font-family: "MS Sans Serif", "Verdana", sans-serif;
    font-size: 11px;
    background-color: #3A3A3A;
    color: #000;
    margin: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.photoshop-app {
    width: 800px;
    height: 600px;
    background-color: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Windows 9x-style borders */
.panel, .image-window, .status-bar > .status-field {
    border: 1px solid;
    border-color: #7f7f7f #fff #fff #7f7f7f;
    box-shadow: inset 1px 1px 0px #c0c0c0;
}

/* Menu Bar */
.menu-bar {
    background-color: #c0c0c0;
    display: flex;
    padding: 2px;
    border-bottom: 1px solid #7f7f7f;
}

.menu-item {
    padding: 2px 6px;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-grow: 1;
    padding: 10px;
    gap: 10px;
}

.toolbar-left {
    width: 40px;
    background-color: #c0c0c0;
    padding-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
}

.tool-icon {
    width: 24px;
    height: 24px;
    border: 1px solid #c0c0c0;
    margin: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

.tool-icon:hover {
    border-color: #fff #000 #000 #fff;
}

.tool-icon.active {
    border-color: #000 #fff #fff #000;
    background-color: #ddd;
}

.canvas-container {
    flex-grow: 1;
}

.image-window {
    background: #c0c0c0;
    padding: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.title-bar-buttons {
    display: flex;
}

.win-button {
    width: 16px;
    height: 14px;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    background-color: #c0c0c0;
    margin-left: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "MS Sans Serif", "Verdana", sans-serif;
}

.win-button.close::before {
    content: "X";
    font-weight: bold;
}
.win-button.minimize::before {
    content: "_";
    font-weight: bold;
    position: relative;
    top: -4px;
}
.win-button.maximize::before {
    content: "☐";
    font-size: 12px;
    position: relative;
    top: -1px;
}

.image-content {
    flex-grow: 1;
    background-color: #000;
    background-image: url('../img/lake.jpg');
    background-size: cover;
    background-position: center;
    margin: 5px;
    border: 1px solid #000;
}

.panels-right {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel {
    background-color: #c0c0c0;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background-color: #7f7f7f;
    color: #fff;
    padding: 2px 4px;
    border-bottom: 1px solid #000;
    font-weight: bold;
}

.panel-content {
    padding: 5px;
}

/* Layers Panel Specifics */
.layer-item {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    margin-bottom: 2px;
    gap: 5px;
}
.layer-item.active {
    background-color: #000080;
    color: white;
}
.layer-thumb {
    width: 30px;
    height: 20px;
    border: 1px solid #000;
    background-color: #fff;
}


/* Status Bar */
.status-bar {
    display: flex;
    padding: 2px;
    gap: 2px;
    border-top: 1px solid #7f7f7f;
    box-shadow: inset 0 1px 0 #fff;
}

.status-field {
    padding: 2px 4px;
    flex-grow: 0;
}
#music-toggle {
    cursor: pointer;
}
#music-toggle:hover {
    background-color: #ddd;
}
.flex-grow {
    flex-grow: 1;
}

/* Game-specific styles */
#game-canvas {
    position: relative;
    overflow: hidden;
}

.fishing-minigame {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid #fff;
    padding: 5px;
}

.minigame-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #333;
    border: 1px inset #000;
}

.sweet-spot {
    position: absolute;
    height: 100%;
    background-color: rgba(0, 255, 0, 0.5);
}

.indicator {
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: yellow;
}

/* Modal Window Styles */
.modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #fff #000 #000 #fff;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 100;
}

.modal-content {
    padding: 15px;
    text-align: center;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-buttons {
    margin-top: 15px;
}

.ok-button, .buy-button, .sell-button {
    width: auto;
    height: auto;
    padding: 2px 12px;
}

.sell-button {
    display: block;
    margin: 5px auto;
}

.use-button {
    margin-left: 10px;
    padding: 0 8px;
}

/* Shop Styles */
.shop-item-group {
    margin-bottom: 8px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    background-color: #ddd;
    border: 1px solid;
    border-color: #fff #7f7f7f #7f7f7f #fff;
}

.shop-item-desc {
    margin: 2px 0 0 0;
    font-size: 10px;
    padding-left: 4px;
    text-align: left;
}

/* Disabled UI Elements */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.modal-window.welcome-modal {
    width: 350px;
}

.canvas-container {
    flex-grow: 1;
}

#player-panel ul {
    list-style-type: none;
    padding-left: 10px;
    margin: 5px 0;
}
#player-panel li {
    font-size: 10px;
}

.consumable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consumable-desc {
    font-size: 11px;
    margin: 2px 0 8px 15px;
    font-style: italic;
    color: #333;
}