/* Tabs */
.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: #374151; }
.tab-btn.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-a_valider { background: #fef3c7; color: #92400e; }
.badge-validee   { background: #d1fae5; color: #065f46; }
.badge-rejetee   { background: #fee2e2; color: #991b1b; }
.badge-en_cours  { background: #dbeafe; color: #1e40af; }
.badge-prete     { background: #ede9fe; color: #5b21b6; }
.badge-publiee   { background: #e0e7ff; color: #3730a3; }

/* Format badges */
.badge-reel      { background: #fce7f3; color: #9d174d; }
.badge-carrousel { background: #e0f2fe; color: #0369a1; }

/* Pillar badges */
.badge-pillar    { background: #f3f4f6; color: #374151; }

/* Idea card */
.idea-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.15s;
}
.idea-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Script card */
.script-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.15s;
}
.script-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Buttons */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-validate { background: #d1fae5; color: #065f46; }
.btn-validate:hover { background: #a7f3d0; }
.btn-reject  { background: #fee2e2; color: #991b1b; }
.btn-reject:hover { background: #fecaca; }

/* Modal close */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1.25rem;
}
.modal-close:hover { color: #374151; }

/* Print styles */
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area {
    display: block !important;
    padding: 0;
    margin: 0;
  }
  .print-only { display: block !important; }
  .print-page {
    page-break-after: always;
    padding: 2cm;
    font-family: 'Segoe UI', system-ui, sans-serif;
  }
  .print-page:last-child { page-break-after: auto; }
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #7c3aed;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
  .print-header h1 { font-size: 1.5rem; color: #7c3aed; }
  .print-header .meta { font-size: 0.875rem; color: #6b7280; }
  .print-section { margin-bottom: 1.5rem; }
  .print-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e5e7eb;
  }
  .print-section p, .print-section li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1f2937;
  }
  .print-slide {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .print-slide-num {
    display: inline-block;
    background: #7c3aed;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5rem;
    margin-right: 0.5rem;
  }
  .print-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .print-hashtag {
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #4b5563;
  }
}

/* Hide print area on screen */
@media screen {
  .print-only { display: none !important; }
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 0.7s linear infinite; }

/* Toast animation */
.toast-show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}
