/* Custom Styles for Bulma Integration */

/* Color System Variables */
:root {
  /* Bulma Framework Colors - Modern Teal/Cyan Theme */
  --bulma-primary: #0d9488;
  --bulma-info: #0891b2;
  --bulma-success: #22c55e;
  --bulma-warning: #f59e0b;
  --bulma-danger: #ef4444;

  /* Primary Colors - Teal */
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;

  /* Success Colors - Green */
  --success: #22c55e;
  --success-hover: #16a34a;
  --success-light: #dcfce7;

  /* Danger Colors - Red */
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fee2e2;

  /* Warning Colors - Amber */
  --warning: #f59e0b;
  --warning-hover: #d97706;

  /* Category Colors - Harmonized Palette */
  --category-work: #0d9488;
  --category-work-light: #ccfbf1;
  --category-personal: #22c55e;
  --category-personal-light: #dcfce7;
  --category-study: #8b5cf6;
  --category-study-light: #ede9fe;
  --category-creative: #ec4899;
  --category-creative-light: #fce7f3;
  --category-other: #64748b;
  --category-other-light: #f1f5f9;

  /* Theme Colors */
  --bg-color: #fafafa;
  --text-color: #1e293b;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

/* Bulma Primary Color Overrides */
.button.is-primary {
  background-color: #0d9488;
  border-color: transparent;
}

.button.is-primary:hover,
.button.is-primary.is-hovered {
  background-color: #0f766e;
  border-color: transparent;
}

.button.is-primary:focus,
.button.is-primary.is-focused {
  border-color: transparent;
  box-shadow: 0 0 0 0.125em rgba(13, 148, 136, 0.25);
}

.button.is-primary:active,
.button.is-primary.is-active {
  background-color: #0f766e;
  border-color: transparent;
}

.button.is-primary.is-light {
  background-color: #ccfbf1;
  color: #0d9488;
}

.button.is-primary.is-light:hover,
.button.is-primary.is-light.is-hovered {
  background-color: #99f6e4;
  color: #0f766e;
}

.has-text-primary {
  color: #0d9488 !important;
}

.has-background-primary {
  background-color: #0d9488 !important;
}

/* Bulma Success Color Overrides */
.button.is-success {
  background-color: #22c55e;
  border-color: transparent;
}

.button.is-success:hover,
.button.is-success.is-hovered {
  background-color: #16a34a;
}

.button.is-success.is-light {
  background-color: #dcfce7;
  color: #16a34a;
}

.button.is-success.is-light:hover,
.button.is-success.is-light.is-hovered {
  background-color: #bbf7d0;
  color: #15803d;
}

/* Bulma Danger Color Overrides */
.button.is-danger {
  background-color: #ef4444;
  border-color: transparent;
}

.button.is-danger:hover,
.button.is-danger.is-hovered {
  background-color: #dc2626;
}

.button.is-danger.is-light {
  background-color: #fee2e2;
  color: #dc2626;
}

.button.is-danger.is-light:hover,
.button.is-danger.is-light.is-hovered {
  background-color: #fecaca;
  color: #b91c1c;
}

/* Bulma Neutral Light Button */
.button.is-light {
  background-color: #f1f5f9;
  color: #475569;
}

.button.is-light:hover,
.button.is-light.is-hovered {
  background-color: #e2e8f0;
  color: #334155;
}

/* Global Font - Inter */
* {
  font-family: "Inter", sans-serif;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Header - More Subtle */
.sticky-rect {
  position: sticky;
  top: 0;
  background-color: rgba(250, 250, 250, 0.95);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.studio-name {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sticky-rect:hover .studio-name {
  opacity: 1;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 0;
  padding: 1rem 0 3rem 0;
  background-color: var(--bg-color);
}

.header-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-color);
}

.header-section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 1rem;
  color: #666;
  border-bottom: 1px solid var(--border-color);
}

.header-section p {
  color: #888;
  font-size: 1rem;
  padding-top: 1rem;
  margin-bottom: 0;
}

.datetime-display {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* Tab Navigation */
.tabs {
  margin-bottom: 2rem;
}

.tabs ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.tabs ul li.is-active a {
  font-weight: 700;
  color: #000 !important;
  border-bottom-color: #000 !important;
}

.tabs ul li.is-active a .tab-icon {
  font-variation-settings: "FILL" 1;
  color: #000;
}

.tab-icon {
  font-size: 1.25rem;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Focus States */
.button:focus,
.input:focus,
.select:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25);
}

.button:focus-visible,
.input:focus-visible,
.select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Select Dropdown Arrow - Black */
.select:not(.is-multiple):not(.is-loading)::after {
  border-color: #000 !important;
}

/* Micro-interactions for Buttons */
.button {
  transition: all 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Button Icons */
.button-icon {
  font-size: 1.25rem;
  vertical-align: middle;
}

/* Timer Section */
.timer-section {
  margin-bottom: 2rem;
}

.timer-display {
  background-color: #0d9488;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.3);
}

.timer-display .time {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  font-family: "Inter", monospace;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timer-controls .button .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* Pomodoro Header */
.pomodoro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pomodoro-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
}

.pomodoro-header #expandAllPomodoros {
  transition: all 0.2s ease;
}

.pomodoro-header #expandAllPomodoros:hover {
  transform: translateY(-1px);
}

