/* docs.olibene.com — Document Tracker specific styles */

.docs-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}
.docs-hero__title { font-family: 'Poiret One', cursive; font-size: 2rem; font-weight: 400; letter-spacing: 0.01em; margin: 0 0 0.5rem; }
.docs-hero__sub { opacity: 0.8; margin: 0; }

.docs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.docs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.docs-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: #7c3aed; }
.docs-card__title { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.5rem; color: #111; }
.docs-card__meta { font-size: 0.8rem; color: #6b7280; margin: 0 0 0.75rem; }
.docs-card__progress { background: #f3f4f6; border-radius: 8px; height: 8px; overflow: hidden; }
.docs-card__progress-bar { background: linear-gradient(90deg, #7c3aed, #ec4899); height: 100%; transition: width 0.3s; }
.docs-card__progress-text { font-size: 0.75rem; color: #6b7280; margin-top: 0.35rem; text-align: right; }

.docs-card--new {
  background: transparent;
  border: 2px dashed #c7d2fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  min-height: 140px;
}
.docs-card--new:hover { border-color: #7c3aed; background: rgba(124,58,237,0.04); }

.docs-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.docs-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.docs-template-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
.docs-template-card:hover { border-color: #7c3aed; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.docs-template-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.docs-template-card__title { font-weight: 700; margin: 0 0 0.4rem; color: #111; }
.docs-template-card__desc { font-size: 0.85rem; color: #6b7280; margin: 0 0 0.75rem; line-height: 1.4; }
.docs-template-card__count { font-size: 0.75rem; color: #7c3aed; font-weight: 600; }

.docs-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.docs-tracker-title-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 500px;
  padding: 0.5rem 0;
  border-bottom: 2px solid #e5e7eb;
  outline: none;
  transition: border-color 0.2s;
}
.docs-tracker-title-input:focus { border-bottom-color: #7c3aed; }

.docs-progress-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.docs-progress-summary__bar { background: #e5e7eb; border-radius: 8px; height: 10px; overflow: hidden; margin-bottom: 0.5rem; }
.docs-progress-summary__fill { background: linear-gradient(90deg, #7c3aed, #ec4899); height: 100%; transition: width 0.3s; }
.docs-progress-summary__text { font-size: 0.9rem; color: #374151; font-weight: 600; }

.docs-items-list { display: flex; flex-direction: column; gap: 0.5rem; }

.docs-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: all 0.2s;
}
.docs-item--done { background: #f0fdf4; border-color: #bbf7d0; }
.docs-item__header { display: flex; align-items: center; gap: 0.75rem; }
.docs-item__checkbox { width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; accent-color: #7c3aed; }
.docs-item__label-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  outline: none;
  padding: 0.25rem 0;
}
.docs-item--done .docs-item__label-input { text-decoration: line-through; color: #6b7280; }
.docs-item__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}
.docs-item__delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}
.docs-item__details { display: none; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #e5e7eb; gap: 0.75rem; flex-direction: column; }
.docs-item--expanded .docs-item__details { display: flex; }
.docs-item__field { display: flex; flex-direction: column; gap: 0.25rem; }
.docs-item__field label { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.docs-item__field input[type="date"], .docs-item__field input[type="url"], .docs-item__field textarea {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.docs-item__field input:focus, .docs-item__field textarea:focus { border-color: #7c3aed; }

.docs-add-item {
  margin-top: 1rem;
  background: transparent;
  border: 2px dashed #c7d2fe;
  color: #7c3aed;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
}
.docs-add-item:hover { border-color: #7c3aed; background: rgba(124,58,237,0.04); }

.docs-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.docs-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.docs-btn--primary { background: #7c3aed; color: #fff; }
.docs-btn--primary:hover { background: #6d28d9; }
.docs-btn--secondary { background: #f3f4f6; color: #374151; }
.docs-btn--secondary:hover { background: #e5e7eb; }
.docs-btn--danger { background: transparent; color: #ef4444; border: 1px solid #fecaca; }
.docs-btn--danger:hover { background: #fef2f2; }

.docs-save-indicator {
  font-size: 0.85rem;
  color: #10b981;
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.docs-save-indicator--visible { opacity: 1; }

.docs-disclaimer {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #78350f;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.docs-disclaimer a { color: #78350f; text-decoration: underline; }

.docs-upsell {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 16px;
}
.docs-upsell h1 { font-size: 2rem; margin: 0 0 1rem; font-family: 'Montserrat', sans-serif; }
.docs-upsell p { opacity: 0.9; margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.6; max-width: 600px; margin-left: auto; margin-right: auto; }
.docs-upsell__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem auto; max-width: 700px; text-align: left; }
.docs-upsell__feature { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; }
.docs-upsell__feature strong { display: block; margin-bottom: 0.25rem; }
.docs-upsell__feature span { font-size: 0.85rem; opacity: 0.85; }
.docs-upsell .docs-btn--primary { background: #fff; color: #7c3aed; font-size: 1.05rem; padding: 0.85rem 2rem; }
.docs-upsell .docs-btn--primary:hover { background: #f3f4f6; }

@media (max-width: 640px) {
  .docs-hero { padding: 1.5rem 1.25rem; }
  .docs-hero__title { font-size: 1.5rem; }
  .docs-tracker-header { flex-direction: column; align-items: stretch; }
  .docs-actions { justify-content: stretch; }
  .docs-actions .docs-btn { flex: 1; justify-content: center; }
}
