@charset "utf-8";

/* Import main theme variables from styles.css */

/* Light Theme overrides for help pages */
body.light-theme .help-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 55, 72, 0.2);
}

body.light-theme .collapsible {
  background: rgba(45, 55, 72, 0.1);
  color: var(--text-primary);
}

body.light-theme .collapsible:hover,
body.light-theme .collapsible.active {
  background: rgba(45, 55, 72, 0.15);
}

body.light-theme .support-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 55, 72, 0.2);
}

body.light-theme .support-card:hover {
  background: rgba(255, 255, 255, 1);
}

body.light-theme .service-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 55, 72, 0.2);
}

body.light-theme .resource-link {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 55, 72, 0.2);
}

body.light-theme .resource-link:hover:not(.disabled) {
  background: rgba(255, 255, 255, 1);
}

body.light-theme .contact-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 55, 72, 0.2);
}

body.light-theme .theme-btn {
  border: 2px solid rgba(45, 55, 72, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .theme-btn:hover {
  border-color: rgba(45, 55, 72, 0.6);
  background: rgba(255, 255, 255, 1);
}

body.light-theme .theme-btn.active {
  border-color: var(--focus-color);
  background: rgba(50, 130, 184, 0.1);
}

body.light-theme .comment-textbox {
  border: 1px solid rgba(64, 64, 64, 0.3);
}

body.light-theme #revit-version {
  border: 1px solid rgba(64, 64, 64, 0.3);
}

body.light-theme #autocad-version {
  border: 1px solid rgba(64, 64, 64, 0.3);
}

/* Dark Theme overrides to match light theme structure */
body:not(.light-theme) .help-section {
  background: rgba(64, 65, 79, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.light-theme) .comment-textbox {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body:not(.light-theme) .checklist-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.light-theme) .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* AutoCAD page specific dark theme styles */
body:not(.light-theme) #autocad-download-button.disabled {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.light-theme) #autocad-download-button.disabled:hover {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.light-theme) #autocad-version {
  color: #2d3748;
}

/* Revit page specific dark theme styles */
body:not(.light-theme) #revit-download-button.disabled {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.light-theme) #revit-download-button.disabled:hover {
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.light-theme) #revit-version {
  color: #2d3748;
}

/* Navigation Menu - Copy from styles.css */
.main-navigation {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  z-index: 1001;
}

.nav-text {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.8;
  margin: 0 1rem;
}

.nav-text:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-text.active {
  opacity: 1;
  text-decoration: underline;
  font-weight: 500;
}

/* Help Page Specific Styles */
.help-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 170px;
}

