/* Help System Styles for APEX Alerts to AZ */

/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  padding-top: 56px;
  position: relative;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #2c3e50;
  scroll-margin-top: 70px;
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
  font-weight: 600;
  color: #333 !important;
}

.brand-text {
  font-size: 1.25rem;
  color: #333;
}

/* Main Container */
.main-container {
  margin-top: 2rem;
  min-height: calc(100vh - 76px);
}

/* Sidebar Styles */
.bd-sidebar {
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background-color: #fff;
  border-right: 1px solid #dee2e6;
}

.sidebar-header {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
}

.sidebar-header h5 {
  margin: 0;
  color: #495057;
  font-weight: 600;
}

.sidebar-nav {
  padding-left: 0;
  list-style: none;
}

.sidebar-nav-item {
  display: block;
  padding: .5rem 1.5rem;
  font-weight: 500;
  color: rgba(0,0,0,.65);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  color: #007bff;
  text-decoration: none;
  background-color: rgba(0,123,255,.05);
}

.sidebar-nav-item.active {
  color: #007bff;
  background-color: rgba(0,123,255,.1);
  border-left: 3px solid #007bff;
  padding-left: calc(1.5rem - 3px);
}

.sidebar-nav-item.header {
  font-weight: 600;
  color: #212529;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: .25rem 1.5rem;
}

.sidebar-nav-item i {
  width: 1.25rem;
}

/* Content Styles */
.help-content {
  padding: 2rem 3rem;
  background-color: #fff;
  min-height: calc(100vh - 76px);
}

.help-header {
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.help-section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.help-section-no-border {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

/* Help Cards */
.help-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.help-icon {
  margin: 0 auto;
}

/* Feature Boxes */
.feature-box {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #fff;
}

.feature-box .icon {
  margin-bottom: 1.5rem;
  color: #007bff;
}

/* Steps */
.steps {
  counter-reset: step-counter;
  padding-left: 3rem;
  margin: 2rem 0;
}

.step {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -3rem;
  top: -0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

.step h5 {
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Subscription Benefits */
.benefit-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.benefit-list li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

/* Alert Callouts */
.alert-callout {
  border-left: 4px solid #007bff;
  padding: 1.5rem;
  margin: 2rem 0;
  background-color: #f8f9fa;
  border-radius: 0 4px 4px 0;
}

.alert-callout.info {
  border-left-color: #17a2b8;
}

.alert-callout.warning {
  border-left-color: #ffc107;
}

.alert-callout.danger {
  border-left-color: #dc3545;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background-color: #0069d9;
  color: white;
  text-decoration: none;
  transform: scale(1.1);
}

/* Search Styles */
#searchInput {
  border-radius: 20px;
  padding-right: 2.5rem;
}

.input-group-append .btn {
  border-radius: 0 20px 20px 0;
  border-left: none;
}

/* Accordion Styles */
.accordion .card {
  border: 1px solid #e9ecef;
  margin-bottom: 0.5rem;
}

.accordion .card-header {
  background-color: #f8f9fa;
  padding: 0;
}

.accordion .btn-link {
  color: #495057;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.accordion .btn-link:hover {
  color: #007bff;
  text-decoration: none;
}

.accordion .btn-link:focus {
  box-shadow: none;
}

/* List Group Styles */
.list-group-item-action:hover {
  background-color: #f8f9fa;
}

.list-group-item h5 {
  color: #495057;
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .bd-sidebar {
    position: static;
    height: auto;
    margin-bottom: 2rem;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }
  
  .help-content {
    padding: 1.5rem;
  }
  
  .steps {
    padding-left: 2.5rem;
  }
  
  .step::before {
    left: -2.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .help-header h1 {
    font-size: 2rem;
  }
  
  .help-card {
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .bd-sidebar,
  .back-to-top,
  #searchForm {
    display: none !important;
  }
  
  .help-content {
    padding: 0;
  }
  
  body {
    padding-top: 0;
  }
}