/* === Afrikaner Facebook Smart Scheduler Frontend CSS === */

/* Dashboard Container */
#afss-dashboard {
  max-width: 780px;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
  padding: 32px 26px 30px 26px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Navigation */
.afss-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.afss-nav-btn {
  padding: 8px 20px;
  background: #f6f8fa;
  border: none;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  cursor: pointer;
  color: #222;
  transition: background 0.16s;
  font-size: 16px;
  outline: none;
}
.afss-nav-btn.active,
.afss-nav-btn:hover {
  background: #2c72e8;
  color: #fff;
}

/* Tabs Content */
.afss-tab-section { display: none; }
.afss-tab-section.active { display: block; }

/* Stepper Header */
.afss-stepper-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 6px;
}
.afss-step {
  padding: 6px 16px;
  border-radius: 18px;
  background: #f3f5fa;
  color: #767b8e;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.afss-step.active {
  background: #2c72e8;
  color: #fff;
}

/* Step Content */
.afss-step-content {
  background: #f8fafb;
  border-radius: 10px;
  padding: 22px 18px 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 7px rgba(45,55,72,0.05);
}
#afss-stepper textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  margin: 8px 0 12px 0;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  resize: vertical;
  background: #fff;
}

/* Warnings & Tips */
.afss-warning {
  display: none;
  color: #db2c36;
  background: #fff4f5;
  border-left: 4px solid #db2c36;
  padding: 8px 12px;
  margin: 10px 0 0 0;
  font-size: 15px;
  border-radius: 6px;
}
.afss-warning[style*="display:block"] { display: block; }
.afss-tip {
  background: #f1f8fe;
  border-left: 4px solid #2c72e8;
  padding: 8px 13px;
  margin-bottom: 10px;
  border-radius: 7px;
  font-size: 15px;
  color: #2c72e8;
}

/* Buttons */
.afss-btn, .afss-stepper-next, .afss-stepper-prev {
  display: inline-block;
  padding: 8px 22px;
  background: #2c72e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 7px 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s;
  outline: none;
}
.afss-btn:disabled,
.afss-stepper-next:disabled,
.afss-stepper-prev:disabled {
  background: #a8b8d9 !important;
  cursor: not-allowed;
}
.afss-btn.secondary {
  background: #8f98b2;
}
.afss-btn:hover,
.afss-stepper-next:hover,
.afss-stepper-prev:hover {
  background: #184fa7;
}

/* Image Upload Preview */
#afss-stepper-image-preview {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0;
}
#afss-stepper-image-preview img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e5e9f5;
  background: #f3f6fa;
  box-shadow: 0 2px 10px rgba(44,114,232,0.07);
}

/* Review Carousel */
#afss-batch-review-carousel {
  background: #f4f8ff;
  border-radius: 8px;
  padding: 20px 12px;
  margin-bottom: 18px;
  min-height: 120px;
  font-size: 16px;
}
#afss-batch-review-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Scheduled Posts Table */
#afss-posts-list {
  margin-top: 24px;
}
.afss-posts-table {
  width: 100%;
  border-collapse: collapse;
  background: #fafbfc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(22,52,110,0.04);
  margin-bottom: 18px;
}
.afss-posts-table th,
.afss-posts-table td {
  padding: 11px 10px;
  text-align: left;
  font-size: 15px;
}
.afss-posts-table th {
  background: #edf1f7;
  color: #2c72e8;
  font-weight: bold;
}
.afss-posts-table td {
  background: #fff;
  border-top: 1px solid #e4e7ef;
}

/* Responsive (Mobile) */
@media (max-width: 650px) {
  #afss-dashboard { padding: 10px 2vw; }
  .afss-stepper-header { flex-direction: column; gap: 5px; }
  .afss-step-content { padding: 10px 4vw; }
  .afss-btn, .afss-stepper-next, .afss-stepper-prev { width: 100%; margin: 8px 0 0 0; }
  .afss-posts-table, .afss-posts-table th, .afss-posts-table td { font-size: 14px; }
  #afss-stepper-image-preview img { width: 68px; height: 68px; }
}

/* Misc */
#afss-stepper input[type="file"] {
  margin-top: 8px;
  padding: 2px 0;
}
#afss-stepper input[type="datetime-local"] {
  font-size: 15px;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid #bfc3d3;
  background: #fff;
}
