/**
 * @file
 * Procept Tabs styles.
 */

/* Container */
.procept-tabs {
  margin: 30px 0;
  display: flex;
  gap: 0;
  background: #fff;
  clear: both;
}

/* Horizontal tabs (default) */
.procept-tabs:not(.vertical) {
  flex-direction: column;
}

.procept-tabs:not(.vertical) .nav-tabs {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.procept-tabs:not(.vertical) .nav-item {
  margin: 0;
}

.procept-tabs:not(.vertical) .nav-link {
  display: block;
  padding: 15px 20px;
  color: #666;
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 14px;
}

.procept-tabs:not(.vertical) .nav-link:hover {
  color: #333;
  background: #fff;
  border-bottom-color: #ccc;
}

.procept-tabs:not(.vertical) .nav-link.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
  background: #fff;
  font-weight: 500;
}

/* Vertical tabs */
.procept-tabs.vertical {
  flex-direction: row;
}

.procept-tabs.vertical .nav-tabs {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid #e0e0e0;
  border-bottom: none;
  min-width: 200px;
  background: #f8f9fa;
}

.procept-tabs.vertical .nav-item {
  margin: 0;
}

.procept-tabs.vertical .nav-link {
  display: block;
  padding: 15px 20px;
  color: #666;
  text-decoration: none;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.procept-tabs.vertical .nav-link:hover {
  color: #333;
  background: #fff;
  border-left-color: #ccc;
}

.procept-tabs.vertical .nav-link.active {
  color: #0066cc;
  border-left-color: #0066cc;
  background: #fff;
  font-weight: 500;
}

/* Tab content area */
.procept-tabs .tab-content {
  flex: 1;
  padding: 20px 30px;
  background: #fff;
}

.procept-tabs .tab-pane {
  display: none;
}

.procept-tabs .tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Button styling */
a.dexp-btn-reflect {
  display: inline-block;
  padding: 14px 28px;
  background-color: #3f3f3f;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

a.dexp-btn-reflect:hover {
  background-color: #0066cc;
  color: #ffffff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .procept-tabs,
  .procept-tabs.vertical {
    flex-direction: column;
  }
  
  .procept-tabs .nav-tabs,
  .procept-tabs.vertical .nav-tabs {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    flex-direction: column;
  }
  
  .procept-tabs.vertical .nav-link {
    border-left: none;
    border-bottom: 1px solid #e0e0e0;
    border-top: 3px solid transparent;
  }
  
  .procept-tabs.vertical .nav-link.active {
    border-left: none;
    border-top-color: #0066cc;
  }
  
  .procept-tabs .tab-content {
    padding: 20px 15px;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .procept-tabs.vertical .nav-tabs {
    min-width: 180px;
  }
  
  .procept-tabs .nav-link {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .procept-tabs .tab-content {
    padding: 15px 20px;
  }
}

/* Print styles */
@media print {
  .procept-tabs .tab-pane {
    display: block !important;
    page-break-inside: avoid;
  }
  
  .procept-tabs .nav-tabs {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .procept-tabs .tab-pane {
    animation: none !important;
  }
  
  .procept-tabs .nav-link {
    transition: none !important;
  }
}