.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header h1 {
  color: var(--primary-color);
  margin: 0;
  font-weight: bold;
}

.userInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.feedButton {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

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

.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;
}

.logoutButton:hover {
  background-color: rgba(91, 173, 240, 0.1);
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
}

.description {
  color: #666;
  margin: 1rem 0;
  line-height: 1.5;
}

.code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

.error {
  background-color: rgba(255, 82, 82, 0.1);
  color: var(--error-color);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.form {
  margin-top: 1.5rem;
}

.formGroup {
  margin-bottom: 1.5rem;
}

.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: 1000px; /* 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);
}

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

.input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.charCount {
  text-align: right;
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.emojiGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .emojiGrid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.emojiButton {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.5rem;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.emojiButton:hover {
  background: #eaeaea;
  transform: scale(1.05);
}

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

.preview {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.previewTitle {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #666;
}

.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);
}

.submitButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

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

.feedTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e1e1;
}

.backButton {
  display: block;
  margin-top: 0.5rem;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid #ddd;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

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

.feedItem {
  background-color: white;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s;
}

.feedItem:hover {
  transform: translateY(-2px);
}

.feedHeader {
  display: none; /* Hide the header since we're moving timestamps to the right */
}

.authorLink {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

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

.timestamp {
  font-size: 0.85rem;
  color: #888;
}

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

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

.emoji {
  font-size: 1.5rem;
}

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

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

.text {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: 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-right: 0.75rem;
  display: inline-block;
}

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