scheduler.css    /* Update this portion of your scheduler.css file */

/* General Layout & Colors */
body {
  background: #0d0f1a;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #e0e0e0;
}

:root {
  --accent-gradient: linear-gradient(135deg, #35cafc, #7D3CF6, #6A11CB);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-light: #f0f0f0;
  --text-muted: #999;
  --hover-bg: rgba(125, 60, 246, 0.25);
  --today-ring: #FFB531;
}

/* Main Dashboard Container */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr; /* Sidebar fixed width, content flexible */
  min-height: auto !important;
  height: auto !important;
  margin-top: 10px !important; /* small professional gap */
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  max-width: 1400px; /* keeps calendar smaller than full page */
  margin: 0 auto;    /* centers it nicely */
}

/* Sidebar Styling */
.scheduler-sidebar {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* fixes overflow */
  height: fit-content;
}

.sidebar-content {
  position: sticky;
  top: 24px;
}

.scheduler-sidebar h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scheduler-sidebar .intro-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ------------------- NEW STATS CARD STYLES ------------------- */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.stats-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 5px;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2); /* 👈 add border */
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-gradient); /* 👈 glow border on hover */
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}
/* ----------------------------------------------------------- */

/* Sidebar CTA button */
.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%; /* ensures button never overflows */
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  box-sizing: border-box;
  margin-top: 20px; /* spacing from stats card */
}
.sidebar-cta:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Content Area */
.scheduler-main-content {
  padding: 0;
  min-width: 0;          /* prevents horizontal scroll */
  overflow-x: hidden;
}

/* Calendar container */
.scheduler-container {
  padding: 24px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 1000px; /* keeps calendar neat and smaller than screen */
  margin: 0 auto;
}

.scheduler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.scheduler-left, .scheduler-right { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.nav-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.25s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); }

.month-title {
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.view-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
}
.view-btn {
  padding: 10px 16px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.25s ease;
}
.view-btn.active {
  background: var(--accent-gradient);
  color: white;
}

.new-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.new-post-btn:hover { transform: scale(1.05); }

