/* Cottagecore Paint App Styles */

.cottagecore-paint-app {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  background: #f8f5ec url('../assets/textures/wood-light.jpg'); /* placeholder wood texture */
  border: 6px solid #b7c7a3;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(80, 60, 40, 0.18);
  font-family: 'Indie Flower', cursive;
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.paint-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e6dbc7 url('../assets/textures/wood-plank.png'); /* placeholder plank texture */
  border-right: 4px solid #b7c7a3;
  border-radius: 18px 0 0 18px;
  padding: 12px 8px;
  min-width: 60px;
  max-width: 80px;
  gap: 10px;
  box-shadow: 2px 0 8px rgba(80, 60, 40, 0.08);
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.paint-toolbar::-webkit-scrollbar {
  width: 6px;
}

.paint-toolbar::-webkit-scrollbar-thumb {
  background-color: rgba(183, 199, 163, 0.6);
  border-radius: 10px;
}

.tool-btn {
  width: 38px;
  height: 38px;
  background: #f5e6d3;
  border: 2px solid #b7c7a3;
  border-radius: 12px;
  margin-bottom: 3px;
  font-size: 1.4em;
  color: #7a6c5d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(180, 160, 120, 0.08);
}
.tool-btn.active, .tool-btn:hover {
  background: #e7c4b5;
  border-color: #e9b44c;
  box-shadow: 0 0 0 3px #e9b44c44;
}

.toolbar-section {
  margin: 6px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* File action buttons (save/import) in a row */
.toolbar-section.file-actions {
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0;
}

.file-actions .tool-btn {
  width: 34px;
  height: 34px;
  font-size: 1.2em;
  padding: 0;
  margin: 0;
}

.toolbar-label {
  font-size: 1.2em;
  color: #7a6c5d;
  margin-bottom: 4px;
}

.paint-color-picker {
  width: 36px;
  height: 36px;
  border: 2px solid #b7c7a3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px #e7c4b544;
}

.paint-size-slider {
  width: 60px;
  accent-color: #9caf88;
  margin-bottom: 8px;
}

.clear-canvas {
  background: #f4845f;
  color: #fff;
  border-color: #e9b44c;
  font-size: 1.3em;
}
.clear-canvas:hover {
  background: #e9b44c;
  color: #fff;
}

.save-png {
  background: #9caf88;
  color: #fff;
  border-color: #7d9163;
  font-size: 1.3em;
}
.save-png:hover {
  background: #7d9163;
  color: #fff;
}

.import-image {
  background: #d3c0e6;
  color: #fff;
  border-color: #967bb6;
  font-size: 1.3em;
}
.import-image:hover {
  background: #967bb6;
  color: #fff;
}

.paint-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.paint-canvas {
  background: #fdf6e3 url('../assets/textures/parchment.jpg'); /* placeholder parchment texture */
  border: 4px solid #b7c7a3;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(180, 160, 120, 0.10);
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 500px;
  min-width: 200px;
  min-height: 150px;
  display: block;
}

/* Decorative border of tiny flowers/leaves (placeholder, can be improved with SVG or images) */
.paint-canvas::after {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  border-radius: 18px;
  border: 2px dashed #b7c7a3;
  opacity: 0.3;
}

.cottagecore-paint-app,
.paint-canvas-container,
.paint-canvas {
  box-sizing: border-box;
}

/* Remove scrollbars from window content */
.cottage-window .window-content {
  overflow: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 1000px), (max-height: 700px) {
  .cottagecore-paint-app {
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  .paint-toolbar {
    flex-direction: row;
    border-right: none;
    border-bottom: 4px solid #b7c7a3;
    border-radius: 18px 18px 0 0;
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    padding: 8px 4px;
    gap: 10px;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .toolbar-section.file-actions {
    flex-direction: row;
    margin: 0 5px;
  }
  
  .paint-canvas-container {
    padding: 8px 2px;
  }
  .paint-canvas {
    max-width: 98vw;
    max-height: 60vh;
  }
}

/* Night mode (dark theme) for paint app */
body.night-mode .cottagecore-paint-app {
  background: #23212B url('../assets/textures/wood-dark.jpg');
  border-color: #3A4D39;
  box-shadow: 0 8px 32px rgba(30, 30, 40, 0.28);
}
body.night-mode .paint-toolbar {
  background: #3A4D39 url('../assets/textures/wood-plank-dark.png');
  border-right: 4px solid #23212B;
}
body.night-mode .tool-btn {
  background: #3B3553;
  color: #E6E1D3;
  border-color: #6B3A4A;
}
body.night-mode .tool-btn.active, body.night-mode .tool-btn:hover {
  background: #4B3B47;
  border-color: #E9B44C;
  box-shadow: 0 0 0 3px #E9B44C44;
}
body.night-mode .paint-color-picker {
  background: #23212B;
  border-color: #6B3A4A;
}
body.night-mode .paint-size-slider {
  accent-color: #BFAE80;
}
body.night-mode .paint-canvas {
  background: #23212B url('../assets/textures/parchment-dark.jpg');
  border-color: #3A4D39;
}
body.night-mode .paint-canvas::after {
  border-color: #6B3A4A;
}

body.night-mode .save-png {
  background: #3A4D39;
  color: #E6E1D3;
  border-color: #6B3A4A;
}
body.night-mode .save-png:hover {
  background: #4B5D49;
  border-color: #E9B44C;
}

body.night-mode .import-image {
  background: #4B3B47;
  color: #E6E1D3;
  border-color: #6B3A4A;
}
body.night-mode .import-image:hover {
  background: #5B4B57;
  border-color: #E9B44C;
} 