/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Custom Tab System for Admin Pages
******************************************************************************/

/* Procedure Header Styling */
.procedure-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #bbf7d0;
}

/* Tab Navigation Container */
.nav-tabs-container {
  border-bottom: 2px solid #dcfce7;
  margin-bottom: 0;
}

.nav-tabs {
  border-bottom: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px 10px 0 0;
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  border: none;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 15px 25px;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link:hover {
  border: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  color: #10b981;
  background: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-tabs .nav-link.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
}

.tab-content {
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  min-height: 400px;
}

.tab-pane {
  padding: 30px;
}

/* Card Enhancements */
.card {
  border: none;
  box-shadow: 0 2px 20px rgba(16, 185, 129, 0.08);
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(16, 185, 129, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-bottom: 1px solid #bbf7d0;
  border-radius: 10px 10px 0 0 !important;
  padding: 20px;
}

.card-header h5 {
  margin: 0;
  color: #065f46;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem !important;
  padding-top: 1.5rem !important;
}

/* Enhanced Alert Styling */
.alert-info {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  border-radius: 8px;
  color: #065f46;
}

.alert-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #10b981;
  border-radius: 8px;
  color: #fff;
}

.alert-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid #22c55e;
  border-radius: 8px;
  color: #fff;
  animation: slideInFromTop 0.5s ease;
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 6px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff !important;
}

.btn-warning:focus {
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.5);
  color: #fff !important;
}

.btn-outline-primary {
  border-color: #10b981;
  color: #10b981;
}

.btn-outline-primary:hover {
  background-color: #10b981;
  border-color: #10b981;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Form Enhancements */
.form-control:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Text colors matching theme */
.text-primary {
  color: #10b981 !important;
}

/* Animations */
@keyframes slideInFromTop {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Validation */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Tab indicator for unsaved changes */
.nav-link.unsaved::after {
  content: '•';
  color: #ffc107;
  font-size: 20px;
  position: absolute;
  top: 5px;
  right: 5px;
}

/* Loading animation */
.bx-spin {
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-tabs .nav-link {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .tab-pane {
    padding: 20px 15px;
  }
  
  .card-header {
    padding: 15px;
  }
  
  .procedure-header {
    padding: 15px;
  }
  
  .procedure-header .d-flex {
    flex-direction: column;
    gap: 15px;
  }
}