body {
  min-height: 600px;
  font-size: 14px !important;
  overflow-y: auto;

  --sb-track-color: #232E33; /* track bg */
  --sb-thumb-color: #495057; /* bar color */
  --sb-size: 3px;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 2px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 2px;

}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}




#currentUrl {
  font-size: 70%;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Plant Manager Timeline Styles */
.timeline-container {
  background: #1a1a2e;
  border-radius: 5px;
  padding: 10px;
}

.timeline {
  position: relative;
}

.timeline-header {
  background: #232E33;
  border-radius: 3px;
}

.timeline-hour {
  user-select: none;
}

.timeline-row {
  background: #2a2a3e;
  border-radius: 2px;
  transition: background 0.2s;
}

.timeline-row:hover {
  background: #3a3a4e;
}

.plot-label {
  user-select: none;
  font-weight: 600;
}

.timeline-item {
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.timeline-night-section {
  border: 1px solid #0dcaf0;
}

.crop-list .crop-row {
  transition: background 0.2s;
}

.crop-list .crop-row:hover {
  background: #2a3a4e !important;
}

.crop-list .crop-row.advanced {
  border-left: 3px solid #0dcaf0;
}

.crop-list .crop-row.medium {
  border-left: 3px solid #6c757d;
}

.crop-list .crop-row.basic {
  border-left: 3px solid #198754;
}

.quick-stats {
  border: 1px solid #444;
}

.nav-tabs .nav-link {
  font-size: 14px;
  padding: 0.4rem 0.6rem;
}
.tabs-hidden {
  display: none;
}

table {
  background-color: transparent !important;
}

.table td {
  background-color: transparent !important;
}

table thead th {
  background: #000 !important;
  text-align: left;
  font-weight: bold;
  border-bottom: 1px solid #808080;
  font-size: 11px;
  padding: 1px 3px !important;
}

tr:last-child td {
  border-bottom: none;
}


.map-table {
  width: auto;
  font-size: 11px;
  text-align: center;
}

.map-table th, .map-table td {
  width: 40px;
}

.map-table th {
  background: #000 !important;
}

.map-table td:first-child {
  background: #000 !important;
  font-weight: bold;
}

.hand {
  cursor: pointer;
}


/* Flower styles */
.h-16 {
  height: 16px;
}
.pix {
  image-rendering: pixelated;
}

.beehive-info {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  font-size: 14px;
}
.beehive-icon {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.time-left {
  color: #8bc34a;
  font-size: 14px;
}
.flower-info {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  font-size: 14px;
}
.flower-icon {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}



.boost-info {
  color: #ff9800;
  font-size: 12px;
  padding: 5px;
  background: #2a2a2a;
  border-radius: 4px;
}

.rate-info {
  color: #4fc3f7;
  font-size: 10px;
  margin-left: 3px;
}
/* Chicken styles */
.status-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  image-rendering: pixelated;
}
.status-time {
  cursor: help;
  white-space: nowrap;
  font-size: 14px;
}
.status-ok {
  color: #4caf50;
}
.status-warning {
  color: #ff9800;
}
.status-danger {
  color: #f44336;
}
.chicken-id, .cow-id {
  color: #bb86fc;
  font-size: 14px;
}
.chicken-exp, .cow-exp {
  color: #888;
  font-size: 11px;
}
.state-badge {
  font-size: 11px;
  padding: 1px 3px;
  border-radius: 2px;
  display: inline-block;
  margin-left: 3px;
}
.state-idle {
  background: #4caf50;
}
.state-sleeping {
  background: #2196f3;
}
.state-sad {
  background: #ff9800;
}
.state-sick {
  background: #f44336;
}
/* Treasure styles - no bold */


.noresize {
  width: auto !important;
}

.item-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  image-rendering: pixelated;
  object-fit: contain;
}

.boost-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
  image-rendering: pixelated;
}
.boost-icon {
  width: 16px;
  height: 16px;
  cursor: help;
  image-rendering: pixelated;
}
.summary-row {
  background: #333;
  border-top: 2px solid #555;
  font-size: 14px;
  font-weight: normal;
}
.total-row {
  background: #2a2a2a;
  font-size: 14px;
  font-weight: normal;
}
/* Remove max-height from tab-content */
.tab-content {
  font-size: 14px;
}

/* Together Addon Styles */


.together-container {
  margin-top: 10px;
  font-size: 14px;
}
.together-input-group {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.together-input-group input {
  flex: 1;
  background: #212529;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}
.together-checkboxes {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.together-checkboxes label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.together-add-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.together-farm-list {
  /*max-height: 300px;*/
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 5px;
  background: #1a1a1a;
}

.together-farm-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.together-farm-link {
  color: #80d1f5;
  text-decoration: none;
  cursor: pointer;
}
.together-farm-link:hover {
  text-decoration: underline;
}
.together-farm-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.together-icon {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
.together-empty {
  text-align: center;
  color: #888;
  padding: 10px;
  font-size: 14px;
}
.together-visit-icon {
  cursor: pointer;
}

/* Bell Notifications */
#bellBtn {
  font-size: 16px;
  line-height: 1;
}

#bellDot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  animation: bellPulse 1.5s ease-in-out infinite;
}

@keyframes bellPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

.bell-dropdown {
  position: absolute;
  z-index: 1050;
  right: 8px;
  top: 30px;
}

.bell-dropdown-menu {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.bell-empty {
  color: #888;
  padding: 10px;
  text-align: center;
  font-size: 12px;
}

.bell-menu-list {
  padding: 5px 0;
}

.bell-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.bell-menu-item:hover {
  background: #2a2a2a;
}

.bell-menu-item:last-child {
  border-bottom: none;
}

.bell-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.bell-menu-dot.bell-dot-ready {
  background: #dc3545;
}

.bell-menu-content {
  flex: 1;
  min-width: 0;
}

.bell-menu-title {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bell-menu-time {
  font-size: 10px;
  color: #888;
}

.bell-manager {
  border-top: 1px solid #444;
  background: #222;
  font-weight: 500;
}

.bell-manager:hover {
  background: #333;
}

/* Bell Manager Modal */
.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
}

.bell-manager-container {
  padding: 0;
}

.bell-manager-container h6 {
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.bell-manager-form {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  align-items: stretch;
}

.bell-manager-form input {
  flex: 1;
}

.bell-manager-form input:first-child {
  flex: 2;
}

#bell-when {
  max-width: 130px;
  flex: 0 0 130px;
}

.bell-manager-list {
  max-height: 200px;
  overflow-y: auto;
}

.bell-manager-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.bell-manager-item-content {
  flex: 1;
  min-width: 0;
}

.bell-manager-item-title {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bell-manager-item-time {
  font-size: 10px;
  color: #888;
}

.bell-delete-btn {
  padding: 2px 6px;
  font-size: 12px;
}

.bell-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 1040;
}

