/* TechToolsHive HAR Analyzer
   Location: app/static/css/tools/sso/har-analyzer.css
   Purpose: HAR File Analyzer specific styles
*/

/* Import shared components */
@import '../../core/variables.css';
@import '../../core/base.css';
@import '../../core/themes.css';
@import '../../components/buttons.css';
@import '../../components/forms.css';
@import '../../components/cards.css';
@import '../../components/tables.css';
@import '../../components/modals.css';
@import '../../components/alerts.css';
@import '../sso/components/security.css';
@import '../sso/components/upload.css';

/* ===== ENHANCED TAB STYLING ===== */
.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-bottom-color: var(--border-color);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-tabs .nav-link.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--card-bg);
  font-weight: 600;
}

/* ===== ENHANCED SUMMARY CARDS ===== */
.summary-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.summary-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.summary-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.summary-card .metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Timeline */
.timeline-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  transform: translateX(5px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #007bff;
  border-radius: 0 2px 2px 0;
}

/* Enhanced Request List */
.request-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.request-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.request-item.expanded {
  border-color: #007bff;
  background: #f8f9fa;
}

/* Status Code Colors */
.status-2xx { color: #28a745; font-weight: 600; }
.status-3xx { color: #ffc107; font-weight: 600; }
.status-4xx { color: #fd7e14; font-weight: 600; }
.status-5xx { color: #dc3545; font-weight: 600; }

/* Enhanced SSO Flow Visualization */
.sso-flow-step {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.sso-flow-step:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.sso-flow-step::after {
  content: '↓';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #007bff;
  font-size: 1.2rem;
  font-weight: bold;
}

.sso-flow-step:last-child::after {
  display: none;
}

/* Enhanced Performance Chart */
.performance-bar {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  height: 8px;
  border-radius: 4px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.performance-bar:hover {
  height: 12px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Enhanced Error Display */
.error-item {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.error-item:hover {
  border-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

/* Enhanced Security Headers */
.security-header {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.security-header.present {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #f8f9fa 100%);
}

.security-header.missing {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f8f9fa 100%);
}

.security-header:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Utility Buttons */
.btn-outline-success,
.btn-outline-info,
.btn-outline-secondary {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border-color: #28a745;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline-info:hover {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-color: #17a2b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
  border-color: #6c757d;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Enhanced Search Input */
#requestSearch {
  border: 2px solid #dee2e6;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

#requestSearch:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-border {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .drop-zone {
    padding: 2rem 1rem;
  }
  
  .drop-zone h5 {
    font-size: 1.1rem;
  }
  
  #analyzeHarBtn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .summary-card .metric-value {
    font-size: 1.5rem;
  }
}

/* Animation for file processing */
@keyframes processing {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.processing {
  animation: processing 1.5s infinite;
}

/* Enhanced file type indicators */
.file-type-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Enhanced progress indicator */
.progress-indicator {
  background: #e9ecef;
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
} 