.card {
  border: 1px solid #ccc;
  border-radius: .8em;
  padding: .5em;
  margin: 1em 0;
  position: relative;
  box-shadow: 0 3px 3px -2px rgba(117, 209, 252, 0.3);
  overflow-x: hidden;
  background: white;

  border: 4px solid whitesmoke;

  .card-title {
    /* margin-top: 1.5em; */
    text-align: center;
    margin-bottom: .5em;
  }

}

.card-meta-label {
  background: whitesmoke;
  display: inline-block;
  padding: .2em .4em .2em .8em;
  margin-left: -.5em;
  margin-top: -.5em;
  /* border-top-right-radius: .8em; */
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9;

  a {
    color: steelblue !important;
  }
}

.card-in-calendar {
  height: 120px;
  overflow: hidden;
  background: white;

  font-size: .8em;

  margin-left: -.75em;
  margin-right: -.75em;

  a {
    color: #232323;
  }
}

.card-preview {
  height: 260px;
  overflow: hidden;
  background: white;

  font-size: .8em;

  a {
    color: #232323;
  }

  .card-meta-label {
    /* font-size: 1.2em; */
  }
}
.card-preview:hover {
  background: rgba(235, 250, 255, 0.7);
}



/* @media screen and (max-width: 830px) {
  .card-preview img {
    width: 100px;
  }
} */

.card p:first-child {
  margin-top: 0;
}

/* Card content headings */
.card-content h1 {
  font-size: 1.3em;
}

.card-content h2 {
  font-size: 1.2em;
}

.card-content h3 {
  font-size: 1.1em;
}


.archived {
  background: #efefef;
  padding: .2em .4em;
  border-radius: 5px;
  font-size: .8em;
}

.card-meta-label .archived {
  background: #ddd;
}



/* Calendar */
.simple-calendar .day .card-preview {
  margin-left: -.75em;
  margin-right: -.75em;

  .card-meta-label {
    position: relative;
  }
  .card-title {
    margin-top: 0;
  }
}


/*** Colored ***/

.gold.card {
  border-color: gold;

  .card-meta-label {
    background: gold;
  }
}

/* Feed Processing Panel */
.feed-processing-panel {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feed-processing-panel.analyzing {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.panel-header h4 {
  margin: 0;
  color: #4a5568;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.rejected {
  background: #e5e7eb;
  color: #4b5563;
}

.suggestion-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.suggestion-row .label {
  min-width: 100px;
  color: #64748b;
  font-size: 0.9em;
}

.suggestion-row .value {
  flex: 1;
  color: #334155;
}

.suggestion-row .confidence {
  color: #94a3b8;
  margin-left: 8px;
}

.suggestion-row .reasoning {
  font-style: italic;
  color: #64748b;
}

.mention-tag {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-right: 6px;
}

.mention-tag.new-entity {
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #f59e0b;
}

.suggestion-row .value.deck-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-option-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.82em;
}

.deck-option-switch-form {
  margin: 0;
}

button.deck-option-tag {
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

button.deck-option-tag:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.deck-option-tag small {
  color: #64748b;
}

.deck-option-tag.selected {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

button.deck-option-tag.selected,
button.deck-option-tag:disabled {
  cursor: default;
  opacity: 1;
}

button.deck-option-tag:disabled:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Feed Card Status Visual Feedback */
.card-preview.feed-completed {
  opacity: 0.5;
}

.card-preview.feed-logged {
  opacity: 0.6;
}

.card-preview.feed-rejected {
  opacity: 0.75;
}

.feed-status-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 8px;
  font-weight: 500;
}

.feed-status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.feed-status-badge.rejected {
  background: #e5e7eb;
  color: #4b5563;
}

.feed-status-badge.logged {
  background: #dbeafe;
  color: #1e40af;
}

.feed-status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.metadata-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(102, 126, 234, 0.3);
}

.metadata-item {
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #475569;
  margin-right: 8px;
}

.panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.panel-actions .btn-primary {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.panel-actions .btn-primary:hover {
  background: #5a67d8;
}

.panel-actions .btn-secondary {
  background: white;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.panel-actions .btn-secondary:hover {
  background: #f1f5f9;
}

.panel-actions .btn-link {
  color: #667eea;
  text-decoration: none;
  padding: 8px 12px;
}

.panel-actions button.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.panel-actions .btn-link:hover {
  text-decoration: underline;
}

.feed-analysis-live {
  color: #92400e;
  font-size: 0.9em;
}

.feed-analysis-meta {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.85em;
}

.feed-analysis-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-analysis-refresh-btn {
  border-radius: 6px;
}

.completed-actions {
  justify-content: flex-end;
}
