
/* TaxEx Support Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f5f7fa;
  color: #2a3a4e;
  line-height: 1.6;
}

a { color: #3bbfad; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: #1e3a5f;
  border-bottom: 1px solid rgba(59,191,173,0.15);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header .logo img { height: 36px; }
.header nav { display: flex; align-items: center; gap: 1.5rem; }
.header nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.header nav a:hover { color: white; text-decoration: none; }
.header .btn-signin {
  background: #3bbfad;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 40%, #275a7a 70%, #3bbfad 100%);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero .logo { margin-bottom: 1.5rem; }
.hero .logo img { height: 52px; }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero .search-wrap { position: relative; max-width: 540px; margin: 0 auto; }
.hero .search-wrap input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  outline: none;
}
.hero .search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.hero .search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.6);
}

/* Categories */
.categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.categories h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 2.5rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.category-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(30,58,95,0.06);
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,58,95,0.1);
  text-decoration: none;
}
.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 0.4rem;
}
.category-card p {
  font-size: 0.88rem;
  color: #5a6b7d;
  line-height: 1.55;
}
.category-card .link {
  display: inline-flex;
  align-items: center;
  color: #3bbfad;
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

/* Article */
.article-container { max-width: 800px; margin: 0 auto; padding: 1rem 2rem 4rem; }
.article-container h1 { font-size: 2rem; font-weight: 800; color: #1e3a5f; margin-bottom: 1rem; }
.article-meta { color: #5a6b7d; font-size: 0.85rem; margin-bottom: 2rem; }
.article-body { line-height: 1.8; color: #2a3a4e; }
.article-body h2 { font-size: 1.35rem; font-weight: 700; color: #1e3a5f; margin: 2rem 0 1rem; }
.article-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-tip {
  background: rgba(59,191,173,0.08);
  border-left: 4px solid #3bbfad;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

/* Breadcrumb */
.breadcrumb { padding: 1rem 2rem; font-size: 0.85rem; color: #5a6b7d; max-width: 1200px; }
.breadcrumb a { color: #3bbfad; text-decoration: none; }

/* Search Results */
.search-results { max-width: 800px; margin: 0 auto; padding: 2rem; }
.search-result { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(30,58,95,0.06); }
.search-result h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.search-result h2 a { color: #1e3a5f; }
.search-result h2 a:hover { color: #3bbfad; }
.search-result p { color: #5a6b7d; font-size: 0.88rem; line-height: 1.55; }

/* Request Form */
.request-form { max-width: 700px; margin: 0 auto; padding: 2rem; }
.request-form h1 { font-size: 1.75rem; font-weight: 800; color: #1e3a5f; margin-bottom: 0.5rem; }
.form-card { background: white; border-radius: 16px; padding: 2rem; border: 1px solid rgba(30,58,95,0.06); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: #1e3a5f; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(30,58,95,0.12);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.btn-primary {
  background: #3bbfad;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #162d4a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer .logo img { height: 32px; opacity: 0.9; }
.footer h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer a { color: rgba(255,255,255,0.55); font-size: 0.85rem; display: block; padding: 0.25rem 0; text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* Comments */
.comments { margin-top: 2.5rem; border-top: 1px solid rgba(30,58,95,0.08); padding-top: 2rem; }
.comment { padding: 1rem 0; border-bottom: 1px solid rgba(30,58,95,0.05); }
.comment-author { font-weight: 600; color: #1e3a5f; font-size: 0.9rem; }
.comment-time { font-weight: 400; color: #5a6b7d; }

/* Vote */
.article-vote {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(30,58,95,0.06);
  text-align: center;
}
.article-vote .vote-yes, .article-vote .vote-no {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #ddd;
  background: white;
  margin: 0 0.25rem;
}
.article-vote .vote-yes { border-color: #3bbfad; color: #3bbfad; }

/* Section list */
.section-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(30,58,95,0.06);
  text-decoration: none;
  transition: all 0.2s;
  color: #1e3a5f;
  font-weight: 600;
}
.section-list a:hover {
  transform: translateX(4px);
  border-color: rgba(59,191,173,0.3);
  text-decoration: none;
}
.section-list .count { color: #5a6b7d; font-size: 0.85rem; font-weight: 400; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.5rem; }
}

/* ===== Ticket Management Styles ===== */
.request-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .request-container { grid-template-columns: 1fr; }
}

.request-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

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

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30,58,95,0.06);
}

.comment-wrapper {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(30,58,95,0.06);
}

.comment-info { margin-bottom: 0.75rem; }

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar,
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.icon-agent {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: white;
  border-radius: 50%;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-meta strong {
  color: #1e3a5f;
  font-size: 0.9rem;
}

.comment-body {
  line-height: 1.6;
  color: #2a3a4e;
}

.meta-data {
  color: #5a6b7d;
  font-size: 0.82rem;
}

/* Comment Form */
.comment-form {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(30,58,95,0.06);
}

.comment-container { flex: 1; }

.comment-fields { margin-bottom: 1rem; }

.comment-ccs { margin-bottom: 1rem; }

.comment-attachments { margin-top: 0.75rem; }

.comment-form-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.mark-as-solved {
  background: transparent;
  border: 2px solid #3bbfad;
  color: #3bbfad;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.mark-as-solved:hover {
  background: #3bbfad;
  color: white;
}

.request-follow-up { margin: 1rem 0; }

/* Sidebar */
.request-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(30,58,95,0.06);
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #3bbfad;
}

.request-details {
  margin: 0 0 1rem;
}

.request-details dt {
  font-weight: 600;
  color: #5a6b7d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}

.request-details dd {
  margin: 0.25rem 0 0;
  color: #2a3a4e;
  font-size: 0.9rem;
}

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

.request-collaborators li {
  display: inline-block;
  background: #f0f4f8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin: 2px 4px 2px 0;
}

/* Status Labels */
.status-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-label-new { background: #e0f5f1; color: #1a7a6a; }
.status-label-open { background: #e0edff; color: #1a5ab7; }
.status-label-pending { background: #fff3e0; color: #b7791a; }
.status-label-hold { background: #f3e5f5; color: #7b1fa2; }
.status-label-solved { background: #e8f5e9; color: #2e7d32; }
.status-label-closed { background: #f0f0f0; color: #666; }

/* Attachments */
.attachments {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.attachment-item a {
  color: #3bbfad;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.attachment-item a:hover { text-decoration: underline; }

/* HBS Form styles */
.hbs-form { margin: 0; padding: 0; display: contents; }

/* User Menu Dropdown */
.user-menu { position: relative; }
.user-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer; background: none; padding: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.user-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 200px; padding: 0.5rem 0; z-index: 999; color: #1e3a5f !important;
}
.user-dropdown.is-open { display: block; }
.user-dropdown a,
.header nav .user-dropdown a,
.user-dropdown a:link,
.user-dropdown a:visited,
.user-dropdown a:hover,
.user-dropdown a:focus,
.user-dropdown *,
.header nav .user-dropdown * {
  display: block; padding: 0.75rem 1.25rem; color: #1e3a5f !important;
  font-size: 0.95rem; font-weight: 400; text-decoration: none;
}
.user-dropdown a:hover, .header nav .user-dropdown a:hover { background: #f5f7fa; text-decoration: none; }
.dropdown-divider { height: 1px; background: #e5e7eb; margin: 0.25rem 0; }

/* Request List */
.request-list-container {
  max-width: 900px; margin: 0 auto; padding: 3rem 2rem;
}
.request-list-container h1 {
  font-size: 1.75rem; font-weight: 800; color: #1e3a5f; margin-bottom: 1.5rem;
}

/* Request Page */
.request-container {
  display: grid; grid-template-columns: 1fr 280px; gap: 2rem;
}
.request-main { min-width: 0; }
.request-sidebar {
  background: white; border-radius: 12px; padding: 1.5rem;
  border: 1px solid rgba(30,58,95,0.08); height: fit-content;
}
.sidebar-title { font-size: 0.85rem; font-weight: 700; color: #1e3a5f; text-transform: uppercase; margin-bottom: 1rem; }
.request-details dt { font-size: 0.78rem; font-weight: 600; color: #5a6b7d; margin-top: 0.75rem; }
.request-details dd { font-size: 0.85rem; color: #1e3a5f; margin: 0.25rem 0; }
.status-label { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 600; }
.status-label-open { background: #e0f5f1; color: #0d9488; }
.status-label-pending { background: #fef3c7; color: #d97706; }
.status-label-solved { background: #e5e7eb; color: #6b7280; }
.status-label-closed { background: #e5e7eb; color: #6b7280; }

.comment-list { list-style: none; padding: 0; }
.comment { margin-bottom: 1.5rem; background: white; border-radius: 12px; padding: 1.25rem; border: 1px solid rgba(30,58,95,0.08); }
.comment-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.comment-meta strong { color: #1e3a5f; font-size: 0.9rem; }
.comment-meta .meta-data { color: #5a6b7d; font-size: 0.8rem; margin-left: 0.5rem; }
.comment-body { color: #2a3a4e; font-size: 0.9rem; line-height: 1.7; }
.comment-form { display: flex; gap: 1rem; margin-top: 1.5rem; }
.comment-container { flex: 1; }
.comment-form-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.comment-form .button {
  background: #3bbfad; color: white; border: none;
  padding: 0.6rem 1.5rem; border-radius: 9999px; font-weight: 600;
  font-size: 0.85rem; cursor: pointer;
}
.request-title { font-size: 1.5rem; font-weight: 800; color: #1e3a5f; margin-bottom: 1.5rem; }
.request-form { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.attachments { list-style: none; padding: 0; margin-top: 0.75rem; }
.attachment-item a { color: #3bbfad; font-weight: 500; }

@media (max-width: 768px) {
  .request-container { grid-template-columns: 1fr; }
}


/* Hardened dropdown color override */

.user-dropdown,
.header nav .user-dropdown,
.header .user-dropdown,
#user-dropdown,
#user-dropdown * ,
#user-dropdown a,
#user-dropdown a:link,
#user-dropdown a:visited,
#user-dropdown a:hover,
#user-dropdown a:focus,
#user-dropdown a:active,
.header nav #user-dropdown a,
.header nav #user-dropdown * {
  color: #1e3a5f !important;
}
#user-dropdown a,
.header nav #user-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none !important;
  background: transparent;
}
#user-dropdown a:hover,
.header nav #user-dropdown a:hover,
#user-dropdown a:focus {
  color: #1e3a5f !important;
  background: #f5f7fa;
}
