html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Twitter-like styling */
.post-card {
  transition: all 0.2s ease-in-out;
  border: 1px solid #e1e8ed;
}

.post-card:hover {
  background-color: #f5f8fa;
  border-color: #ccd6dd;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
}

.avatar-circle-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

.avatar-circle-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
}

.profile-image-preview {
  border: 3px solid #dee2e6;
}

.timeline {
  margin-top: 20px;
}

textarea.form-control {
  resize: none;
  border: 2px solid #e1e8ed;
  transition: border-color 0.2s ease-in-out;
}

textarea.form-control:focus {
  border-color: #1da1f2;
  box-shadow: 0 0 0 0.2rem rgba(29, 161, 242, 0.25);
}

.btn-primary {
  background-color: #1da1f2;
  border-color: #1da1f2;
  font-weight: bold;
  border-radius: 20px;
  padding: 8px 16px;
}

.btn-primary:hover {
  background-color: #1a91da;
  border-color: #1a91da;
}

.card {
  border-radius: 12px;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/* Emoji Reactions */
.emoji-reactions {
  margin-top: 12px;
}

.emoji-reaction-btn {
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease-in-out;
}

.emoji-reaction-btn .emoji {
  font-size: 16px;
}

.emoji-reaction-btn .count {
  font-weight: 600;
  font-size: 12px;
}

.emoji-reaction-btn:hover {
  transform: scale(1.05);
}

.emoji-picker-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.emoji-picker-btn:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.emoji-picker {
  min-width: 200px;
}

.emoji-picker.show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.emoji-option {
  font-size: 24px;
  padding: 8px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.emoji-option:hover {
  background-color: #f0f0f0;
  transform: scale(1.2);
}