/* Help Sections */
.help-section {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* FAQ Items */
.faq-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Collapsible Buttons */
.collapsible {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  cursor: pointer;
  padding: 1rem 1.5rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.collapsible::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.collapsible.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.collapsible:hover,
.collapsible.active {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Areas */
.content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.content.powershell {
  background: linear-gradient(135deg, #012456 0%, #003d82 100%);
  color: #FFE819;
}

/* Code Blocks */
.code-block {
  padding: 1.5rem;
  background: #1a1a1a;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  border-radius: 8px;
  margin: 1rem;
  overflow-x: auto;
}

.code-block p {
  margin: 0.5rem 0;
  word-break: break-all;
}

.powershell-block {
  background: linear-gradient(135deg, #012456 0%, #003d82 100%);
  color: #FFE819;
}

.info-block {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 1rem;
  border-radius: 8px;
}

.step-list {
  padding: 1.5rem;
  line-height: 1.8;
}

.step-list p {
  margin: 0.75rem 0;
}

.step-list strong {
  color: #FFE819;
  font-weight: 600;
}

/* Help Links */
.help-link {
  margin: 1rem 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.external-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.link-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-content {
    padding: 0 1rem;
    margin-top: 170px;
  }
  
  .help-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .help-section-title {
    font-size: 1.125rem;
  }
  
  .collapsible {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .collapsible::after {
    right: 1rem;
  }
  
  .code-block {
    font-size: 0.8rem;
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .info-block,
  .step-list {
    padding: 1rem;
    margin: 0.5rem;
  }
}

@media (max-width: 480px) {
  .help-section-title {
    font-size: 0.975rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .collapsible {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .external-link {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }
}

/* Legacy support - keep minimal styling for backward compatibility */
.marginauto {
  margin: 10px auto 20px;
  display: block;
}

/* Support Page Specific Styles */
.support-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.support-text {
  font-size: 1.1rem;
  color: var(--text-white);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.support-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.support-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.support-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.support-card-description {
  color: var(--text-white);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.support-card-details {
  font-size: 0.9rem;
  color: var(--text-white);
  opacity: 0.7;
}

.support-card-details p {
  margin: 0.25rem 0;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  color: var(--text-white);
  opacity: 0.8;
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.service-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--text-white);
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.resource-link:hover:not(.disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resource-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resource-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.resource-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.resource-content p {
  font-size: 0.9rem;
  color: var(--text-white);
  opacity: 0.8;
  margin: 0;
}

/* Contact Information */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-details {
  space-y: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  color: var(--text-white);
  margin: 1rem 0;
  opacity: 0.9;
}

.contact-value {
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Responsive Design for Support Page */
@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .support-card {
    padding: 1.5rem;
  }
  
  .support-card-icon {
    font-size: 2.5rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .resource-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    top: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.2rem;
  }
  
  .nav-text {
    font-size: 0.8rem;
    margin: 0 0.7rem;
  }
}

@media (max-width: 480px) {
  .main-navigation {
    top: 7.5rem;
    flex-direction: row;
    gap: 0.15rem;
  }
  
  .nav-text {
    font-size: 0.75rem;
    margin: 0 0.5rem;
  }
  
  .support-text {
    font-size: 1rem;
  }
  
  .support-card-title {
    font-size: 1.1rem;
  }
  
  .resource-link {
    padding: 1rem;
  }
  
  .resource-icon {
    font-size: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-value {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Checklist Styles */
.checklist-container {
  margin: 2rem 0;
}

.checklist-item {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
}

.checkbox-row:hover {
  transform: translateX(4px);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: var(--focus-color);
}

.checklist-label {
  font-size: 1.1rem;
  color: var(--text-white);
  cursor: pointer;
  flex: 1;
  font-weight: 500;
}

.checklist-checkbox:checked + .checklist-label {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Comment Section Styles */
.comment-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
  margin-top: 0;
}

.comment-textbox {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 220px;
  transition: all 0.3s ease;
}

.comment-textbox::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.comment-textbox:focus {
  outline: none;
  border-color: var(--focus-color);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
}

/* Focus states for accessibility */
.collapsible:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.external-link:focus,
.resource-link:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.checklist-checkbox:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* Download Page Styles */
.download-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.selector-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.selector-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.version-select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 300px;
}

.version-select:focus {
  outline: none;
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
  background: rgba(255, 255, 255, 1);
}

.version-select:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-white);
  background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
  text-align: center;
  min-width: 150px;
  height: fit-content;
}

.download-button:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 183, 136, 0.4);
  background: linear-gradient(135deg, #40916c 0%, #2d6a4f 100%);
}

.download-button.disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  box-shadow: none;
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.download-icon {
  font-size: 1.2rem;
}

.download-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  color: var(--text-white);
  opacity: 0.8;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #52b788;
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive Design for Download Page */
@media (max-width: 768px) {
  .download-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .selector-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .version-select {
    max-width: 100%;
  }
  
  .download-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 180px;
    align-self: center;
  }
  
  .selector-label {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .download-container {
    padding: 1rem;
  }
  
  .download-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-width: 160px;
  }
  
  .download-info {
    padding: 1rem;
  }
  
  .info-title {
    font-size: 1.1rem;
  }
}