/* Base */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f0f2f5;
  min-height: 100vh;
}

.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Layout */
.container {
  display: flex;
  gap: 24px;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.container main {
  flex: 1;
  min-width: 0;
}

/* Profile Card */
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-card-header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-avatar-link {
  text-decoration: none;
}

.profile-name-link {
  color: #333;
  text-decoration: none;
}

.profile-name-link:hover {
  color: #007bff;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.profile-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.profile-card .github-link {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #888;
}

.profile-stats {
  display: flex;
  gap: 20px;
  padding: 16px 0;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.profile-stat-label {
  font-size: 12px;
  color: #888;
}

.profile-stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  transition: opacity 0.2s;
}

.profile-stat-link:hover {
  opacity: 0.7;
}

.profile-quick-links {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.profile-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.profile-quick-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.profile-quick-link:hover {
  background: #f0f2f5;
  color: #007bff;
}

.profile-card .skills {
  margin-bottom: 16px;
}

.skill-tag {
  display: inline-block;
  background: #e8f4fd;
  color: #007bff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  margin: 3px 4px 3px 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    align-self: auto;
  }

  .profile-columns {
    grid-template-columns: 1fr;
  }
}

h1 {
  color: #333;
}

/* Flash messages */
.notice {
  background: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Posts */
.post, .post-detail {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.post-author:hover strong {
  color: #007bff;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.post-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-meta strong {
  color: #333;
}

.post-meta time {
  font-size: 13px;
  color: #666;
  cursor: default;
}

.post-meta time:hover {
  color: #333;
}

.post-body-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.post-body-link:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 4px;
}

.post-body-link:hover .post-body {
  background: #f9f9f9;
  margin: -8px;
  padding: 8px;
  border-radius: 4px;
}

.post-body {
  margin-bottom: 15px;
}

.post-body a,
.comment-body a,
.message-body a {
  color: #4e8cff;
  text-decoration: underline;
  overflow-wrap: break-word;
}

.post-body a:hover,
.comment-body a:hover,
.message-body a:hover {
  color: #2563eb;
}

.mention {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}

.mention:hover {
  text-decoration: underline;
  color: #5b21b6;
}

/* Mention Autocomplete */
.mention-autocomplete-wrapper {
  position: relative;
}

.mention-dropdown {
  position: absolute;
  z-index: 100;
  left: 0;
  top: 100%;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  min-width: 180px;
}

.mention-dropdown.hidden {
  display: none;
}

.mention-candidate {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  white-space: nowrap;
}

.mention-candidate:hover,
.mention-candidate.is-active {
  background: #f3f0ff;
  color: #7c3aed;
}

.mention-candidate-at {
  color: #7c3aed;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

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

.btn-secondary {
  background: #6c757d;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-delete {
  background: #dc3545;
  color: #fff;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* Forms */
.post-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.error-messages {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.error-messages ul {
  margin: 0;
  padding-left: 20px;
}

.new-post-link {
  margin-bottom: 20px;
}

/* Navigation */
.main-nav {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
}

.nav-brand:hover {
  color: #0056b3;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-link svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #888;
  transition: color 0.2s ease;
}

.nav-link:hover {
  background: #f0f2f5;
  color: #007bff;
}

.nav-link:hover svg {
  color: #007bff;
}

.nav-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.unread-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background-color: #e53e3e;
  border-radius: 50%;
  display: block;
}

.btn-logout {
  background: transparent;
  color: #666;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #fee;
  border-color: #dc3545;
  color: #dc3545;
}

.btn-signup {
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

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

/* Pagination */
.pagination {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  border-bottom: none;
}

.pagy.series-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.pagy.series-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  margin: 0;
}

.pagy.series-nav a:hover {
  background: #f0f0f0;
  text-decoration: none;
}

.pagy.series-nav a[aria-current="page"] {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  font-weight: bold;
}

.pagy.series-nav a[aria-disabled="true"] {
  color: #999;
  background: #f5f5f5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Comments */
.comments-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.comments-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.comment {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.comment-author:hover strong {
  color: #007bff;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  font-size: 14px;
}

.comment-body p {
  margin: 0;
}


.comment-form {
  margin-top: 15px;
}

.comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.comment-form .form-actions {
  margin-top: 8px;
}

/* Inline Post Form */
.new-post-form-container {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #007bff;
}

.inline-post-form .form-group {
  margin-bottom: 12px;
}

.inline-post-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}

.inline-post-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.inline-post-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.btn-cancel:hover {
  background: #f5f5f5;
}

/* New Post Button */
.new-post-link {
  margin-bottom: 20px;
}

.new-post-link .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  text-align: center;
}

/* Profile */
.profile-section-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.profile-columns .section-card {
  margin-bottom: 0;
}

.profile-columns .repositories-grid {
  grid-template-columns: 1fr;
}

/* Profile Inline Edit */
.profile-inline-form {
  margin-bottom: 16px;
}

.profile-inline-fields {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.profile-inline-fields .form-group {
  flex: 1;
  margin-bottom: 0;
}

.profile-inline-fields .form-group label {
  font-size: 13px;
  color: #666;
}

.profile-inline-fields .form-group input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.profile-inline-fields .form-group input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.profile-inline-fields .form-group-submit {
  flex: 0;
}

.profile-inline-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.github-connected {
  color: #28a745;
}

.follow-list-header {
  margin-bottom: 20px;
}

.follow-list-header h2 {
  margin: 12px 0 0 0;
  font-size: 20px;
  font-weight: 600;
  color: #555;
}

.back-link {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-header h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
}

.github-link {
  margin: 12px 0;
  color: #666;
}

.github-link a {
  color: #007bff;
  text-decoration: none;
}

.github-link a:hover {
  text-decoration: underline;
}

.edit-icon {
  font-size: 16px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.edit-icon:hover {
  opacity: 1;
}

.hidden {
  display: none !important;
}

.profile-username {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.5;
  padding: 2px 4px;
  transition: opacity 0.2s;
  line-height: 1;
}

.edit-icon-btn:hover {
  opacity: 1;
}

.profile-username-form {
  margin-bottom: 12px;
}

.profile-username-display {
  margin-bottom: 4px;
}

.sidebar-username-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-username-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.sidebar-username-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.sidebar-username-actions {
  display: flex;
  gap: 6px;
}

.github-profile-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.github-profile-link:hover {
  color: #007bff;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: auto;
}

.btn-text-danger:hover {
  color: #dc3545;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f2f5;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  flex: 1;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

.profile-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 500px;
}

.profile-form .form-group input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
}

.profile-form .form-group input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
}

.form-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
}

/* Grass (Like) */
.grass-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grass-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.grass {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #ebedf0;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.grass:hover {
  background: #cce5ff;
}

.grass.liked {
  background: #007bff;
}

.grass.liked:hover {
  background: #0056b3;
}

.grass-count {
  font-size: 13px;
  color: #666;
  min-width: 16px;
}

/* Post Interaction Bar */
.post-interaction-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comment-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

.comment-toggle-btn:hover {
  color: #007bff;
}

.comment-toggle-btn svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #888;
  transition: color 0.2s ease;
}

.comment-toggle-btn:hover svg {
  color: #007bff;
}

/* Inline Comments (Timeline) */
.inline-comments {
  border-top: 1px solid #f0f2f5;
  margin-top: 12px;
  padding-top: 12px;
}

.inline-comments-login {
  font-size: 14px;
  color: #666;
  margin: 8px 0 0;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  color: #666;
  border-radius: 4px;
}

.dropdown-toggle:hover {
  background: #f0f0f0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}

.dropdown:focus-within .dropdown-menu {
  display: block;
}

.comment .dropdown-toggle {
  font-size: 15px;
  padding: 2px 6px;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-item-danger {
  color: #dc3545;
}

.dropdown-item-danger:hover {
  background: #fee;
}

/* Follow */
.profile-actions {
  display: flex;
  gap: 8px;
}

.follow-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #666;
}

.follow-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.follow-stats strong {
  color: #333;
  font-size: 20px;
}

.follow-stat-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.follow-stat-link:hover {
  color: #007bff;
}

.follow-stat-link:hover strong {
  color: #007bff;
}

.btn-follow {
  background: #007bff;
  color: #fff;
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

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

.btn-following {
  background: #fff;
  color: #333;
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-following:hover {
  background: #f8d7da;
  border-color: #dc3545;
  color: #dc3545;
}

/* Auth Pages */
.auth-container {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: -20px;
  background: #f5f5f5;
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e0e0e0;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  color: #007bff;
  margin: 0 0 8px 0;
}

.auth-subtitle {
  color: #666;
  margin: 0;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.auth-hint {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-field input::placeholder {
  color: #aaa;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #007bff;
}

.auth-actions {
  margin-top: 4px;
}

.btn-auth-primary {
  width: 100%;
  padding: 14px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-auth-primary:hover {
  background: #0056b3;
}

.auth-divider {
  margin: 16px 0;
  text-align: center;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ddd;
}

.auth-divider span {
  background: #fff;
  padding: 0 16px;
  color: #888;
  font-size: 14px;
  position: relative;
}

.auth-oauth {
  text-align: center;
}

.btn-auth-github {
  width: 100%;
  padding: 14px;
  background: #24292e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-auth-github:hover {
  background: #444d56;
}

.auth-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.auth-links p {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.auth-links a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Auth Error Messages */
.auth-form .error-messages {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.auth-form .error-messages h2 {
  display: none;
}

.auth-form .error-messages ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #c00;
}

/* Repositories */
.repositories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.repository-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s;
}

.repository-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.repository-header {
  margin-bottom: 8px;
}

.repository-name {
  font-size: 16px;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.repository-name:hover {
  text-decoration: underline;
}

.repository-description {
  font-size: 14px;
  color: #666;
  margin: 8px 0 12px;
  line-height: 1.4;
}

.repository-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #888;
}

.repository-language {
  display: flex;
  align-items: center;
  gap: 4px;
}

.repository-language::before {
  content: "•";
  font-size: 18px;
  color: #007bff;
}

.repository-stars {
  color: #f59e0b;
}

.repository-updated {
  color: #888;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state-icon {
  font-size: 48px;
  margin: 0 0 16px 0;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.empty-state-hint {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.empty-state-hint a {
  color: #007bff;
  text-decoration: none;
}

.empty-state-hint a:hover {
  text-decoration: underline;
}

/* News Card */
.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 8px;
}

.news-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.news-more-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.news-more-link:hover {
  text-decoration: underline;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f2f5;
}

.news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-link {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.news-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
}

.news-source {
  font-weight: 500;
}

.news-time {
  color: #999;
}

.news-empty {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin: 20px 0;
}

/* News Articles List Page */
.news-page-title {
  font-size: 24px;
  font-weight: 700;
}

.news-articles-list {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-article-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
}

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

.news-article-link {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 6px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.news-article-link:hover {
  color: #007bff;
}

.news-article-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
}

/* Search Form */
.search-form {
  margin-bottom: 20px;
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-results-info {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

/* Users Grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* User Card */
.user-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.user-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.user-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-card-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-github {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Technology Tags */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.tag-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}

.tag-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tag-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tag-card-name {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #007bff;
}

.tag-card-count {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.tag-header {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.tag-header-top h1 {
  margin: 0;
}

.tag-header h1 {
  margin: 0 0 12px 0;
}

/* User Technology Tags */
.user-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.user-tag-link {
  text-decoration: none;
}

.user-tag-delete {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: -4px;
}

.user-tag-delete:hover {
  color: #a71d2a;
}

.user-tag-form {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
}

.inline-tag-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.inline-tag-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.tag-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* News Filter Tabs */
.news-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f2f5;
}

.filter-tab {
  padding: 12px 24px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tab:hover {
  color: #007bff;
}

.filter-tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

/* ===== Chat / DM ===== */
.chat-layout {
  display: flex;
  height: calc(100vh - 60px - 40px);
  overflow: hidden;
  gap: 0;
}

.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.conversation-item:hover {
  background: #f9fafb;
}

.conversation-item.active {
  background: #eff6ff;
}

.conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.conversation-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-preview {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-conversations {
  padding: 24px 16px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.chat-header-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header-name {
  font-weight: 600;
  font-size: 15px;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 15px;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
}

.message-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-theirs {
  align-self: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6b7280;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.message-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-bubble {
  max-width: 100%;
}

.message-mine .message-bubble {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.message-body {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-body p {
  margin: 0;
}

.message-body p + p {
  margin-top: 0.5em;
}

.message-mine .message-body {
  background: #3b82f6;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-theirs .message-body {
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  padding: 0 4px;
}

.message-form-container {
  padding: 8px 16px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.message-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 8px 12px;
}

.message-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14px;
  line-height: 1.4;
  max-height: 120px;
  outline: none;
  font-family: inherit;
}

.message-send-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.message-send-btn:hover {
  background: #2563eb;
}

/* New Chat Button */
.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-new-chat:hover {
  background: #dbeafe;
}

/* New Conversation Panel */
.chat-new-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.chat-new-conversation-inner {
  max-width: 480px;
  width: 100%;
}

.chat-new-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.chat-search-wrapper {
  margin-bottom: 16px;
}

.chat-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.chat-user-item {
  border-bottom: 1px solid #f3f4f6;
}

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

.chat-user-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.chat-user-btn:hover {
  background: #f9fafb;
}

.chat-no-results {
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

.chat-search-hint {
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

.btn-dm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-dm:hover {
  background: #2563eb;
}

/* Notifications Page */
.notifications-container {
  max-width: 680px;
}

.notifications-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.notification-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 12px 14px;
}

.notification-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notification-actor {
  flex-shrink: 0;
}

.notification-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-text {
  margin: 0 0 4px;
  font-size: 14px;
  color: #333;
}

.notification-preview {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.notification-preview a {
  color: #007bff;
  text-decoration: none;
}

.notification-preview a:hover {
  text-decoration: underline;
}

.notification-time {
  font-size: 12px;
  color: #999;
}

.notifications-empty {
  color: #888;
  font-size: 15px;
  text-align: center;
  padding: 40px 0;
}

/* Site Footer */
.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer-links {
  margin-bottom: 8px;
}

.site-footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 13px;
}

.site-footer-links a:hover {
  color: #007bff;
}

.site-footer-separator {
  color: #ddd;
  margin: 0 8px;
}

.site-footer-copy {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* Auth Footer Links */
.auth-footer-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
}

.auth-footer-links a {
  color: #888;
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: #007bff;
}

.auth-footer-separator {
  color: #ddd;
  margin: 0 6px;
}

/* Static Pages (Terms, Privacy) */
.static-page {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 760px;
}

.static-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #333;
}

.static-page-updated {
  font-size: 13px;
  color: #888;
  margin: 0 0 24px 0;
}

.static-page h2 {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 24px 0 8px 0;
}

.static-page section:first-of-type h2 {
  margin-top: 0;
}

.static-page p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 8px 0;
}

.static-page ul {
  margin: 0 0 8px 0;
  padding-left: 20px;
}

.static-page li {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form .form-group input[type="text"]:focus,
.contact-form .form-group input[type="email"]:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.contact-form .form-actions {
  margin-top: 20px;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.error-message {
  font-size: 15px;
  color: #666;
  margin: 0 0 32px;
}

/* Admin */
.admin-nav {
  background: #1a1a2e;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.admin-nav .nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  margin-right: 24px;
}

.admin-nav .nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-right: 16px;
}

.admin-nav .nav-link:hover {
  color: #fff;
}

.admin-nav .btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.admin-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.admin-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #333;
}

.admin-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #333;
}

.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex: 1;
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #007bff;
}

.admin-stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.admin-stat-card-link {
  text-decoration: none;
  transition: box-shadow 0.15s;
}

.admin-stat-card-link:hover {
  box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.admin-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-collapse: collapse;
  overflow: hidden;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f8f9fa;
}

.admin-detail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.admin-detail-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.admin-detail-row:last-child {
  border-bottom: none;
}

.admin-detail-label {
  width: 140px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  background: #f8f9fa;
  flex-shrink: 0;
}

.admin-detail-value {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  flex: 1;
}

.admin-detail-body {
  white-space: pre-wrap;
  line-height: 1.7;
}

.admin-actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-small {
  padding: 4px 10px;
  font-size: 13px;
}
