/* Container layout for dashboard */
.ai-dashboard-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap; /* Allows stacking on smaller screens */
}

/* Main content area */
.ai-dashboard-main {
  flex: 1;
  min-width: 0;
}

/* Sidebar styling with max width */
/* Sidebar styling with max width */
.ai-dashboard-sidebar {
  flex: 0 0 280px;
  max-width: 380px;
  min-width: 250px;
  background: #f9f9f9;
  padding: 0.5rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: none !important; /* ✅ Removes thick gray border */
  box-sizing: border-box;
}


/* On smaller screens, stack the sidebar below */
@media (max-width: 768px) {
  .ai-dashboard-container {
    flex-direction: column;
  }

  .ai-dashboard-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

/* Sidebar boxes */
.ai-sidebar-box {
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 10px;
  background-color: #fff;
  padding: 1rem;
}

/* Latest report box */
.ai-latest-report {
  background: #fff;
  border: 1.5px solid #ddd; /* subtle gray border */
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ai-latest-report h3 {
  font-size: 1.4rem;
  color: #2c7be5;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Latest report text */
.ai-report-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Older reports list */
.ai-report-list {
  list-style: disc inside;
  padding-left: 1rem;
  margin: 0;
}

.ai-report-list li {
  margin-bottom: 1rem;
}

.ai-report-list li a {
  color: #2c7be5;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
}

.ai-report-list li a:hover,
.ai-report-list li a:focus {
  text-decoration: underline;
  color: #1a5ed8;
}

/* View more link */
.view-more-reports {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  color: #2c7be5;
  text-decoration: none;
}

.view-more-reports:hover {
  text-decoration: underline;
  color: #1a5ed8;
}
.ai-all-reports-container {
    padding: 1rem;
}

.ai-report-list {
    list-style: none;
    padding: 0;
}

.ai-report-card {
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.ai-report-card strong {
    font-size: 1.1rem;
}

.ai-tag {
    color: #666;
    font-size: 0.9rem;
    float: right;
}

.ai-pagination a, .ai-pagination strong {
    margin-right: 0.5rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
}

.ai-pagination a {
    background-color: #f5f5f5;
    color: #333;
}

.ai-pagination strong {
    background-color: #0073aa;
    color: white;
}

.ai-full-report {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    background-color: #f9f9f9;
    margin-top: 20px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-link-box {
  display: inline-block;
  background-color: #81b9ff;
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.ai-link-box:hover {
  background-color: #5ea9ff;
  color: #000;
}
.ai-quick-form-box {
  background: #f9fafb;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.ai-quick-form-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #111827;
}

.ai-quick-form-box p {
  color: #4b5563;
  font-size: 1rem;
  margin-bottom: 15px;
}
.ai-multiform-box {
  background: #f9fafb;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ai-multiform-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #111827;
}

.ai-multiform-box p {
  margin-bottom: 10px;
  color: #4b5563;
}

.ai-multiform-box select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.ai-form-block {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-tool-selector-block {
  background: #f9f9f9;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 2em;
}

.ai-tool-selector-block select {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.ai-selector-intro {
  margin-bottom: 0.5em;
  font-weight: 500;
}

.ai-form-selector-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: none;
}

.ai-report-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #05a6ff;
  color: #000 !important; /* ← this forces black text */
  text-decoration: none !important;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid #ccc;
  transition: background-color 0.2s ease;
}

.ai-report-button:hover {
  background-color: #e0e0e0;
  color: #000 !important; /* Ensure hover doesn’t change it */
}

.ai-filter-form,
.ai-search-form {
    display: inline-block;
    margin-right: 1em;
}

.ai-pagination a {
    margin: 0 5px;
    text-decoration: none;
}
.ai-pagination a.current {
    font-weight: bold;
    text-decoration: underline;
}

.ai-share-button {
  background-color: #0073e6;
  color: white !important;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  display: inline-block;
  margin: 8px 10px 0 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ai-share-button.facebook { background-color: #1877F2; }
.ai-share-button.linkedin { background-color: #0A66C2; }
.ai-share-button.x { background-color: #000000; }
.ai-share-button.whatsapp { background-color: #25D366; }


.ai-share-button:hover {
  background-color: #005bb5;
}

.ai-comments-section {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  max-width: 700px;
}

.ai-comments-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-comment {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-comment .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.ai-comment .text {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.ai-comment-form {
  margin-top: 2rem;
}

.ai-comment-form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 100px;
}

.ai-comment-form button {
  background-color: #2c7be5;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.ai-comment-form button:hover {
  background-color: #1a5ec4;
}

.ai-form .form-group {
    margin-bottom: 20px;
}
.ai-form em {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    margin-bottom: 5px;
}
.ai-form textarea,
.ai-form input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.ai-form button {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.ai-form button:hover {
    background: #005e8c;
}