.calendar-wrap {
  margin-top: 10px;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 10px;
}
.weekday {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

/* Day cell */
.day-cell {
  min-height: 80px;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.day-cell:hover {
  background: var(--hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(125, 60, 246, 0.4);
}
.day-cell.today {
  border: 2px solid var(--today-ring);
  box-shadow: 0 0 12px rgba(255,181,49,0.5);
}
.day-cell.muted { opacity: 0.4; }

.day-number {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.posts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.day-empty { font-size: 0.75rem; color: var(--text-muted); }

/* Post pill */
.post-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.post-pill:hover { transform: scale(1.05); }

.post-instagram { background: #E1306C !important; }
.post-facebook { background: #1877F2 !important; }
.post-linkedin { background: #0077B5 !important; }

/* Media Query for smaller screens */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}
/* ------------------- ONBOARDING MODAL STYLES ------------------- */

/* The Modal Container */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; /* Ensure it's above everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Darkened Background Overlay */
.onboarding-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* The Content Box */
.onboarding-content {
    background: #1e1e2d; /* A dark, distinct background */
    color: var(--text-light);
    border-radius: 18px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.onboarding-content h2 {
    color: #35cafc; /* Use an accent color */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.onboarding-content h4 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.onboarding-step p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-indicator {
    font-weight: 600;
    color: var(--text-light);
}

/* Highlighting the target elements */
.highlight-target {
    position: relative;
    box-shadow: 0 0 0 4px #35cafc, 0 0 15px 8px #35cafc !important; /* Visible pulse effect */
    z-index: 999; /* Ensure the button is above other things */
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 0 4px #35cafc, 0 0 15px 5px rgba(53, 202, 252, 0.5); }
    to { box-shadow: 0 0 0 4px #7D3CF6, 0 0 25px 10px rgba(125, 60, 246, 0.8); }
}

/* Ensure buttons are visible on the modal footer */
.onboarding-footer .btn-primary,
.onboarding-footer .btn-secondary {
    padding: 8px 16px;
    font-size: 0.9rem;
}
/* --- Base Button Styles for the Onboarding Modal --- */

/* Primary Button (Start, Next, Done) */
.btn-primary {
    /* Use the gradient defined in your :root */
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px; /* Set a modern rounded border */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Secondary Button (Back, Skip) */
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 12px; /* Set a modern rounded border */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ensure buttons are visible on the modal footer (already added, but check again) */
.onboarding-footer .btn-primary,
.onboarding-footer .btn-secondary {
    padding: 10px 20px; /* Consistent padding */
    font-size: 0.95rem;
    /* The 12px border-radius from above will apply here */
}
/* --- AI Suggested Time Badge (Scheduler UVP) --- */
.ai-suggestion {
    display: inline-block;
    margin-left: 15px;
    padding: 4px 8px;
    background-color: #35cafc; /* Sky Blue accent */
    color: #0d0f1a; /* Dark text for contrast */
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ai-suggestion:hover {
    background-color: #7D3CF6; /* Hover to a different accent color */
    color: white;
}
/* ==============================
   Scheduler – Campaign Template Styles
   ============================== */
#campaignTemplate {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e1e;
  color: #f0f0f0;
  font-size: 1rem;
}

.template-note {
  color: #aaa;
  font-size: 0.9rem;
}
/* ==============================
   Scheduler – Time Picker Styles
   ============================== */
.schedule-time-input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1e1e1e;
  color: #f0f0f0;
  font-size: 1rem;
}

.schedule-time-input:focus {
  outline: none;
  border-color: #666;
}
/* ==============================
   Scheduler – Typing Animation Styles
   ============================== */

/* Defines the keyframes for the blinking cursor */
@keyframes blink-cursor {
  50% { border-right-color: transparent; }
}

/* Style for the caption-input when text is being typed */
.caption-input.typing {
  /* This creates the vertical bar cursor effect */
  border-right: 2px solid var(--text-light, #f0f0f0);
  /* The animation makes the cursor blink */
  animation: blink-cursor 0.75s step-end infinite;
}

/* Ensure the cursor disappears once typing is complete (the .prefilled class is added) */
.caption-input.prefilled {
  border-right-color: transparent !important;
  animation: none !important;
}
.predictive-score-box {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color:  #FFD700;           /* bright green for good visibility */
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}
/* ===============================
   Scheduler – LinkedIn Pro Tip Style (High Contrast)
   =============================== */
.linkedin-pro-tip {
    /* Subtle blue background remains for the professional look */
    background: rgba(10, 102, 194, 0.15); 
    
    /* Change text color to a bright, contrasting warning/hint color */
    color: #FFD700; /* Gold/Yellow for maximum attention */
    
    border-radius: 8px; /* Slightly larger radius for a modern feel */
    padding: 10px 15px;
    font-size: 0.9rem; /* Slightly larger text */
    font-weight: 600; /* Bolder text */
    margin-top: 12px;
    
    /* Stronger, bolder left border using the LinkedIn Blue */
    border-left: 6px solid #0A66C2; 
    
    /* Add a subtle box-shadow for a 'glow' effect */
    box-shadow: 0 0 8px rgba(10, 102, 194, 0.4); 
    
    transition: all 0.3s ease;
}

.linkedin-pro-tip strong {
    /* Keep the bold keyword bright white */
    color: #f0f0f0; 
    font-weight: 800;
}


/* ==============================
   DRAFTS MODAL (STRICT ISOLATION)
   ============================== */
#drafts-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none; /* Controlled by JS */
  justify-content: center;
  align-items: center;
}

.drafts-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.drafts-modal-content {
  position: relative;
  background: #1e1e2d;
  color: var(--text-light);
  border-radius: 18px;
  padding: 30px;
  width: 90%;
  max-width: 600px; /* Wider for drafts */
  z-index: 2001;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

#close-drafts-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.drafts-modal-content h2 {
  color: #35cafc;
  margin-top: 0;
}

#drafts-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.draft-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.draft-card:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
  border-color: #7D3CF6;
}
.draft-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 213, 79, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.draft-card:hover {
  background: rgba(255, 213, 79, 0.1);
  transform: translateY(-2px);
}

.draft-card p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #fff;
}

.draft-card small {
  color: #ffd54f;
  font-weight: bold;
}
/* Add these to your existing platform colors */
.post-short-viral-post { background: #C13584 !important; } /* Pink like Instagram */
.post-professional-article { background: #0A66C2 !important; } /* Blue like LinkedIn */
.post-thread-style { background: #4267B2 !important; } /* Blue like Facebook */

/* Add a fallback so it's never invisible */
.post-pill {
    background: #444; /* Default dark grey if nothing matches */
    min-width: 50px;
    min-height: 20px;
}
/* Glassmorphism Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%; max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex !important;
    justify-content: space-between !important; /* Pushes content to the edges */
    align-items: center !important;
    width: 100% !important;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-time { color: #FFD54F; font-size: 0.9rem; margin-bottom: 10px; }
.modal-content-box { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 15px; border-radius: 10px; 
    max-height: 200px; overflow-y: auto; 
    line-height: 1.6; border: 1px solid rgba(255,255,255,0.05);
}

.modal-footer { display: flex; gap: 10px; margin-top: 25px; }
.btn-edit { background: #00E5FF; color: #000; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; flex: 1; }
.btn-delete { 
    background: transparent; 
    color: rgba(255,255,255,0.4); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.btn-delete:hover { 
    color: #ff4444; 
    border-color: #ff4444; 
    background: rgba(255, 68, 68, 0.05);
}
.close-modal {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    transition: color 0.2s;
    padding: 5px;
    line-height: 1;
}
.close-modal:hover {
    color: #fff;
}
/* Drag and Drop Visual Cues */
.post-pill {
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.post-pill:active {
    cursor: grabbing;
}

.post-pill.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Highlight the day cell when hovering a dragged post over it */
.day-cell.drag-over {
    background: rgba(0, 229, 255, 0.1) !important;
    border: 2px dashed #00E5FF !important;
}
/* Color for your specific post type */
.post-short-viral-post {
    background: #E1306C;
    color: white;
}
.calendar-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(125, 60, 246, 0.3);
}

/* The magic logic: hide pills that don't match the filter */
.filtering-instagram .post-pill:not(.post-instagram) { display: none; }
.filtering-facebook .post-pill:not(.post-facebook) { display: none; }
.filtering-linkedin .post-pill:not(.post-linkedin) { display: none; }
/* The Plus Button inside the day cell */
.day-cell {
    position: relative; /* Required for absolute positioning of the plus */
}

.day-plus-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none; /* So it doesn't block clicking the cell itself */
}

.day-cell:hover .day-plus-btn {
    opacity: 1; /* Show on hover */
    transform: scale(1.2);
}
/* FORCE the header to spread out */
.modal-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure the X looks like a button on the right */
.close-modal {
    margin-left: auto; /* Pushes it to the right even if flex fails */
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #999;
}
/* Fix for invisible dropdown text */
#postPlatformSelect option {
    background-color: #1a1c2c; /* Matches your modal background */
    color: white;              /* Ensures text is visible */
    padding: 10px;
}
#useSuggestedTimeBtn {
    transition: all 0.3s ease;
}
#useSuggestedTimeBtn i {
    margin-right: 8px;
    color: #00E5FF;
}
/* ===== REELS & STORIES CONTENT TYPE SELECTOR ===== */

.content-type-selector {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.content-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #999;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.content-type-btn i {
  font-size: 1.1rem;
}

.content-type-btn:hover {
  border-color: rgba(0,229,255,0.4);
  color: #00E5FF;
  background: rgba(0,229,255,0.06);
}

/* Active = selected type */
.content-type-btn.active {
  border-color: #00E5FF;
  background: rgba(0,229,255,0.12);
  color: #00E5FF;
  box-shadow: 0 0 12px rgba(0,229,255,0.2);
}

/* Reel active = purple gradient (matches Instagram Reels branding) */
.content-type-btn.active[data-type="reel"] {
  border-color: #C13584;
  background: rgba(193,53,132,0.15);
  color: #f77ab3;
  box-shadow: 0 0 12px rgba(193,53,132,0.3);
}

/* Story active = orange (matches Instagram Stories ring color) */
.content-type-btn.active[data-type="story"] {
  border-color: #FFB531;
  background: rgba(255,181,49,0.12);
  color: #FFB531;
  box-shadow: 0 0 12px rgba(255,181,49,0.25);
}

/* Reel Cover Preview */
.reel-cover-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.reel-cover-preview img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #C13584;
}

.cover-label {
  font-size: 0.78rem;
  color: #f77ab3;
  font-weight: 700;
}

/* Story Info Box */
.story-info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,181,49,0.08);
  border: 1px solid rgba(255,181,49,0.2);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.82rem;
  color: #e0e0e0;
  line-height: 1.5;
}

.story-info-box i {
  color: #FFB531;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.story-info-box strong {
  display: block;
  color: #FFB531;
  margin-bottom: 3px;
}

.story-info-box p {
  margin: 0;
  color: #aaa;
}

/* ===== END REELS & STORIES ===== */

/* --- DRAG OVER TARGET OVERRIDES --- */
.day-cell {
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Ensure inline background changes dynamically show through during drag operations */
.day-cell[style*="rgba(0, 229, 255"] {
    border: 2px dashed #00E5FF !important;
    background-color: rgba(0, 229, 255, 0.15) !important;
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.25) !important;
}
/* ==========================================================================
TWIN-CLOUDS VISUAL FEED PLANNER
CLEAN SINGLE SOURCE OF TRUTH
========================================================================== */

.visual-feed-planner {
width: 100%;
padding: 16px;
box-sizing: border-box;
}

#real-posts-area {
display: grid !important;
  grid-template-columns:
        repeat(auto-fill, minmax(140px, 1fr))
        !important;
gap: 12px !important;


width: 100% !important;
 padding:12px !important;
box-sizing: border-box !important;

align-items: stretch !important;
justify-items: stretch !important;


}

#real-posts-area .instagram-post-card.real-post {
position: relative !important;
width: 100% !important;

aspect-ratio: 1 / 1 !important;

overflow: hidden !important;

    border: 2px dashed #00E5FF !important;
border-radius: 8px !important;

background: #1c1c1e !important;
 padding: 4px !important;
 box-sizing: border-box !important;

}

#real-posts-area .ig-post-pill {
position: relative !important;
width: 100% !important;
height: 100% !important;
}

.main-feed-media,
#real-posts-area img,
#real-posts-area video {
position: absolute !important;
inset: 0 !important;


width: 100% !important;
height: 100% !important;

object-fit: cover !important;
display: block !important;


}

.media-placeholder {
position: absolute !important;
inset: 0 !important;


display: flex !important;
align-items: center !important;
justify-content: center !important;

background: #2c2c2e !important;
color: #8e8e93 !important;


}

.overlay {
position: absolute !important;
inset: 0 !important;


display: flex !important;
align-items: center !important;
justify-content: center !important;

background: rgba(0,0,0,.5) !important;

opacity: 0;
transition: opacity .2s ease;


}

.instagram-post-card:hover .overlay {
opacity: 1;
}

.placeholder-content {
grid-column: 1 / -1 !important;
}
.visual-feed-planner {
    padding: 20px !important;
    box-sizing: border-box !important;
}

#real-posts-area {
    margin-right: 12px !important;
}
.feed-preview-section {
    overflow:hidden !important;
    box-sizing:border-box !important;
}
/* ==========================================================================
   MOBILE TOUCH OPTIMIZATION GATEWAY
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent the layout from collapsing on narrow screens */
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 16px !important;
    }

    /* Expand button touch zones to meet standard accessibility guidelines (minimum 44px) */
    button, 
    .instagram-post-card,
    .nav-links a {
        min-height: 44px !important;
        padding: 12px !important;
    }

    /* Make the calendar grid easily scrollable on mobile screens */
    .calendar-grid {
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
    }
}