/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  padding: 1.5rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-left h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #C5DEDD;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 1rem;
  color: #C5DEDD;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.add-button {
  background-color: #F3F4F6;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.add-button:hover {
  background-color: #E5E7EB;
  transform: scale(1.05);
}

.theme-selector {
  position: relative;
}

.theme-button {
  background: none;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.theme-button:hover {
  background-color: #F3F4F6;
  transform: scale(1.05);
}

.theme-picker {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 220px;
}

.theme-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.theme-option:hover {
  transform: scale(1.15);
}

.theme-option.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Dashboard Styles */
#dashboard {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  overflow: hidden;
  padding: 0.5rem;
}

.block {
  background-color: #FFD6E0;
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 200px;
  min-height: 200px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: grab;
  position: absolute;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: 500px;
}

.block:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.block-mood {
  position: absolute;
  top: -15px;
  right: -5px;
  font-size: 1.8rem;
  background-color: #FFD6E0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 5;
}

.block-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.block-actions {
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  gap: 0.5rem;
}

.block:hover .block-actions {
  visibility: visible;
  opacity: 1;
}

.block-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow: visible;
}

.block-edit, .block-delete, .block-md-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
  border-radius: 50%;
  color: #666;
}

.block-edit:hover, .block-delete:hover, .block-md-toggle:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.block-md-toggle.active {
  color: #333;
  background-color: rgba(255, 255, 255, 0.5);
}

.block-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  word-break: break-word;
  outline: none;
  padding: 0;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
}

.block-title:focus {
  opacity: 1;
}

.block-estimate {
  font-size: 0.8rem;
  width: fit-content;
  outline: none;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0.7;
}

.block-notes {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
  overflow-wrap: break-word;
  outline: none;
  padding: 0;
  transition: all 0.15s ease;
  overflow: visible;
  white-space: pre-wrap;
  border: none;
  background: transparent;
}

.block-notes:focus {
  opacity: 1;
}

/* Markdown Styles */
.block-notes-container {
  position: relative;
  min-height: 1.5em;
  flex: 1;
}

.block-notes-edit {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
  overflow-wrap: break-word;
  outline: none;
  padding: 0;
  transition: all 0.15s ease;
  overflow: visible;
  white-space: pre-wrap;
  border: none;
  background: transparent;
  cursor: text;
  user-select: text;
}

.block-notes-edit:focus {
  opacity: 1;
}

.block-notes-preview {
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: visible;
  color: inherit;
  cursor: text;
  user-select: text;
}

.block-notes-preview.hidden {
  display: none;
}

.block-notes-edit.hidden {
  display: none;
}

/* Basic markdown styling */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.markdown-body h1 { font-size: 1.3em; }
.markdown-body h2 { font-size: 1.2em; }
.markdown-body h3 { font-size: 1.1em; }
.markdown-body h4 { font-size: 1em; }

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.markdown-body li {
  margin-bottom: 0.2em;
}

.markdown-body a {
  color: #0366d6;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body code {
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.2em;
  border-radius: 3px;
  font-size: 0.9em;
}

.markdown-body pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.5em;
  border-radius: 3px;
  overflow: auto;
  margin: 0.5em 0;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-body blockquote {
  margin: 0.5em 0;
  padding-left: 0.8em;
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

.markdown-body img {
  max-width: 100%;
  border-radius: 3px;
}

.markdown-body hr {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  margin: 0.8em 0;
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body em {
  font-style: italic;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  border: none;
}

.mood-selector-content {
  max-width: 400px;
}

.color-selector-content {
  max-width: 350px;
}

/* Mood Grid */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.mood-option {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-option:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.5);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: all 0.2s ease;
}

.close-modal:hover {
  color: #333;
}

.modal-title {
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  color: #666;
}

/* This section was removed */

/* Color Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.color-option {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin: 0 auto;
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option:nth-child(1) {
  background-color: #FFD6E0;
}

.color-option:nth-child(2) {
  background-color: #C5DEDD;
}

.color-option:nth-child(3) {
  background-color: #FFECB8;
}

.color-option:nth-child(4) {
  background-color: #D1E5F7;
}

.color-option:nth-child(5) {
  background-color: #E2D6FF;
}

.color-option:nth-child(6) {
  background-color: #FFCBC1;
}

.color-option:nth-child(7) {
  background-color: #D8E2DC;
}

.color-option:nth-child(8) {
  background-color: #FFE5D9;
}

.color-option:nth-child(9) {
  background-color: #DBCDF0;
}

.color-option:nth-child(10) {
  background-color: #F0EFEB;
}

.color-option.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* X Link */
.x-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1rem;
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 100;
}

.x-link:hover {
  color: #666;
  transform: scale(1.1);
}

/* Empty state styles */
.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 3rem;
  color: #888;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  width: 80%;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Resizing and dragging styles */
.block.dragging {
  opacity: 0.8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  cursor: grabbing;
}

/* Theme Styles */
body.theme-default {
  background-color: #f8f9fa;
}

body.theme-peach {
  background-color: #FFF0EB;
}

body.theme-mint {
  background-color: #EBFFEF;
}

body.theme-lavender {
  background-color: #F2EBFF;
}

body.theme-sky {
  background-color: #EBF9FF;
}

body.theme-cream {
  background-color: #FFF8E1;
}

body.theme-blush {
  background-color: #FFE2E2;
}

body.theme-sage {
  background-color: #E8F3D6;
}

body.theme-powder {
  background-color: #DCF2FF;
}

body.theme-lilac {
  background-color: #EDDCFF;
}

@media (max-width: 768px) {
  #dashboard .block {
    min-width: 150px;
    min-height: 150px;
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }
} 