/* Help & Support Dashboard Styles */
:root {
  --help-primary: #0066ff;
  --help-secondary: #00d4ff;
  --help-success: #00c851;
  --help-warning: #ffbb33;
  --help-danger: #ff4444;
  --help-card-bg: rgba(15, 15, 30, 0.8);
  --help-border: rgba(255, 255, 255, 0.08);
  --help-hover: rgba(255, 255, 255, 0.05);
  --help-text-muted: rgba(255, 255, 255, 0.6);
  --help-gradient: linear-gradient(135deg, var(--help-primary), var(--help-secondary));
  --help-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --help-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Main Content Layout */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 2rem;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left 0.3s ease;
}

.help-support-section {
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

/* Page Header */
.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.help-header-content {
  flex: 1;
}

.help-title {
  font-size: var(--dashboard-title-size);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: var(--help-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.help-subtitle {
  font-size: var(--dashboard-subtitle-size);
  color: var(--help-text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.help-header-illustration {
  flex-shrink: 0;
  margin-left: 2rem;
}

.help-icon {
  width: 100px;
  height: 100px;
  animation: float 3s ease-in-out infinite;
  background: var(--gradient-primary);
  padding: 20px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.help-icon img{
  width: 70%;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Support Cards Grid */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.support-card {
  position: relative;
  padding: 2rem;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--help-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--help-shadow-hover);
  border-color: var(--help-primary);
}

.support-card:hover::before {
  transform: scaleX(1);
}

.support-card-icon {
  width: 60px;
  height: 60px;
  background: var(--help-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.support-card:hover .support-card-icon {
  transform: scale(1.1);
}

.support-card-icon i {
  font-size: var(--dashboard-section-title-size);
  color: white;
}

.support-card-title {
  font-size: var(--dashboard-card-title-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.support-card-description {
  color: var(--help-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.support-card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--help-text-muted);
  transition: all 0.3s ease;
}

.support-card:hover .support-card-arrow {
  color: var(--help-primary);
  transform: translateX(5px);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 200, 81, 0.1);
  border: 1px solid rgba(0, 200, 81, 0.3);
  border-radius: 20px;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--help-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: var(--dashboard-body-xs-size);
  color: var(--help-success);
  font-weight: 500;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Smart Search Bar */
.help-search-container {
  margin-bottom: 3rem;
}

.help-search-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.help-search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--help-text-muted);
  font-size: var(--dashboard-card-title-size);
  z-index: 2;
}

.help-search-input {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  background: var(--help-card-bg);
  border: 2px solid var(--help-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: var(--dashboard-body-size);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.help-search-input:focus {
  outline: none;
  border-color: var(--help-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.help-search-input::placeholder {
  color: var(--help-text-muted);
}

.help-search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Knowledge Base Section */
.knowledge-base-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--dashboard-section-title-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.kb-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.kb-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 12px;
  color: var(--help-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
}

.kb-tab:hover {
  background: var(--help-hover);
  color: var(--text-primary);
}

.kb-tab.active {
  background: var(--help-gradient);
  color: white;
  border-color: transparent;
}

.kb-content {
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.kb-tab-content {
  display: none;
  padding: 2rem;
}

.kb-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--help-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--help-primary);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--dashboard-body-size);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--help-hover);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1rem;
  color: var(--help-text-muted);
  line-height: 1.6;
  margin: 0;
}

.faq-helpful {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.faq-helpful span {
  color: var(--help-text-muted);
  font-size: var(--dashboard-body-sm-size);
}

.helpful-btn {
  background: none;
  border: 1px solid var(--help-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--help-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.helpful-btn:hover {
  background: var(--help-hover);
  color: var(--text-primary);
}

.helpful-btn[data-helpful="yes"]:hover {
  border-color: var(--help-success);
  color: var(--help-success);
}

.helpful-btn[data-helpful="no"]:hover {
  border-color: var(--help-danger);
  color: var(--help-danger);
}

/* Contact Section */
.contact-section {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 2rem;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--help-shadow-hover);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--help-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: var(--dashboard-section-title-size);
  color: white;
}

.contact-card h3 {
  font-size: var(--dashboard-card-title-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--help-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-action {
  padding: 0.75rem 1.5rem;
  background: var(--help-gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 200, 81, 0.1);
  border: 1px solid rgba(0, 200, 81, 0.3);
  border-radius: 20px;
  color: var(--help-success);
  font-size: var(--dashboard-body-xs-size);
  font-weight: 500;
  margin-top: 1rem;
}

/* Help History Section */
.help-history-section {
  margin-bottom: 3rem;
}

.history-table-container {
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--help-border);
}

.history-table th {
  background: var(--help-hover);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--dashboard-body-sm-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  color: var(--help-text-muted);
}

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

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--dashboard-body-xxs-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.open {
  background: rgba(255, 187, 51, 0.1);
  color: var(--help-warning);
  border: 1px solid rgba(255, 187, 51, 0.3);
}

.status-badge.closed {
  background: rgba(0, 200, 81, 0.1);
  color: var(--help-success);
  border: 1px solid rgba(0, 200, 81, 0.3);
}

.action-btn {
  padding: 0.5rem;
  background: var(--help-hover);
  border: 1px solid var(--help-border);
  border-radius: 8px;
  color: var(--help-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--help-primary);
  color: white;
  border-color: var(--help-primary);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--help-border);
}

.modal-header h2 {
  font-size: var(--dashboard-section-title-size);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--help-text-muted);
  font-size: var(--dashboard-card-title-size);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--help-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--dashboard-body-sm-size);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--help-hover);
  border: 1px solid var(--help-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--dashboard-body-size);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--help-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--help-text-muted);
}

.form-group input[readonly] {
  background: var(--help-border);
  color: var(--help-text-muted);
  cursor: not-allowed;
}

/* Custom Select */
.custom-select {
  position: relative;
}

.select-trigger {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--help-hover);
  border: 1px solid var(--help-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: var(--dashboard-body-size);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.select-trigger:hover {
  border-color: var(--help-primary);
}

.select-trigger i {
  transition: transform 0.3s ease;
}

.select-trigger.active i {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--dropdown-bg);
  border: var(--dropdown-border);
  border-radius: var(--dropdown-radius);
  box-shadow: var(--dropdown-shadow);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  padding: 8px;
}

.select-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
  border-radius: var(--dropdown-item-radius);
  margin: 5px 0;
}

.select-option:hover {
  background: var(--dropdown-item-hover-bg);
  border-color: var(--dropdown-item-hover-border);
  color: var(--text-primary);
}

.select-option i {
  width: 16px;
  text-align: center;
}

/* File Upload */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--help-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--help-primary);
  background: var(--help-hover);
}

.file-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content i {
  font-size: var(--dashboard-metric-value-size);
  color: var(--help-primary);
  margin-bottom: 1rem;
}

.file-upload-content p {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.file-types {
  color: var(--help-text-muted);
  font-size: var(--dashboard-body-xs-size);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--help-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background: var(--help-hover);
  color: var(--text-primary);
  border: 1px solid var(--help-border);
}

.btn-secondary:hover {
  background: var(--help-border);
}

.btn-loading {
  display: none;
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--help-shadow);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transform: translateY(100%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.chat-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--help-border);
  background: var(--help-gradient);
  border-radius: 16px 16px 0 0;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.agent-info {
  display: flex;
  flex-direction: column;
}

.agent-name {
  color: white;
  font-weight: 600;
  font-size: var(--dashboard-body-sm-size);
}

.agent-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--dashboard-body-xxs-size);
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: var(--dashboard-card-title-size);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

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

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

.chat-message.user .message-content {
  background: var(--help-gradient);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 16px 16px 4px 16px;
}

.chat-message.agent .message-content {
  background: var(--help-hover);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 16px 16px 16px 4px;
}

.message-content p {
  margin: 0;
  line-height: 1.4;
}

.message-time {
  font-size: var(--dashboard-body-xxxs-size);
  color: var(--help-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.chat-input-container {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--help-border);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--help-hover);
  border: 1px solid var(--help-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: var(--dashboard-body-sm-size);
}

.chat-input:focus {
  outline: none;
  border-color: var(--help-primary);
}

.chat-send {
  padding: 0.75rem;
  background: var(--help-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send:hover {
  transform: scale(1.05);
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: var(--header-height);
  right: -400px;
  width: 400px;
  height: calc(100vh - var(--header-height));
  background: var(--help-card-bg);
  border-left: 1px solid var(--help-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notification-panel.active {
  right: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--help-border);
}

.notification-header h3 {
  color: var(--text-primary);
  font-size: var(--dashboard-card-title-size);
  font-weight: 600;
}

.close-panel {
  background: none;
  border: none;
  color: var(--help-text-muted);
  font-size: var(--dashboard-card-title-size);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-panel:hover {
  background: var(--help-hover);
  color: var(--text-primary);
}

.notification-tabs {
  display: flex;
  padding: 1rem 2rem 0;
  border-bottom: 1px solid var(--help-border);
}

.notification-tab {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--help-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: var(--dashboard-body-sm-size);
}

.notification-tab:hover {
  color: var(--text-primary);
}

.notification-tab.active {
  color: var(--help-primary);
  border-bottom-color: var(--help-primary);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.notification-item:hover {
  background: var(--help-hover);
}

.notification-item.high-priority {
  border-left-color: var(--help-danger);
}

.notification-item.system-update {
  border-left-color: var(--help-warning);
}

.notification-item.success {
  border-left-color: var(--help-success);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item.high-priority .notification-icon {
  background: rgba(255, 68, 68, 0.1);
  color: var(--help-danger);
}

.notification-item.system-update .notification-icon {
  background: rgba(255, 187, 51, 0.1);
  color: var(--help-warning);
}

.notification-item.success .notification-icon {
  background: rgba(0, 200, 81, 0.1);
  color: var(--help-success);
}

.notification-content {
  flex: 1;
}

.notification-content h4 {
  color: var(--text-primary);
  font-size: var(--dashboard-body-size);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.notification-content p {
  color: var(--help-text-muted);
  font-size: var(--dashboard-body-xs-size);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.notification-time {
  color: var(--help-text-muted);
  font-size: var(--dashboard-body-xxxs-size);
}

.notification-close {
  background: none;
  border: none;
  color: var(--help-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: var(--help-hover);
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  .help-header {
    flex-direction: column;
    text-align: center;
  }
  
  .help-header-illustration {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .help-title {
    font-size: var(--dashboard-title-size);
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  
  .help-title {
    font-size: var(--dashboard-title-sm-size);
  }
  
  .help-subtitle {
    font-size: var(--dashboard-subtitle-size);
  }
  
  .support-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .kb-tabs {
    flex-wrap: wrap;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-widget {
    width: calc(100% - 2rem);
    height: 400px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .notification-panel {
    width: 100%;
    right: -100%;
  }
  
  .modal-container {
    width: 95%;
    margin: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .history-table-container {
    overflow-x: auto;
  }
  
  .history-table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .help-header {
    padding: 1.5rem;
  }
  
  .help-title {
    font-size: var(--dashboard-title-xs-size);
  }
  
  .support-card {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .chat-widget {
    height: 350px;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .help-search-input,
  .form-group input,
  .form-group textarea,
  .select-trigger,
  .chat-input {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .file-upload-area:hover {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.support-card:focus,
.kb-tab:focus,
.faq-question:focus,
.helpful-btn:focus,
.contact-action:focus,
.action-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--help-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --help-border: rgba(255, 255, 255, 0.3);
    --help-text-muted: rgba(255, 255, 255, 0.8);
  }
}
