@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Sora:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg-dark: #030706;
  --bg-card: rgba(6, 20, 16, 0.75);
  --bg-card-hover: rgba(12, 38, 30, 0.85);
  --bg-modal: #060c0a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 214, 139, 0.5);
  --primary: #00b171;
  --primary-light: #00d68b;
  --primary-gradient: linear-gradient(135deg, #00b171 0%, #00d68b 100%);
  --neon-glow: radial-gradient(circle at 15% 15%, rgba(0, 214, 139, 0.12) 0%, transparent 45%), radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.10) 0%, transparent 45%);
  --success: #00d68b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --purple: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a3b8b0;
  --text-muted: #5b7067;
  --font-sans: "Sora", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Barlow Condensed", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 0 20px rgba(0, 214, 139, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-image: var(--neon-glow);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 20, 16, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 214, 139, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 214, 139, 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* Layout */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
  gap: 16px;
}

/* Header Navbar */
.app-header {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 214, 139, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 7, 6, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

.client-selector label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.client-select-input {
  background: transparent;
  border: none;
  color: var(--primary-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.client-select-input option {
  background: var(--bg-modal);
  color: var(--text-primary);
}

.nav-tabs {
  display: flex;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #030706;
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(0, 214, 139, 0.3);
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.user-role {
  font-size: 0.65rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #030706;
  box-shadow: 0 4px 14px rgba(0, 214, 139, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 214, 139, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 214, 139, 0.3);
}

.btn-success {
  background: #00d68b;
  color: #030706;
}
.btn-success:hover {
  background: #00ea99;
  box-shadow: 0 4px 14px rgba(0, 214, 139, 0.4);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
  background: rgba(245, 158, 11, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Glass Card Container */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}
.glass-card:hover {
  border-color: rgba(0, 214, 139, 0.2);
}

/* LOGIN VIEW STYLES */
.login-view-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-modal);
  border: 1px solid rgba(0, 214, 139, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 214, 139, 0.15);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.login-logo {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 214, 139, 0.5));
}

.quick-demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.quick-demo-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

/* FILE UPLOAD DROPZONE STYLES */
.file-dropzone {
  border: 2px dashed rgba(0, 214, 139, 0.3);
  background: rgba(3, 7, 6, 0.6);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--primary-light);
  background: rgba(0, 214, 139, 0.06);
}

.dropzone-icon {
  font-size: 2rem;
  color: var(--primary-light);
}

.dropzone-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.media-preview-item img, .media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.65rem;
}

/* COMMENT ATTACHMENT BADGE */
.comment-attachment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 214, 139, 0.1);
  border: 1px solid rgba(0, 214, 139, 0.3);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-top: 6px;
  text-decoration: none;
}
.comment-attachment-badge:hover {
  background: rgba(0, 214, 139, 0.2);
}

.comment-attachment-preview {
  max-width: 140px;
  max-height: 100px;
  border-radius: 6px;
  object-fit: cover;
  margin-top: 6px;
  border: 1px solid var(--border-color);
}

/* CALENDAR VIEW STYLES - FIXED UNIFORM CELL SIZING */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-month-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.calendar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day-head {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px;
}

/* Fixed Equal Height & Width Cells for All Days */
.calendar-cell {
  height: 135px;
  min-height: 135px;
  max-height: 135px;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow-y: auto;
  transition: all 0.2s ease;
}

.calendar-cell:hover {
  border-color: rgba(0, 214, 139, 0.4);
  background: rgba(6, 20, 16, 0.85);
}

.calendar-cell.other-month {
  opacity: 0.25;
  pointer-events: none;
}

.calendar-cell.today {
  border-color: var(--primary-light);
  background: rgba(0, 214, 139, 0.06);
  box-shadow: inset 0 0 12px rgba(0, 214, 139, 0.1);
}

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

