/* Enhanced SAP FI Hub Styles */

/* Custom Properties for Easy Theme Management */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Card Styles */
.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.info-card:hover::before {
  opacity: 1;
}

/* Organization Tree Styles */
.org-tree {
  font-family: "JetBrains Mono", "Courier New", monospace;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 2rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  line-height: 1.8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-medium);
  position: relative;
  margin: 1.5rem 0;
}

.org-tree::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, #667eea, #764ba2, #10b981);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  opacity: 0.15;
}

.org-tree .tree-content {
  position: relative;
  z-index: 2;
  padding-top: 1rem;
}

.org-tree .company-code {
  color: #fbbf24;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.org-tree .business-area {
  color: #34d399;
  font-weight: 600;
}

.org-tree .business-unit {
  color: #60a5fa;
  font-weight: 600;
}

.org-tree .department {
  color: #f472b6;
  font-weight: 500;
}

.org-tree .team {
  color: #a78bfa;
  font-weight: 500;
}

.org-tree .individual {
  color: #fb7185;
  font-style: italic;
}

.org-tree .tree-symbol {
  color: #64748b;
  user-select: none;
}

/* Highlight effect on hover */
.org-tree .tree-line:hover {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  margin: -2px -8px;
  transition: all 0.2s ease;
}

/* Enhanced Button Styles */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced List Styles */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  background: var(--glass-bg);
  margin-bottom: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid transparent;
  background-image: var(--primary-gradient);
  background-clip: padding-box;
  transition: var(--transition-smooth);
  position: relative;
}

.feature-list li::before {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--success-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.feature-list li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-medium);
}

/* Enhanced Table Styles */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.modern-table th {
  background: var(--primary-gradient);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.modern-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.modern-table tr:hover td {
  background: rgba(102, 126, 234, 0.05);
}

/* Enhanced Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

.alert-info {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  border-left-color: #667eea;
  color: #4c51bf;
}

.alert-success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(5, 150, 105, 0.1)
  );
  border-left-color: #10b981;
  color: #059669;
}

.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(217, 119, 6, 0.1)
  );
  border-left-color: #f59e0b;
  color: #d97706;
}

/* Enhanced Code Block Styles */
.code-snippet {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  font-family: "JetBrains Mono", "Courier New", monospace;
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-medium);
}

.code-snippet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  opacity: 0.1;
}

.code-snippet .line-numbers {
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 0;
  width: 40px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.5);
}

/* Enhanced Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced Tooltip */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Enhanced Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-success {
  background: var(--success-gradient);
  color: white;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .modern-table {
    font-size: 0.875rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.75rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(30, 41, 59, 0.95);
    --glass-border: rgba(148, 163, 184, 0.1);
  }

  .info-card {
    color: #e2e8f0;
  }

  .modern-table td {
    color: #e2e8f0;
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
}

/* Print Styles */
@media print {
  .sidebar-enhanced,
  .fab,
  #sidebar-toggle {
    display: none !important;
  }

  .glass-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .info-card {
    break-inside: avoid;
  }
}