.pomodoro-header #expandAllPomodoros:focus {
  box-shadow: none;
}

.pomodoro-help {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Pomodoro Grid - Compact Layout */
.pomodoro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .pomodoro-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pomodoro Section */
.pomodoro-section.box {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pomodoro-section.collapsed .pomodoro-body {
  display: none;
}

.pomodoro-section.collapsed .collapse-btn .material-symbols-outlined {
  transform: rotate(-90deg);
}

.pomodoro-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.pomodoro-header-content h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.pomodoro-header-content .collapse-btn {
  padding: 0;
  min-height: 1.5rem;
  height: 1.5rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.pomodoro-header-content .collapse-btn:hover {
  background-color: #f0f0f0;
}

.pomodoro-header-content .collapse-btn .material-symbols-outlined {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.pomodoro-section.collapsed
  .pomodoro-header-content
  .collapse-btn
  .material-symbols-outlined {
  transform: rotate(-90deg);
}

.pomodoro-body {
  transition: all 0.3s ease;
}

.pomodoro-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pomodoro-controls .button {
  padding: 0.5rem 1rem;
  min-height: auto;
}

.pomodoro-controls .button .button-icon {
  font-size: 1.1rem;
}

.pomodoro-display {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #000;
  margin-bottom: 1rem;
  font-family: "Inter", monospace;
}

/* Compact mode for smaller screens */
@media (max-width: 768px) {
  .pomodoro-grid {
    grid-template-columns: 1fr;
  }

  .pomodoro-display {
    font-size: 2rem;
  }
}

/* Schedule Section */
.schedule-section {
  margin-bottom: 2rem;
}

.add-schedule-task {
  margin-bottom: 2rem;
}

.upcoming-tasks h3 {
  margin-bottom: 1rem;
  color: #000;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.schedule-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.schedule-item.priority-high {
  border-left: 4px solid #dc3545;
}

.schedule-item.priority-medium {
  border-left: 4px solid #ffc107;
}

.schedule-item.priority-low {
  border-left: 4px solid #28a745;
}

.schedule-item-content {
  flex: 1;
}

.schedule-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #000;
}

.schedule-item-datetime {
  font-size: 0.875rem;
  color: #666;
}

.schedule-item-actions {
  display: flex;
  gap: 0.5rem;
}

.schedule-item-actions button {
  padding: 0;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.schedule-item-actions button .material-symbols-outlined {
  margin: 0;
  font-size: 1.25rem;
}

.schedule-item-actions button:hover {
  background-color: #dc3545;
}

.schedule-item-actions button:hover .material-symbols-outlined {
  color: #fff;
}

/* History Section */
.history-filters {
  margin-bottom: 2rem;
}

/* Statistics */
.statistics {
  margin-bottom: 2rem;
}

.statistics h3 {
  margin-bottom: 1rem;
  color: #000;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: #0d9488;
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Time Log */
.time-log {
  margin-bottom: 2rem;
}

.time-log h3 {
  margin-bottom: 1rem;
  color: #000;
}

.log-controls {
  margin-bottom: 1.5rem;
}

.log-controls .button .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.time-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-log-item {
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.time-log-item:hover {
  background-color: #f0f0f0;
}

.time-log-item-content {
  flex: 1;
}

.time-log-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #000;
}

.time-log-item-details {
  font-size: 0.875rem;
  color: #666;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile: Simplified Time Log display like Schedule */
@media (max-width: 768px) {
  .time-log-item {
    position: relative;
    padding-right: 6rem;
  }

  .time-log-item-details {
    gap: 0.5rem;
  }

  /* Hide individual date and time icons on mobile */
  .time-log-item-details .log-date .material-symbols-outlined,
  .time-log-item-details .log-time .material-symbols-outlined {
    display: none;
  }

  /* Combine date and time inline */
  .time-log-item-details .log-date::after {
    content: ",";
    margin-right: 0.25rem;
  }

  .time-log-item-actions {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
  }
}

.time-log-item-actions {
  display: flex;
  gap: 0.5rem;
}

.time-log-item-actions button,
.time-log-item-actions .edit-icon {
  padding: 0;
  background-color: var(--bg-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.time-log-item-actions button .material-symbols-outlined,
.time-log-item-actions .edit-icon .material-symbols-outlined {
  margin: 0;
  font-size: 1.25rem;
  vertical-align: middle;
  color: #64748b;
}

.time-log-item-actions button:hover {
  background-color: #dc3545;
}

.time-log-item-actions button:hover .material-symbols-outlined {
  color: #fff;
}

.time-log-item-actions .edit-icon:hover {
  background-color: #64748b;
}

.time-log-item-actions .edit-icon:hover .material-symbols-outlined {
  color: #fff;
}

/* Category Badges - Bold style */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #363636;
  background-color: #f0f0f0;
}

.category-badge.category-work {
  background-color: var(--category-work-light);
  color: var(--category-work);
}

.category-badge.category-personal {
  background-color: var(--category-personal-light);
  color: var(--category-personal);
}

.category-badge.category-study {
  background-color: var(--category-study-light);
  color: var(--category-study);
}

.category-badge.category-creative {
  background-color: var(--category-creative-light);
  color: var(--category-creative);
}

.category-badge.category-other {
  background-color: var(--category-other-light);
  color: var(--category-other);
}

/* Toast Notifications Enhancement */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  min-width: 300px;
  max-width: 400px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toast-notification.is-success {
  background-color: var(--success);
  color: white;
}

.toast-notification.is-danger {
  background-color: var(--danger);
  color: white;
}

.toast-notification.is-info {
  background-color: var(--primary);
  color: white;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-message {
  font-weight: 500;
}

.toast-notification.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.toast-notification.show {
  animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy Notification Support */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #000;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  font-weight: 500;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-state .material-symbols-outlined {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* Priority Buttons */
.priority-buttons {
  margin-bottom: 0 !important;
}

.priority-buttons .priority-btn {
  padding: 0.5rem 0.75rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.priority-buttons .priority-btn .material-symbols-outlined {
  font-size: 1rem;
  font-variation-settings: "FILL" 1;
}

/* High Priority - Red */
.priority-buttons .priority-btn[data-priority="high"] {
  background-color: #fee2e2;
  color: #dc2626;
}

.priority-buttons .priority-btn[data-priority="high"]:hover,
.priority-buttons .priority-btn[data-priority="high"].is-active {
  background-color: #fecaca;
  border-color: #dc2626;
}

/* Medium Priority - Amber/Yellow */
.priority-buttons .priority-btn[data-priority="medium"] {
  background-color: #fef3c7;
  color: #d97706;
}

.priority-buttons .priority-btn[data-priority="medium"]:hover,
.priority-buttons .priority-btn[data-priority="medium"].is-active {
  background-color: #fde68a;
  border-color: #d97706;
}

/* Low Priority - Green */
.priority-buttons .priority-btn[data-priority="low"] {
  background-color: #dcfce7;
  color: #16a34a;
}

.priority-buttons .priority-btn[data-priority="low"]:hover,
.priority-buttons .priority-btn[data-priority="low"].is-active {
  background-color: #bbf7d0;
  border-color: #16a34a;
}

/* Custom Bulma Helpers */
.is-fullwidth {
  width: 100%;
}

.is-vcentered {
  align-items: center;
}

.is-narrow {
  flex: none;
  width: auto;
}

/* Main Container - Make it grow to push footer down */
body .container {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1400px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  body .container {
    padding: 1rem !important;
  }
}

@media (min-width: 769px) {
  body .container {
    padding: 2rem !important;
  }
}

@media (min-width: 1408px) {
  body .container {
    max-width: 1300px !important;
    padding: 3rem !important;
  }
}

@media (min-width: 1920px) {
  body .container {
    max-width: 1600px !important;
    padding: 4rem !important;
  }
}

@media (min-width: 2560px) {
  body .container {
    max-width: 1900px !important;
    padding: 5rem !important;
  }
}

/* Mobile Tab Navigation */
@media (max-width: 768px) {
  .tabs li a {
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .tab-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .tab-text {
    font-weight: 600;
  }
}

/* Material Icons */
.material-symbols-outlined {
  font-size: 1.5rem;
  vertical-align: middle;
}

.material-icons {
  font-family: "Material Icons";
  font-size: 1.25rem;
  vertical-align: middle;
}

/* Screen Reader Only */
.is-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Privacy Modal - 80% screen height */
.modal-card {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-card-body {
  overflow-y: auto;
  flex: 1;
}

/* Privacy Accordion */
.privacy-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: #0d9488;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f9f9f9;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #363636;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header .accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.accordion-header .accordion-title .material-symbols-outlined {
  font-size: 1.25rem;
  color: #0d9488;
}

.accordion-header .accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

.accordion-content.active {
  max-height: 500px;
  padding: 1rem;
}

.accordion-content p,
.accordion-content ul {
  margin-bottom: 0.75rem;
}

.accordion-content ul {
  padding-left: 1.5rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* Loading State Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button[data-loading] .btn-text,
.button[data-loading] .material-symbols-outlined {
  opacity: 0.5;
}

.button[data-loading]::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Export Loading Indicator */
.button.is-exporting {
  position: relative;
  pointer-events: none;
}

.button.is-exporting .material-symbols-outlined {
  opacity: 0.3;
}

.button.is-exporting::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Progress Container for Pomodoro */
.pomodoro-container {
  position: relative;
}

.progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  pointer-events: none;
}

.progress-container .progress {
  width: 80%;
}

/* Help Link */
.help-link {
  cursor: pointer;
  color: var(--primary);
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.help-link:hover {
  color: var(--primary-hover);
}

.help-link .material-symbols-outlined {
  font-size: 1.25rem;
  vertical-align: middle;
}

/* Category Legend */
.category-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Earnings Card */
.earnings-card {
  background-color: #e07a5f;
  color: #fff;
}

.earnings-card .stat-value {
  color: #fff !important;
}

/* Character Count */
.character-count {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
  text-align: right;
}

.character-count span {
  font-weight: 600;
  color: #0d9488;
}

.character-count.warning {
  color: #f59e0b;
}

.character-count.warning span {
  color: #f59e0b;
}

.character-count.error {
  color: #ef4444;
}

.character-count.error span {
  color: #ef4444;
}

/* Undo Buttons */
button.is-small.is-text {
  padding: 0.25rem 0.5rem;
  height: auto;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

button.is-small.is-text:hover {
  background-color: #0d9488;
  color: #fff;
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-color);
}

.footer .content {
  color: var(--text-color);
}

.footer .content p {
  color: var(--text-color);
}

.footer strong {
  color: var(--text-color) !important;
}

.footer .has-text-grey {
  color: #64748b !important;
}

.footer .has-text-primary:hover {
  text-decoration: underline;
}
