/* /home/robot/public_html/style.css */

@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Itim&family=Mali:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-cream-bg: #faf8f5;
  --color-paper: #fffefb;
  --color-charcoal: #2d3130;
  --color-grid: #e7e3dc;
  
  /* Bullet Journal pastel markers */
  --marker-green: #d1ebd8;
  --marker-green-dark: #7aa985;
  --marker-orange: #fce2d6;
  --marker-orange-dark: #cf7c5a;
  --marker-yellow: #fdf3d1;
  --marker-yellow-dark: #caa042;
  --marker-blue: #d6e5f5;
  --marker-blue-dark: #6fa4d6;
}

body {
  font-family: 'Anuphan', sans-serif;
  color: var(--color-charcoal);
  background-color: var(--color-cream-bg);
  background-image: radial-gradient(var(--color-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

.font-handwriting {
  font-family: 'Mali', 'Itim', cursive;
}

.font-body {
  font-family: 'Anuphan', sans-serif;
}

/* Notebook Cover & Pages */
.notebook-page {
  background-color: var(--color-paper);
  border: 1px solid #e2ded5;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    3px 3px 0px 0px #f4f0e6,
    6px 6px 0px 0px #eae5da,
    9px 9px 0px 0px #dfd9cd,
    0 10px 15px -3px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Notebook Bindings / Ring Holes */
.notebook-rings-top::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 5%;
  right: 5%;
  height: 24px;
  background-image: radial-gradient(circle, #555 30%, transparent 35%);
  background-size: 40px 40px;
  background-repeat: repeat-x;
  z-index: 20;
}

.ring-connector {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 28px;
  background: linear-gradient(to right, #999, #ccc 30%, #fff 50%, #bbb 80%, #777);
  border-radius: 4px;
  box-shadow: 1px 2px 2px rgba(0,0,0,0.15);
  z-index: 21;
}

/* Highlighter Pen Marker effects */
.marker-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.marker-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  width: 104%;
  height: 40%;
  background-color: var(--marker-yellow);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 2px;
}

.marker-highlight-green::after {
  background-color: var(--marker-green);
}

.marker-highlight-orange::after {
  background-color: var(--marker-orange);
}

.marker-highlight-blue::after {
  background-color: var(--marker-blue);
}

/* Wavy lines & sketchy borders */
.sketch-border {
  border: 2px solid var(--color-charcoal);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

/* Custom journal styled checkboxes & radios */
.journal-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-charcoal);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
  background: white;
  transition: all 0.2s ease;
}

.journal-radio:checked {
  background: var(--marker-orange);
}

.journal-radio:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--color-charcoal);
  border-radius: 50%;
  display: block;
}

.journal-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-charcoal);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
  background: white;
  transition: all 0.2s ease;
}

.journal-checkbox:checked {
  background: var(--marker-green);
}

.journal-checkbox:checked::after {
  content: '✓';
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: bold;
  display: block;
}

/* Styled Table for Likert Scales */
.journal-table {
  width: 100%;
  border-collapse: collapse;
}

.journal-table th {
  border-bottom: 2px solid var(--color-charcoal);
  padding: 8px;
  font-family: 'Mali', cursive;
  font-weight: 600;
}

.journal-table td {
  border-bottom: 1px dashed #d1c8b8;
  padding: 12px 8px;
}

.journal-table tr:hover td {
  background-color: #faf9f6;
}

/* Sticky notes */
.sticky-note {
  background-color: var(--marker-yellow);
  box-shadow: 2px 5px 8px rgba(0,0,0,0.05);
  transform: rotate(-1deg);
  border-left: 2px solid var(--marker-yellow-dark);
}

/* Tab controls */
.tab-active {
  background-color: var(--color-paper);
  border-bottom-color: transparent !important;
  font-weight: bold;
  z-index: 10;
}

/* Custom Scrollbar for notebook vibe */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream-bg);
}
::-webkit-scrollbar-thumb {
  background: #c3bbb0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a9a093;
}
