/* Custom styles on top of Bootstrap */

/* General Styling */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Dashboard cards */
.dashboard-card {
  transition: transform 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

/* Quote form styling */
.quote-form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--bs-dark);
}

/* File upload */
.file-upload-area {
  border: 2px dashed var(--bs-secondary);
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.file-upload-area:hover {
  border-color: var(--bs-primary);
}

/* Risk score indicators */
.risk-score-indicator {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.risk-badge {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
}

.risk-low {
  background-color: var(--bs-success);
}

.risk-medium {
  background-color: var(--bs-warning);
}

.risk-high {
  background-color: var(--bs-danger);
}

/* Portfolio analysis */
.metric-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
}

.metric-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Policy document */
.policy-document {
  background-color: var(--bs-dark);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-gray-700);
}

.policy-header {
  border-bottom: 1px solid var(--bs-gray-600);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.policy-section {
  margin-bottom: 1.5rem;
}

/* AI Insights Styling */
.ai-insight-card {
  border-left: 4px solid var(--bs-info);
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(var(--bs-info-rgb), 0.1);
}

/* Rule editor */
.rule-card {
  margin-bottom: 1rem;
}

.rule-toggle {
  cursor: pointer;
}

/* Loading indicators */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.2rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

/* Document list */
.document-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  background-color: var(--bs-dark);
}

.document-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.document-info {
  flex: 1;
}

.document-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.document-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Alert Persistence */
.alert-permanent {
  /* Ensure alerts with this class don't auto-hide */
  opacity: 1 !important;
  display: block !important;
}