.cell-date-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.cell-add-btn {
  background: rgba(0, 214, 139, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 214, 139, 0.3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-cell:hover .cell-add-btn {
  opacity: 1;
}

.cell-add-btn:hover {
  background: var(--primary-gradient);
  color: #030706;
  transform: scale(1.1);
}

.calendar-post-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
  transition: all 0.2s ease;
}

.calendar-post-card:hover {
  background: rgba(0, 214, 139, 0.12);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.calendar-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.calendar-post-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-post-title {
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

/* Page Views Layout */
.page-view {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-view.active {
  display: block;
}

/* Top Banner / Summary Header */
.client-profile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.client-meta-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  padding: 2px;
  background: var(--bg-dark);
}

.client-details h2 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.client-handle {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.approval-stats-pills {
  display: flex;
  gap: 12px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 90px;
}

.stat-pill-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-pill-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Status Colors */
.badge-pending { color: var(--warning); background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { color: var(--success); background: rgba(0, 214, 139, 0.15); border: 1px solid rgba(0, 214, 139, 0.3); }
.badge-revision { color: var(--info); background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-rejected { color: var(--danger); background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Instagram Feed Grid View */
.instagram-feed-container {
  max-width: 935px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Simulated Instagram Profile Header */
.ig-profile-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.ig-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.ig-profile-username-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ig-username {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ig-stats-row {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.ig-stats-row span {
  color: var(--text-secondary);
}
.ig-stats-row strong {
  color: var(--text-primary);
  margin-right: 4px;
}

.ig-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Filter Subnav */
.feed-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--primary-gradient);
  color: #030706;
  border-color: transparent;
}

/* 3x3 Instagram Post Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ig-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #020403;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ig-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border-color: var(--primary-light);
}

.ig-grid-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-grid-item:hover .ig-grid-media {
  transform: scale(1.04);
}

.ig-post-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(3, 7, 6, 0.85);
  backdrop-filter: blur(4px);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 6, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-grid-item:hover .ig-grid-overlay {
  opacity: 1;
}

.ig-overlay-status {
  align-self: flex-start;
}

.ig-overlay-caption {
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Modal - Instagram Post Preview */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ig-modal-box {
  background: var(--bg-modal);
  border: 1px solid rgba(0, 214, 139, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 214, 139, 0.15);
  width: 100%;
  max-width: 1050px;
  height: 85vh;
  max-height: 720px;
  display: flex;
  overflow: hidden;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Left side: Simulated Phone / Media Viewer */
.ig-modal-media-stage {
  flex: 1.3;
  background: #020403;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.media-viewer-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-viewer-container img,
.media-viewer-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Carousel Slider Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(3, 7, 6, 0.75);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.carousel-nav-btn:hover {
  background: var(--primary);
  color: #030706;
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(3, 7, 6, 0.7);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--primary-light);
  width: 16px;
  border-radius: 4px;
}

.carousel-counter-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(3, 7, 6, 0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  z-index: 10;
}

/* Reels Simulated Player Controls */
.reels-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.reels-audio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.reels-sound-icon {
  background: rgba(3, 7, 6, 0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Right Side: Post Details & Approval Flow */
.ig-modal-details-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-color);
}

.ig-modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-light);
}

.ig-user-info-text {
  display: flex;
  flex-direction: column;
}

.ig-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ig-post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ig-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ig-caption-box {
  background: rgba(3, 7, 6, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}

.ig-caption-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.ig-caption-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.ig-hashtags {
  color: var(--primary-light);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Feedback & Comments Log */
.comments-log-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comments-log-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Modal Bottom Action Bar (Approve / Reject / Revise) */
.ig-modal-action-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(3, 7, 6, 0.95);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.comment-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-textarea {
  flex: 1;
  background: rgba(3, 7, 6, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  resize: none;
  height: 40px;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--primary-light);
}

/* Analytics Dashboard */
.analytics-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-icon {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.metric-delta {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--danger); }

.sparkline-svg {
  width: 100%;
  height: 35px;
  margin-top: 4px;
}

/* Analytics Charts & Table Row */
.charts-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.chart-card-large {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.custom-table th {
  text-align: left;
  padding: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tr:hover {
  background: rgba(0, 214, 139, 0.05);
}

/* Admin Drawer & Modal Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-control {
  background: rgba(3, 7, 6, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(0, 214, 139, 0.2);
}

select.form-control option {
  background: var(--bg-modal);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .charts-split-grid {
    grid-template-columns: 1fr;
  }
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ig-modal-box {
    flex-direction: column;
    height: 90vh;
    max-height: none;
  }
  .ig-modal-media-stage {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .ig-profile-card {
    flex-direction: column;
    text-align: center;
  }
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approval-buttons-row {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    font-size: 0.7rem;
  }
}

/* ADMIN SUB-NAVIGATION TABS */
.admin-subnav-bar {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-bottom: 20px;
}

.admin-subnav-btn {
  flex: 1;
  background: rgba(3, 7, 6, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.admin-subnav-btn:hover {
  background: rgba(0, 214, 139, 0.1);
  color: var(--primary-light);
  border-color: rgba(0, 214, 139, 0.3);
}

.admin-subnav-btn.active {
  background: var(--primary-gradient);
  color: #030706;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 214, 139, 0.35);
}

.admin-subtab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-subtab-content.active {
  display: block;
}

