.chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  margin-top: 20px;
}

.refresh-button {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 25px;
  position: relative;
  top: 1px;
}

.refresh-button:hover {
  background-color: #45a049;
}

/* Settings sections styling */
.setting-item {
  margin-bottom: 16px;
}

.setting-item-heading {
  margin-bottom: 16px;
}

/* Container styling for both folders and headings */
.folder-container,
.heading-container {
  margin-top: 12px;
  margin-bottom: 24px;
  width: 100%;
}

/* Input row styling for both folders and headings */
.folder-input-row,
.heading-input-row {
  margin-bottom: 12px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

/* Input container styling */
.input-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  width: 100%;
}

.input-container .setting-item {
  border: none;
  padding: 0;
  margin: 0;
  flex-grow: 0;
  width: auto;
  min-width: 180px;
  max-width: 320px;
  text-align: left;
}

.input-container .setting-item-info {
  display: none;
}

.input-container .setting-item-control {
  flex-grow: 0;
  padding: 0;
  width: auto;
  min-width: 180px;
  max-width: 320px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.input-container .setting-item-control input {
  width: 100%;
  min-width: 180px;
  max-width: 320px;
  text-align: left;
  margin-left: 0;
}

/* Remove button styling */
.small-remove-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.small-remove-button:hover {
  color: var(--text-error);
  border-color: var(--text-error);
}

/* Add button styling for both folders and headings */
.add-folder-button,
.add-heading-button {
  background: var(--interactive-accent);
  color: var(--text-on-accent);
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
  margin-bottom: 24px;
  margin-left: 0;
}

.add-folder-button:hover,
.add-heading-button:hover {
  background: var(--interactive-accent-hover);
}

/* Chart visibility settings styling */
.chart-visibility-container {
  margin-top: 16px;
  margin-bottom: 24px;
}

.chart-visibility-setting {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  background-color: var(--background-secondary);
  transition: all 0.2s ease;
}

.chart-visibility-setting:hover {
  border-color: var(--interactive-accent);
  background-color: var(--background-secondary-alt);
}

.chart-visibility-setting .setting-item-name {
  font-weight: 600;
  color: var(--text-normal);
  margin-bottom: 4px;
}

.chart-visibility-setting .setting-item-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.chart-visibility-setting .setting-item-control {
  margin-top: 8px;
}

/* Toggle switch styling */
.chart-visibility-setting .checkbox-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.chart-visibility-setting .checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

/* Chart order settings styling */
.chart-order-container {
  margin-top: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.chart-order-container .setting-item {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-order-container .setting-item-info {
  flex: 1;
  margin-right: 16px;
}

.chart-order-container .setting-item-control {
  flex: 0 0 auto;
  width: 80px;
}

.chart-order-container .setting-item-control input {
  width: 100%;
  text-align: center;
  padding: 4px 8px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  background: var(--background-primary);
  color: var(--text-normal);
}

.chart-order-container .setting-item-control input:focus {
  outline: none;
  border-color: var(--interactive-accent);
  box-shadow: 0 0 0 2px var(--interactive-accent-hover);
}

/* Charts container styling */
.charts-container {
  width: 100%;
  margin-top: 20px;
}

.charts-container .chart-container {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background: var(--background-secondary);
  border: 1px solid var(--background-modifier-border);
}

.charts-container .chart-container:last-child {
  margin-bottom: 0;
}

/* Specific chart type styling */
.charts-container .emoji-tags-container {
  border-left: 4px solid rgba(54, 162, 235, 0.8);
}

.charts-container .single-tags-container {
  border-left: 4px solid #FF6384;
}

.charts-container .checkbox-chart-container {
  border-left: 4px solid #9370DB;
}

.charts-container .tag-charts-container {
  border-left: 4px solid #40E0D0;
}

.charts-container .group-chart-container {
  border-left: 4px solid #9370DB;
}

/* Chart headers styling */
.charts-container .chart-container h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-normal);
  font-size: 18px;
  font-weight: 600;
}

/* Section dividers */
hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid var(--background-modifier-border);
}

/* Responsive design */
@media (max-width: 480px) {
  .refresh-button {
    padding: 8px 12px;
    font-size: 12px;
    margin-left: 10px;
  }

  .input-container {
    flex-wrap: wrap;
  }

  .input-container input {
    width: 100%;
  }

  .small-remove-button {
    width: 28px;
    height: 28px;
    font-size: 20px;
    padding-bottom: 0;
    margin-bottom: 0;
    margin-left: 8px;
    align-self: center;
  }
}

.period-type-selector,
.period-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding: 6px 32px 6px 12px;
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-normal);
  background-color: var(--background-primary);
  cursor: pointer;
  margin-right: 12px;
  min-width: 120px;
}

.period-type-selector:hover,
.period-selector:hover {
  border-color: var(--interactive-accent);
}

.period-type-selector:focus,
.period-selector:focus {
  outline: none;
  border-color: var(--interactive-accent);
  box-shadow: 0 0 0 2px var(--background-modifier-border);
}

.donation-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.donation-button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.github-sponsor {
  background-color: #db61a2;
  color: white;
  border: none;
}

.github-sponsor:hover {
  background-color: #bf4b8a;
}

.buymeacoffee {
  background-color: #ffdd00;
  color: #000000;
  border: none;
}

.buymeacoffee:hover {
  background-color: #e5c700;
}

.submit-issue {
  background-color: #2ea44f;
  color: white;
  border: none;
  margin-left: 8px;
}

.submit-issue:hover {
  background-color: #2c974b;
}

.small-button {
  padding: 4px 8px;
  font-size: 12px;
  min-height: unset;
  height: auto;
}