@font-face {
  font-family: LiberationSans;
  src: url('/fonts/LiberationSans.ttf');
}

:root {
  --black: #000000;
  --ever-black: #000000;
  --white: #ffffff;

  --small-container-children: 33%;
  --normal-container-children: 50%;
  --large-container-children: 100%;
}

.dark {
  --black: #ffffff;
  --white: #000000;
}

* {
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: normal;
  box-sizing: border-box;
  font-family:
    LiberationSans,
    Segoe UI,
    -apple-system,
    BlinkMacSystemFont,
    Oxygen,
    Ubuntu,
    Cantarell,
    Fira Sans,
    Droid Sans,
    Helvetica Neue,
    sans-serif;
  transition-duration: 0.5s;
  transition-property: background-color, color, border-color, filter;
}

html,
body {
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background-color: var(--white);
  color: var(--black);
}

a,
a:visited {
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
}

.container {
  display: grid;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  min-width: 100%;
  grid-template-columns: repeat(auto-fit, var(--normal-container-children));
}

.container.small {
  grid-template-columns: repeat(auto-fit, var(--small-container-children));
}

.container.large {
  grid-template-columns: repeat(auto-fit, var(--large-container-children));
}

.Home {
  & p {
    font-size: 1rem;

    & + p {
      font-size: 0.75rem;
      margin-top: 25px;

      & a {
        font-size: 0.8rem;
        font-weight: bold;
        color: #0b66c2;
        cursor: pointer;
        text-decoration: none;
      }

      & b {
        font-size: 0.75rem;
        font-weight: bold;
      }
    }
  }
}

@media only screen and (max-width: 843px) {
  .remove-843 {
    display: none;
  }
}

/* Bussolafarm Dashboard Styles */
.dashboard-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-title {
  margin-bottom: 30px;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: bold;
}

.date-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9fafb;
  border-radius: 8px;
  align-items: center;
}

.date-input-group {
  display: flex;
  flex-direction: column;
}

.date-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.date-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.cycle-selector {
  min-width: 250px;
}

.cycle-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  min-width: 250px;
}

.cycle-select:hover {
  border-color: #9ca3af;
}

.cycle-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-summary {
  margin-left: 20px;
}

.date-summary-days {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.date-summary-totals {
  display: flex;
  gap: 16px;
  align-items: center;
}

.date-summary-total {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.date-summary-earnings {
  font-size: 18px;
  font-weight: 600;
  color: #059669;
  background-color: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.project-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f3f4f6;
  border-radius: 8px;
}

.project-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-color-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.project-legend-text {
  font-size: 14px;
  font-weight: 500;
}

.daily-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  margin-top: 20px;
}

.day-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.day-date-info {
  display: flex;
  flex-direction: column;
}

.day-name-date {
  font-weight: 600;
  color: #1f2937;
}

.day-full-date {
  font-size: 14px;
  color: #6b7280;
}

.day-total-hours {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: 12px;
}

.project-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.project-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
}

.project-descriptions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.project-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  padding-left: 4px;
}

.project-hours {
  font-weight: 500;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Changelog Section */
.changelog-section {
  margin-bottom: 30px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.changelog-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.changelog-header:hover {
  background-color: #f3f4f6;
}

.changelog-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
}

.changelog-summary {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.changelog-arrow {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.changelog-arrow.open {
  transform: rotate(180deg);
}

/* Daily View Section */
.daily-view-section {
  margin-bottom: 30px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.daily-view-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.daily-view-header:hover {
  background-color: #f3f4f6;
}

.daily-view-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
}

.daily-view-summary {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.daily-view-arrow {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.daily-view-arrow.open {
  transform: rotate(180deg);
}

.daily-view-content {
  padding: 0 20px 20px 20px;
  border-top: 1px solid #e5e7eb;
}

/* Financial Section */
.financial-section {
  margin-bottom: 30px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.financial-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.financial-header:hover {
  background-color: #f3f4f6;
}

.financial-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
}

.financial-summary {
  font-size: 16px;
  color: #059669;
  font-weight: 600;
}

.financial-arrow {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.financial-arrow.open {
  transform: rotate(180deg);
}

.financial-content {
  padding: 0 20px 20px 20px;
  border-top: 1px solid #e5e7eb;
}

.financial-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.financial-card {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.financial-card.highlight {
  background-color: #ecfdf5;
  border-color: #059669;
}

.financial-card-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.financial-card-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.financial-card.highlight .financial-card-value {
  color: #059669;
}

.financial-card.income {
  background-color: #f0fdf4;
  border-color: #22c55e;
}

.financial-card.income .financial-card-value {
  color: #22c55e;
}

.financial-card.expense {
  background-color: #fef2f2;
  border-color: #ef4444;
}

.financial-card.expense .financial-card-value {
  color: #ef4444;
}

.financial-card.real-gain {
  background-color: #eff6ff;
  border-color: #3b82f6;
  border-width: 2px;
}

.financial-card.real-gain .financial-card-value {
  color: #3b82f6;
  font-size: 28px;
}

.financial-card-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  font-weight: 400;
}

.accounting-breakdown {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.accounting-breakdown-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.accounting-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accounting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f9fafb;
  border-radius: 4px;
  border: 1px solid #f3f4f6;
}

.accounting-item-description {
  font-size: 14px;
  color: #4b5563;
  flex: 1;
}

.accounting-item-value {
  font-size: 14px;
  font-weight: 600;
  color: #ef4444;
}

.accounting-item-value.income {
  color: #22c55e;
}

.financial-projects {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.financial-projects-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.financial-projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.financial-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
}

.financial-project-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.financial-project-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.financial-project-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}

.financial-project-hours {
  font-size: 12px;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.financial-project-earnings {
  font-size: 14px;
  font-weight: 600;
  color: #059669;
}

.changelog-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px 20px 20px;
  border-top: 1px solid #e5e7eb;
}

.changelog-project {
  background-color: white;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.changelog-project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.changelog-project-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.changelog-project-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.changelog-project-hours {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
}

.changelog-descriptions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-description {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.4;
  padding-left: 8px;
}

.no-data-message {
  text-align: center;
  padding: 40px;
  color: #6b7280;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .date-controls {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .date-summary-totals {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .project-legend {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .daily-grid {
    grid-template-columns: 1fr !important;
  }

  .cycle-selector {
    min-width: 100%;
  }

  .cycle-select {
    min-width: 100%;
  }
}
