/* ==========================================================================
   ISLAMI COMICS - ANNOUNCEMENTS (CREATOR SELLER CENTER) STYLESHEET
   Matching Mockup Image 13 Pixel-Perfect Design
   ========================================================================== */

.announcements-page-body {
  background-color: #f5f8f6;
}

.announcements-main-stage {
  padding-bottom: 40px;
}

/* Header Top CTA Button */
.btn-create-announcement-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #064e3b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(6, 78, 59, 0.2);
  transition: all 0.2s;
}

.btn-create-announcement-cta:hover {
  background: #04382a;
  transform: translateY(-1px);
}

/* ==========================================================================
   1. TOP 5 METRIC SUMMARY CARDS (5-GRID)
   ========================================================================== */
.announcements-metrics-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.announcement-metric-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.icon-teal { background: #ccfbf1; color: #0d9488; }

.card-meta-wrap {
  min-width: 0;
  flex: 1;
}

.card-label-small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
}

.card-val-bold {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.card-sub-description {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-growth-text {
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.growth-up {
  color: #10b981;
}

.growth-up i {
  font-size: 8.5px;
}

/* ==========================================================================
   2. MAIN 2-COLUMN LAYOUT
   ========================================================================== */
.announcements-layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.announcements-table-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-width: 0;
}

.announcements-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ==========================================================================
   3. TOOLBAR TABS & CONTROLS (SEBARIS)
   ========================================================================== */
.table-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
  flex-wrap: nowrap;
}

.table-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}

.table-filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-tab-btn:hover {
  color: var(--text-main);
}

.filter-tab-btn.active {
  color: var(--emerald-dark);
  border-bottom-color: var(--emerald);
  font-weight: 800;
}

.announcements-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.select-announce-type {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.select-announce-type:hover {
  border-color: var(--emerald);
}

.btn-date-range-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-date-range-picker:hover {
  border-color: var(--emerald);
  background: #f8faf9;
}

.btn-toolbar-filter {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-toolbar-filter:hover {
  background: #f8faf9;
  border-color: var(--emerald);
}

/* ==========================================================================
   4. ANNOUNCEMENTS DATA TABLE
   ========================================================================== */
.announcements-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 820px;
}

.announcements-data-table thead tr {
  background: #fbfdfc;
  border-bottom: 1px solid var(--card-border);
}

.announcements-data-table th {
  padding: 11px 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
}

.announcements-data-table tbody tr.announce-row {
  border-bottom: 1px solid #f1f5f3;
  transition: background 0.15s;
}

.announcements-data-table tbody tr.announce-row:hover {
  background: #f9fbf9;
}

.announcements-data-table td {
  padding: 14px 14px;
  vertical-align: middle;
  font-size: 12px;
}

/* Announcement Info Cell */
.announce-cell-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 320px;
}

.announce-thumb-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.thumb-green { background: #dcfce7; color: #15803d; }
.thumb-amber { background: #fef3c7; color: #d97706; }
.thumb-blue { background: #dbeafe; color: #2563eb; }
.thumb-emerald { background: #d1fae5; color: #047857; }
.thumb-orange { background: #ffedd5; color: #ea580c; }
.thumb-purple { background: #ede9fe; color: #7c3aed; }
.thumb-red { background: #fee2e2; color: #dc2626; }

.announce-text-meta {
  min-width: 0;
}

.announce-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges for Type */
.badge-type-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.type-promotion { background: #ecfdf5; color: #059669; }
.type-update { background: #eff6ff; color: #2563eb; }
.type-system { background: #f5f3ff; color: #7c3aed; }
.type-event { background: #fff7ed; color: #ea580c; }
.type-new-release { background: #f0fdfa; color: #0d9488; }
.type-survey { background: #fdf2f8; color: #db2777; }
.type-notice { background: #fefce8; color: #ca8a04; }

/* Status Dot Pill */
.status-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-published { color: #047857; }
.status-published .s-dot { background: #10b981; }

.status-scheduled { color: #2563eb; }
.status-scheduled .s-dot { background: #3b82f6; }

.status-archived { color: #64748b; }
.status-archived .s-dot { background: #94a3b8; }

/* Audience */
.audience-cell {
  font-size: 11.5px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.audience-cell i {
  color: #94a3b8;
  font-size: 11px;
}

/* Views & Date */
.td-views-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.td-date-cell {
  white-space: nowrap;
}

.date-main {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.date-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* Actions Cell */
.td-actions-cell {
  white-space: nowrap;
}

.btn-action-edit, .btn-action-more {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-sub);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.btn-action-edit:hover, .btn-action-more:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

/* ==========================================================================
   5. RIGHT COLUMN: 3 CARDS
   ========================================================================== */

/* Card 1: Performance */
.performance-chart-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.perf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.perf-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.select-perf-range {
  background: #f8faf9;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.perf-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: 12px;
}

.perf-3stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f3;
}

.perf-mini-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-mini-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.p-mini-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.p-mini-growth {
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Card 2: Types Donut */
.announce-types-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.types-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.types-donut-center-wrap {
  position: relative;
  width: 115px;
  height: 115px;
  margin: 0 auto 12px auto;
}

.types-legend-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.type-leg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.t-left {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-sub);
}

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-promo { background: #10b981; }
.dot-update { background: #2563eb; }
.dot-event { background: #ea580c; }
.dot-system { background: #8b5cf6; }
.dot-notice { background: #f59e0b; }
.dot-survey { background: #ec4899; }

.t-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.t-right strong { color: var(--text-main); }
.cnt { font-size: 9.5px; color: var(--text-muted); }

/* Card 3: Tips */
.announcements-tips-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.tips-head-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.tips-bulb-icon {
  font-size: 14px;
  color: #047857;
}

.tips-title-text {
  font-size: 13px;
  font-weight: 800;
  color: #047857;
}

.tips-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tip-check-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #065f46;
  line-height: 1.35;
}

.tip-green-check {
  font-size: 10px;
  color: #059669;
  margin-top: 2px;
  flex-shrink: 0;
}

.tips-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tips-learn-link {
  font-size: 11.5px;
  font-weight: 800;
  color: #047857;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tips-learn-link:hover {
  text-decoration: underline;
}

.floating-megaphone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #a7f3d0;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.6;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1240px) {
  .announcements-metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .announcements-layout-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .announcements-metrics-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .announcements-toolbar-right {
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .announcements-metrics-grid-5 {
    grid-template-columns: 1fr;
  }
}
