/* Estilos personalizados para complementar Bootstrap */

:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --primary-color: #0066cc;
  --secondary-color: #5cb85c;
  --tertiary-color: #f0ad4e;
  --border-color: #e1e4e8;
  --card-hover: #f1f8ff;
  --accent: #0066cc;
  --accent-light: rgba(13, 110, 253, 0.2);
  --accent-lighter: rgba(13, 110, 253, 0.1);
  --element-bg: rgba(0, 0, 0, 0.03);
  --primary-light: #e6f7ff;
  --text-color: #333;
  --light-gray: #f0f2f5;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --danger-color: #f5222d;
  --card-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  --hover-transition: all 0.3s ease;
  --container-max-width: 1200px;
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --color-primary: #1a73e8;
  --color-secondary: #34a853;
  --color-success: #4caf50;
  --color-danger: #f44336;
  --color-warning: #ff9800;
  --color-info: #2196f3;
  --bg-body: #f5f5f5;
  --bg-card: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 10px;
}

.logo-container {
  text-align: center;
  margin: 20px 0;
}

.company-logo {
  max-width: 200px;
}

.fecha {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

/* Estilos para el buscador */
.search-box {
  margin: 0 auto 30px;
  max-width: 500px;
  display: flex;
  gap: 10px;
}

#searchInput {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#searchButton {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

#searchButton:hover {
  background-color: #0055aa;
}

/* Estilos para el ID del caso de prueba */
.test-case-id {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.test-id-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 8px;
}

/* Estilos para resaltar resultados de búsqueda */
.highlight {
  animation: pulse 2s;
  border: 2px solid #0066cc !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

.breadcrumbs {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 16px;
}

.breadcrumbs a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #004c99;
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 10px;
  color: #666;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
  padding: 15px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 15px;
  color: #666;
}

.count-badge {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.count-badge svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  color: #0066cc;
}

.test-steps-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 20px;
  overflow: hidden;
}

.test-steps-header {
  background-color: #0066cc;
  color: white;
  padding: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.step-item:last-child {
  border-bottom: none;
}

.hidden {
  display: none !important;
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }

  .search-box {
    flex-direction: column;
  }
}

/* Vistas específicas */
.modules-view, .testcases-view, .steps-view {
  width: 100%;
}