.container {
  max-width: 800px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.headerContent {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.description {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0 0 0.6rem 0;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: center;
}

.donateText, .creditLine {
  font-size: 0.85rem;
  color: var(--timestamp-color);
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  word-wrap: break-word;
  text-align: center;
}

.kofiLink {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.kofiLink:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tagline {
    font-size: 1.3rem;
    line-height: 1.4rem;
  }
  
  .description {
    font-size: 0.95rem;
  }
  
  .donateText, .creditLine {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .tagline {
    font-size: 1.2rem;
    line-height: 1.3rem;
  }
  
  .description {
    font-size: 0.9rem;
  }
  
  .donateText, .creditLine {
    font-size: 0.75rem;
  }
}

/* Rest of your existing CSS */

.userInfo {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.userInfo:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.logoutButton {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.logoutButton:hover {
  background-color: var(--button-hover);
}

.loginButton {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.loginButton:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Status form styles */
.statusUpdateContainer {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease;
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  margin-bottom: 0;
}

.statusUpdateOpen {
  max-height: 1200px; /* Large enough to contain all content */
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 2rem;
}

.toggleButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s, transform 0.2s;
}

.toggleButton:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.toggleButton svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.toggleButtonActive svg {
  transform: rotate(180deg);
}

.card {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 2rem;
}

@media (max-width: 600px) {
  .card {
    padding: 1.5rem 1rem;
  }
}

.form {
  margin-top: 1rem;
}

.formGroup {
  margin-bottom: 1.5rem;
}

.formGroup label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.emojiNote {
  display: none; /* Hide since we don't need to scroll anymore */
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--timestamp-color);
  font-style: italic;
}

.input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--input-background);
  color: var(--text-color);
}

.input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(91, 173, 240, 0.2);
}

.inputWrapper {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background-color: var(--input-background);
}

.inputWrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(91, 173, 240, 0.2);
}

.inputPrefix {
  padding: 0.8rem 0.8rem 0.8rem 0.8rem;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  background-color: var(--input-prefix-background);
  border-right: 1px solid var(--input-border);
  border-radius: 4px 0 0 4px;
}

.inputWithPrefix {
  flex: 1;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  background: transparent;
  border-radius: 0 4px 4px 0;
  color: var(--text-color);
}

.inputWithPrefix:focus {
  outline: none;
  box-shadow: none;
}

.charCount {
  text-align: right;
  color: var(--timestamp-color);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.emojiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr));
  gap: 0.5rem;
  padding: 0.8rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--emoji-grid-bg);
  max-height: none; /* Remove height restriction */
  overflow-y: visible; /* No need for scrolling */
}

@media (max-width: 600px) {
  .emojiGrid {
    grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr));
    gap: 0.4rem;
    padding: 0.6rem;
  }
}

@media (max-width: 400px) {
  .emojiGrid {
    grid-template-columns: repeat(auto-fill, minmax(1.8rem, 1fr));
    gap: 0.3rem;
    padding: 0.5rem;
  }
}

.emojiButton {
  background: var(--emoji-button-bg);
  border: 1px solid var(--emoji-button-border);
  border-radius: 4px;
  font-size: 1.3rem;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.5rem;
  min-width: 2rem;
  min-height: 2rem;
}

@media (max-width: 600px) {
  .emojiButton {
    font-size: 1.2rem;
    padding: 0.4rem;
    min-width: 1.8rem;
    min-height: 1.8rem;
  }
}

.emojiButton:hover {
  background: var(--button-hover);
  transform: scale(1.05);
}

.selectedEmoji {
  background: rgba(91, 173, 240, 0.2);
  border-color: var(--primary-color);
}

.preview {
  background: var(--background-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--tile-border);
}

.previewTitle {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.previewContent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.previewEmoji {
  font-size: 1.5rem;
}

.submitButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.submitButton:hover:not(:disabled) {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.submitButton:disabled {
  background-color: var(--button-disabled);
  color: var(--button-disabled-text);
  cursor: not-allowed;
}

.success {
  background-color: var(--success-background);
  color: var(--success-text);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Feed styles */
.feedSection {
  margin-top: 1rem;
}

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

.newFeedItem {
  animation: slideIn 0.5s ease-out;
}

.feedHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tile-border);
}

.feedHeaderLeft {
  display: flex;
  flex-direction: column;
}

.feedHeader h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 0.25rem;
}

.feedSubheader {
  font-size: 0.9rem;
  color: var(--timestamp-color);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.statsLink {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.statsLink:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.refreshButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  padding-top: 10px;
}

.refreshButton:hover {
  background-color: var(--secondary-color);
}

.refreshButton:disabled {
  background-color: var(--button-disabled);
  color: var(--button-disabled-text);
  cursor: not-allowed;
}

.feedList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.feedItem {
  background-color: var(--card-background);
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feedItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

@media (max-width: 600px) {
  .feedItem {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--shadow-color);
  }
  
  .feedList {
    gap: 0.5rem;
  }
  
  .feedItem:hover {
    transform: none;
    box-shadow: 0 1px 3px var(--shadow-color);
  }
}

.content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.contentLeft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.userLine {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.authorLink {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.authorLink:hover {
  text-decoration: underline;
}

.text {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-color);
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.timestamp {
  font-size: 0.85rem;
  color: var(--timestamp-color);
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .content {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .contentLeft {
    display: block;
    width: 100%;
  }
  
  /* First line: emoji and username */
  .emoji {
    display: inline-block;
    font-size: 1.3rem;
    vertical-align: middle;
    margin-right: 0.5rem;
  }
  
  .authorLink {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px; /* Increased width on mobile */
  }
  
  /* Second line: status text */
  .text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-top: 0.3rem;
    padding-bottom: 0.2rem;
  }
  
  /* Third line: timestamp */
  .timestamp {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    color: #888;
  }
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emptyState {
  text-align: center;
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 8px;
  border: 1px dashed var(--tile-border);
}

.loadMoreButton {
  width: 100%;
  background-color: var(--button-background);
  color: var(--button-text);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.1rem;
}

.loadMoreButton:hover {
  background-color: var(--button-hover);
}

.loadMoreButton:disabled {
  background-color: var(--button-disabled);
  color: var(--button-disabled-text);
  cursor: not-allowed;
}

.loadMoreButton svg {
  width: 16px;
  height: 16px;
}

.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.notice {
  background-color: #fff3e0;
  color: #e65100;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #ff9800;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.noticePersonal {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 152, 0, 0.3);
}

.noticeLink {
  color: #e65100;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}

.noticeLink:hover {
  color: #f57c00;
}