/*
 * Daily Log - Application Styles
 */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(to bottom, #0f0c29, #1a1a2e, #16213e);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 밤하늘 별 효과 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 230px 80px, #fff, transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 350px 60px, #fff, transparent),
    radial-gradient(2px 2px at 420px 180px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 480px 90px, #fff, transparent),
    radial-gradient(2px 2px at 550px 200px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 620px 50px, #fff, transparent),
    radial-gradient(2px 2px at 700px 140px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 780px 220px, #fff, transparent),
    radial-gradient(2px 2px at 850px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 920px 170px, #fff, transparent),
    radial-gradient(2px 2px at 100px 250px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 200px 300px, #fff, transparent),
    radial-gradient(2px 2px at 320px 280px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 450px 320px, #fff, transparent),
    radial-gradient(2px 2px at 580px 260px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 680px 350px, #fff, transparent),
    radial-gradient(2px 2px at 800px 290px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 900px 380px, #fff, transparent),
    radial-gradient(2px 2px at 50px 400px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 150px 450px, #fff, transparent),
    radial-gradient(2px 2px at 280px 420px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 400px 480px, #fff, transparent),
    radial-gradient(2px 2px at 530px 440px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 650px 500px, #fff, transparent),
    radial-gradient(2px 2px at 770px 460px, rgba(255,255,255,0.8), transparent);
  background-size: 1000px 600px;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

/* 컨텐츠가 별 위에 오도록 */
body > * {
  position: relative;
  z-index: 1;
}

a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c7d2fe;
}

/* Main Content */
.main-content {
  flex: 1;
}

/* Container */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: #155724;
  color: white;
}

.toast-error {
  background-color: #721c24;
  color: white;
}

/* Header */
header {
  margin-bottom: 0px;
  background: transparent;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-about-link {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-about-link:hover {
  color: #007bff;
}

/* Locale Select */
.locale-select {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  background-color: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.locale-select:hover {
  border-color: rgba(165, 180, 252, 0.5);
  background-color: rgba(255,255,255,0.15);
}

.locale-select:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
}

.locale-select option {
  background-color: #1a1a2e;
  color: #e2e8f0;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

header h1 a {
  color: #fff;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

header h1 a:hover {
  color: #a5b4fc;
}

/* Tag Filters */
.tag-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.tag-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  background-color: rgba(255,255,255,0.05);
  font-size: 0.95rem;
  font-weight: 500;
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter-btn:hover {
  border-color: #a5b4fc;
  background-color: rgba(165, 180, 252, 0.1);
  transform: translateY(-1px);
}

.tag-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Posts List */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

turbo-frame {
  display: contents;
}

.post-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  cursor: pointer;
}

.post-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(165, 180, 252, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.post-item .post-title-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.post-item h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.post-item h2 a {
  color: #f1f5f9;
}

.post-item h2 a:hover {
  color: #a5b4fc;
}

.post-item time {
  color: #94a3b8;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.post-item .post-tags {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.tag-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-badge.tag-daily {
  background-color: #e3f2fd;
  color: #1976d2;
}

.tag-badge.tag-retrospective {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.tag-badge.tag-technical {
  background-color: #e8f5e9;
  color: #388e3c;
}

.tag-badge.tag-notice {
  background-color: #fff3e0;
  color: #e65100;
}

.tag-badge.tag-new {
  background-color: #ff1744;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: 1.1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.pagination .page {
  display: inline-block;
}

.pagination .page a,
.pagination .page span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s;
}

.pagination .page a:hover {
  color: #c7d2fe;
}

.pagination .page.current span {
  color: #a5b4fc;
  font-weight: 700;
}

.pagination .page .disabled {
  color: #4a5568;
  cursor: not-allowed;
}

.pagination .page.prev a,
.pagination .page.next a {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 1rem;
}

.pagination .page.prev a:hover,
.pagination .page.next a:hover {
  background: rgba(165, 180, 252, 0.15);
  border-color: rgba(165, 180, 252, 0.3);
}

.pagination .page.prev .disabled,
.pagination .page.next .disabled {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 1rem;
}

.pagination .gap {
  color: #64748b;
  padding: 0 0.5rem;
}

/* Load More Button */
.load-more {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.btn-load-more {
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #a5b4fc;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  background: rgba(165, 180, 252, 0.15);
  border-color: rgba(165, 180, 252, 0.4);
  color: #c7d2fe;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-secondary {
  background-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.15);
  color: #f1f5f9;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Admin Actions */
.admin-actions {
  display: none;
  margin: 1rem 0;
  gap: 0.5rem;
}

.admin-actions form {
  display: inline-block;
}

/* Form Styles (for new/edit pages) */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: rgba(255,255,255,0.05);
  color: #e2e8f0;
}

.form-control::placeholder {
  color: #64748b;
}

.form-control:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
  background-color: rgba(255,255,255,0.08);
}

textarea.form-control {
  resize: vertical;
  font-family: inherit;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Tag checkboxes styling */
.tag-checkboxes {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background-color: rgba(255,255,255,0.05);
  color: #e2e8f0;
  transition: all 0.2s;
}

.tag-checkbox:hover {
  border-color: rgba(165, 180, 252, 0.5);
  background-color: rgba(255,255,255,0.08);
}

.tag-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.tag-checkbox input[type="checkbox"]:checked+span {
  font-weight: 600;
  color: #a5b4fc;
}

.error-message {
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 4px;
}

.note {
  padding: 1rem;
  background-color: rgba(251, 191, 36, 0.1);
  border-left: 4px solid #fbbf24;
  border-radius: 4px;
  color: #fcd34d;
  margin-bottom: 1.5rem;
}

/* Admin Only Pages */
.admin-only {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.admin-only main {
  max-width: 100%;
}

.admin-only h2 {
  margin-bottom: 1.5rem;
  color: #f1f5f9;
}

/* Post Detail Page */
article.post {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

article.post .post-title-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

article.post .post-title-line h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

article.post .post-title-line time {
  color: #94a3b8;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

article.post .post-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

article.post .admin-actions {
  margin-bottom: 1.5rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.back-link {
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: #a5b4fc;
}

/* Comments */
.comments-section {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.comments-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.75rem;
}

.comments-list {
  margin-bottom: 2rem;
}

.comment-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.comment-time {
  color: #64748b;
  font-size: 0.8rem;
}

.comment-edited {
  color: #94a3b8;
  font-style: italic;
}

.comment-content {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comment-content p {
  margin: 0;
}

.comment-actions {
  margin-top: 0.5rem;
}

.btn-edit-comment,
.btn-delete-comment {
  background: none;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
}

.btn-edit-comment {
  color: #6c757d;
}

.btn-delete-comment {
  color: #dc3545;
}

.btn-edit-comment:hover,
.btn-delete-comment:hover {
  text-decoration: underline;
}

.no-comments {
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
}

.comment-form-section {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.comment-form-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.comment-form .form-grid {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.comment-form .form-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 120px;
  flex-shrink: 0;
}

.comment-form .form-center {
  flex: 1;
}

.comment-form .form-center textarea {
  height: 100%;
  resize: none;
}

.comment-form .form-right {
  display: flex;
  align-items: stretch;
}

.comment-form .form-control {
  font-size: 0.85rem;
  padding: 0.5rem;
}

.comment-form .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

.modal-content h4 {
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: transparent;
  padding: 0.1rem 0;
}

.footer-content {
  display: flex;
  justify-content: flex-end;
}

.footer-info {
  text-align: right;
}

.footer-line {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-line a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-line a:hover {
  color: #a5b4fc;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.social-link svg {
  vertical-align: middle;
}

.footer-divider {
  color: rgba(255,255,255,0.3);
}

.footer-credit {
  color: #64748b;
  font-size: 0.6rem;
}

.ruby-heart {
  color: #cc342d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .tag-filters {
    gap: 0.5rem;
  }

  .tag-filter-btn {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }

  .post-item {
    padding: 1rem;
  }

  .post-item .post-title-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-item h2 {
    font-size: 1.1rem;
  }

  .post-item time {
    font-size: 0.85rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  article.post {
    padding: 1.5rem;
  }

  article.post .post-title-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  article.post .post-title-line h2 {
    font-size: 1.25rem;
  }

  article.post .post-title-line time {
    font-size: 0.85rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .footer-content {
    justify-content: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Chat / About Page */
.chat-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

.chat-container h2 {
  margin-bottom: 1.5rem;
  color: #212529;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.message {
  margin-bottom: 1rem;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.bot-message {
  justify-content: flex-start;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.suggestion-btn {
  background: #fff;
  border: 1px solid #3182ce;
  color: #3182ce;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  background: #3182ce;
  color: #fff;
}

.message-content {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
}

.user-message .message-content {
  background: #007bff;
  color: white;
  border-bottom-right-radius: 4px;
}

.bot-message .message-content {
  background: white;
  color: #333;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 4px;
}

.message-photo {
  margin-top: 0.75rem;
}

.message-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e9ecef;
}

.loading .message-content {
  color: #6c757d;
}

.loading-dots {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.chat-input-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 24px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #007bff;
}

.chat-send-btn {
  padding: 0.75rem 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .chat-container {
    padding: 1rem;
  }

  .chat-messages {
    height: 300px;
  }

  .message-content {
    max-width: 90%;
  }

  .header-left {
    flex-direction: column;
    gap: 0.5rem;
  }
}
