/**
 * businessplan-text.css
 * Styling für Businessplan-Text Generator
 */

/* =========================
   Project Selection Section
   ========================= */
#projectSelect {
  font-size: 16px;
  padding: 10px;
}

#loadProjectBtn {
  width: 100%;
  padding: 10px;
  font-weight: 600;
}

/* =========================
   Project Info & Stats
   ========================= */
.page-title-box {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #313a46;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

/* Stats Display */
dl.row dt {
  font-weight: 600;
  color: #6c757d;
}

dl.row dd {
  color: #313a46;
}

/* =========================
   Chapter Cards
   ========================= */
#chaptersList .card {
  border: 1px solid #e3e6f0;
  border-radius: 8px;
  transition: box-shadow 0.2s ease-in-out;
}

#chaptersList .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #313a46;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
}

/* Status Badges */
.badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}

/* =========================
   Action Buttons
   ========================= */
.btn-group {
  display: flex;
  gap: 5px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

.btn-primary {
  background-color: #727cf5;
  border-color: #727cf5;
}

.btn-primary:hover {
  background-color: #5b64d6;
  border-color: #5b64d6;
}

.btn-success {
  background-color: #0acf97;
  border-color: #0acf97;
}

.btn-success:hover {
  background-color: #08b381;
  border-color: #08b381;
}

.btn-info {
  background-color: #39afd1;
  border-color: #39afd1;
}

.btn-info:hover {
  background-color: #2d91af;
  border-color: #2d91af;
}

.btn-danger {
  background-color: #fa5c7c;
  border-color: #fa5c7c;
}

.btn-danger:hover {
  background-color: #f83e63;
  border-color: #f83e63;
}

/* =========================
   Modals
   ========================= */
.modal-header {
  background-color: #727cf5;
  color: #fff;
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
  font-size: 18px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid #e3e6f0;
  padding: 16px 24px;
}

.form-label {
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: #727cf5;
  box-shadow: 0 0 0 0.2rem rgba(114, 124, 245, 0.25);
}

/* =========================
   Generate Content Modal
   ========================= */
#generateModal .form-label {
  font-size: 13px;
  margin-bottom: 4px;
}

#generateModal .form-control,
#generateModal textarea {
  font-size: 13px;
}

#generateModal h6 {
  font-weight: 600;
  color: #313a46;
  margin-bottom: 16px;
  font-size: 15px;
}

#generateSpinner {
  margin-right: 8px;
}

/* =========================
   Upload Media Modal
   ========================= */
#uploadProgress .progress {
  height: 24px;
  border-radius: 4px;
}

#uploadProgress .progress-bar {
  font-size: 13px;
  font-weight: 600;
}

#uploadResults {
  max-height: 300px;
  overflow-y: auto;
}

#uploadResults .alert {
  margin-bottom: 12px;
}

#uploadResults h6 {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

#uploadResults ul {
  margin: 0;
  padding-left: 0;
}

#uploadResults li {
  padding: 4px 0;
  font-size: 13px;
}

/* =========================
   Empty States
   ========================= */
.text-muted {
  color: #98a6ad !important;
  font-size: 14px;
}

#chaptersList p.text-muted {
  text-align: center;
  padding: 40px 20px;
  font-size: 15px;
}

/* =========================
   Icons
   ========================= */
.mdi {
  font-size: 16px;
  vertical-align: middle;
}

.btn .mdi {
  margin-right: 4px;
}

.card-body .mdi {
  margin-right: 6px;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .btn-sm {
    width: 100%;
  }

  #projectSelect {
    margin-bottom: 12px;
  }

  #loadProjectBtn {
    margin-top: 12px;
  }

  .card-title {
    font-size: 16px;
  }
}

/* =========================
   Loading States
   ========================= */
.spinner-border {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner-border-sm {
  width: 14px;
  height: 14px;
}

/* =========================
   Utility Classes
   ========================= */
.d-none {
  display: none !important;
}

.d-grid {
  display: grid !important;
}

.gap-2 {
  gap: 8px !important;
}

.mb-3 {
  margin-bottom: 16px !important;
}

.mt-3 {
  margin-top: 16px !important;
}

.w-100 {
  width: 100% !important;
}

/* =========================
   Success/Error States
   ========================= */
.text-success {
  color: #0acf97 !important;
}

.text-danger {
  color: #fa5c7c !important;
}

.alert-success {
  background-color: #d4f4e8;
  border-color: #0acf97;
  color: #067554;
}

.alert-danger {
  background-color: #fde4e8;
  border-color: #fa5c7c;
  color: #d9304e;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

/* =========================
   Content Status Icons
   ========================= */
.mdi-check-circle {
  color: #0acf97;
}

.mdi-alert-circle {
  color: #fa5c7c;
}

/* =========================
   Card Hover Effects
   ========================= */
.card {
  transition: all 0.2s ease-in-out;
}

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

/* =========================
   Action Button Spacing
   ========================= */
.d-flex.justify-content-between {
  align-items: flex-start;
}

.d-flex.justify-content-between .btn-group {
  flex-shrink: 0;
}
