body {
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.price-value {
    transition: all 0.3s ease;
    font-weight: bold;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.form-control {
    color: black;
}
 /* ========== Modern Typography & Spacing ========== */
  body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
  .container-fluid { padding: 1rem 0; }
  .card { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); border: none; }
  .card-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .card-body { padding: 1.5rem; }
  h5 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
  .text-muted { color: #9ca3af !important; opacity: 0.8; }

  /* ========== Large Price Display & Animations ========== */
  .price-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }

  @media (max-width: 768px) {
    .price-value { font-size: 1.75rem; }
    .card-body .d-flex { flex-direction: column; gap: 0.75rem; }
    .card-body .d-flex > div { text-align: right; }
    .price-icon { margin-left: 0; margin-top: 0.25rem; display: inline-block; }
  }

  /* ========== Price Change Animations ========== */
  .price-up { color: #059669 !important; animation: slideUp 0.6s ease-out; }
  .price-down { color: #dc2626 !important; animation: slideDown 0.6s ease-out; }

  @keyframes slideUp {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
  }
  @keyframes slideDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(4px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
  }

  .price-icon {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
  }
  .price-icon:hover { transform: scale(1.1); }

  /* ========== Mobile Optimizations ========== */
  @media (max-width: 576px) {
    .form-control { font-size: 0.95rem; padding: 0.75rem; }
    .btn { padding: 0.75rem 1rem; font-size: 0.95rem; }
    .card { margin-bottom: 1rem; }
    .pagination .page-link { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
  }

  /* ========== Text & Images ========== */
  .card-text { white-space: pre-line; word-break: break-word; }
  .img-fluid { border-radius: 0.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
  .post-image {
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .post-image:hover {
    transform: scale(1.02);
  }
  .divider {
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
    position: relative;
  }
  .divider::after {
    content: "✨";
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #f59e0b;
    font-size: 1rem;
    font-weight: bold;
  }

  /* ========== Pending Status Badge ========== */
  .pending-badge {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  /* ========== Info Icons ========== */
  .info-icon {
    font-size: 0.875rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
  }
  .info-icon:hover { color: #6b7280; transform: scale(1.05); }

/* ตารางเหรียญ */
.top-coins-table th,
.top-coins-table td {
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.6rem 0.4rem;
}

.top-coins-table img.coin-icon {
  width: 34px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.trend-up {
  color: #4ade80 !important;
}
.trend-down {
  color: #f87171 !important;
}

.confidence-high {
  color: #4ade80;
}
.confidence-medium {
  color: #fbbf24;
}
.confidence-low {
  color: #f87171;
}

.market-cap {
  font-size: 0.85rem;
  opacity: 0.85;
}

  /* ========== Confidence Bar ========== */
  .confidence-bar {
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
  }
  .confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 0.5s ease;
    border-radius: 0.25rem;
  }

  /* ========== Fibonacci Levels ========== */
  .fib-level {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    font-weight: 500;
  }

  /* ========== Card Hover Effects ========== */
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  }

  /* ========== Button Effects ========== */
  .btn-outline-pink:hover { background: #ec4899; color: white; }
  .btn-outline-danger:hover { background: #dc2626; color: white; }
  .btn-outline-success:hover { background: #059669; color: white; }
  .btn { transition: all 0.2s ease; border-radius: 0.5rem; }

  /* ========== Highlight Headers ========== */
  h5 { letter-spacing: 0.025em; }

  /* ========== Comment Box Styles ========== */
  .comment-textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ec4899 !important;
    padding: 1rem !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    border-radius: 0.75rem !important;
    min-height: 150px !important;
    resize: vertical;
  }
  .comment-textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
  }
  .comment-textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(236, 72, 153, 0.25) !important;
    border-color: #ec4899 !important;
    outline: none !important;
  }
