/**
 * Dashboard Page Specific Styles
 * Styles for the MySocialVoice dashboard page
 */

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-page {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    height: 100vh;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: flex-start;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    transition: padding 0.3s ease;
}

@media (max-width: 768px) {
    .dashboard-page {
        flex-direction: column;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.header-content h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== QUICK STATS ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stats-content {
    flex: 1;
}

.stats-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stats-change {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== CARD COMPONENTS ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.voice-filter {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #475569;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.voice-filter:focus {
    outline: none;
    border-color: #667eea;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

/* ===== WEEKLY CALENDAR ===== */
.weekly-calendar-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    border-right: 1px solid #e2e8f0;
}

.day-header:last-child {
    border-right: none;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 200px;
}

.calendar-week-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-week-label {
    letter-spacing: 0.01em;
}

.day-cell {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
    position: relative;
    background-color: white;
    overflow: hidden;
}

.day-cell:last-child {
    border-right: none;
}

.day-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background-color: #f8fafc;
    border-radius: 50%;
}

.day-cell.is-today {
    background-color: #eef2ff;
}

.day-cell.is-today .day-number {
    background-color: #4f46e5;
    color: #ffffff;
}

.post-item {
    margin: 1.25rem 0 0.5rem 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.post-item .event-time {
    font-weight: 600;
    margin-right: 0.5rem;
}

.post-item .event-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item .event-voice {
    font-size: 0.75rem;
    margin-left: auto;
    opacity: 0.8;
}

/* Calendar-style chips */
.calendar-event {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #1e293b;
    min-height: 3rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event i {
    font-size: 0.875rem;
}

.calendar-event.status-scheduled {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1d4ed8;
}

.calendar-event.status-published {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #047857;
}

.calendar-event.status-draft {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #d97706;
}

.calendar-event.status-failed {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

.calendar-event.platform-twitter {
    background: #eef2ff;
    border-left-color: #4f46e5;
    color: #4338ca;
}

.calendar-event.platform-instagram {
    background: #fdf2f8;
    border-left-color: #db2777;
    color: #be185d;
}

.calendar-event.platform-facebook {
    background: #eff6ff;
    border-left-color: #2563eb;
    color: #1d4ed8;
}

.calendar-event.platform-linkedin {
    background: #ecfdf5;
    border-left-color: #059669;
    color: #047857;
}

.calendar-event.platform-tiktok {
    background: #f3f4f6;
    border-left-color: #374151;
    color: #1f2937;
}

.calendar-event .event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-event .event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
}

.calendar-event .event-body > * {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.calendar-event .event-time {
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.calendar-event .event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.calendar-event .event-voice {
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ===== ACTIVITY FEED ===== */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f8fafc;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* Activity icon colors */
.activity-icon.content {
    background-color: #667eea;
}

.activity-icon.publish {
    background-color: #10b981;
}

.activity-icon.voice {
    background-color: #f59e0b;
}

.activity-icon.analytics {
    background-color: #8b5cf6;
}

.activity-icon.schedule {
    background-color: #06b6d4;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #475569;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.modal-actions button {
    width: 100%;
    justify-content: center;
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    gap: 1rem;
}

.screen-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.post-detail-section {
    margin-bottom: 1.5rem;
}

.post-detail-section:last-child {
    margin-bottom: 0;
}

.post-detail-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-detail-content {
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.5;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-detail-platform,
.post-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #0f172a;
}

.post-detail-status.scheduled {
    background: #eff6ff;
    color: #1d4ed8;
}

.post-detail-status.published {
    background: #ecfdf5;
    color: #047857;
}

.post-detail-status.draft {
    background: #fffbeb;
    color: #d97706;
}

.post-detail-status.failed {
    background: #fef2f2;
    color: #dc2626;
}

.link-text {
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.link-text:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1rem 0;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calendar-week {
        min-height: 150px;
    }
    
    .day-cell {
        padding: 0.5rem;
    }
    
    .calendar-event {
        margin: 1rem 0 0.25rem 0;
        padding: 0.375rem;
        font-size: 0.6875rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-event .event-body {
        width: 100%;
    }

    .calendar-event .event-voice {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .day-header {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 0.75rem;
    }
    
    .day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-week {
        min-height: 120px;
    }
    
    .calendar-event {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
    }

    .calendar-event .event-body {
        gap: 0.25rem;
    }

    .calendar-event .event-title {
        display: none;
    }
    
    .activity-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ===== READY TO POST SECTION ===== */
.ready-posts-section,
.todays-schedule-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    font-size: 1.5rem;
    color: #667eea;
}

.section-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.section-title .badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-text:hover {
    background: #f7fafc;
}

.btn-text i {
    font-size: 0.875rem;
}

/* Ready Posts Container */
.ready-posts-container,
.todays-schedule-container {
    display: grid;
    gap: 1rem;
}

.post-card {
    background: #f9fafb;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-card.ready {
    border-left-color: #4CAF50;
    background: linear-gradient(to right, #e8f5e9 0%, #f9fafb 50%);
}

.post-card.due-soon {
    border-left-color: #ff9800;
    background: linear-gradient(to right, #fff8e1 0%, #f9fafb 50%);
}

.post-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.post-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-platform-badge.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.post-platform-badge.facebook {
    background: linear-gradient(135deg, #4267B2 0%, #365899 100%);
}

.post-platform-badge.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.post-platform-badge.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #00669c 100%);
}

.post-time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.post-scheduled-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.post-time-ago {
    font-size: 0.75rem;
    color: #718096;
}

.post-time-ago.overdue {
    color: #f56565;
    font-weight: 600;
}

.post-time-ago.due-soon {
    color: #ed8936;
    font-weight: 600;
}

.post-card-body {
    margin-bottom: 1rem;
}

.post-voice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.post-voice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
}

.post-content {
    color: #2d3748;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-media-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #718096;
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
}

.post-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.post-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-publish {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-snooze {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.btn-snooze:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Snooze Options Dropdown */
.snooze-dropdown {
    position: relative;
    display: inline-block;
}

.snooze-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    z-index: 100;
    display: none;
}

.snooze-options.show {
    display: block;
}

.snooze-option {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4a5568;
    transition: background 0.2s;
}

.snooze-option:hover {
    background: #f7fafc;
}

.snooze-option:first-child {
    border-radius: 8px 8px 0 0;
}

.snooze-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.empty-state .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #718096;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ready-posts-section,
    .todays-schedule-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }

    .post-card {
        padding: 1rem;
    }

    .post-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-time-info {
        align-items: flex-start;
    }

    .post-card-actions {
        flex-direction: column;
    }

    .post-action-btn {
        width: 100%;
        min-width: auto;
    }
}
/* ===== MODAL SCREENS ===== */
.modal-screen {
    padding: 1rem;
}

/* Post Preview Screen */
.post-preview-placeholder,
.manual-posting-placeholder {
    padding: 2rem;
    text-align: center;
}

.post-preview-placeholder h4,
.manual-posting-placeholder h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.post-preview-placeholder p,
.manual-posting-placeholder p {
    margin: 0.5rem 0;
    color: #64748b;
}

.preview-note,
.manual-note {
    margin-top: 2rem !important;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-style: italic;
    color: #64748b;
}

/* Loading and Error States */
.loading-state,
.error-state {
    padding: 3rem 2rem;
    text-align: center;
}

.loading-state i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.error-state i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state p {
    margin: 0.5rem 0;
    color: #1e293b;
}

.error-details {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem !important;
}

.error-state button {
    margin-top: 1rem;
}

/* Modal Title */
#modalTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

/* ===== POST PREVIEW SCREEN ===== */
.modal-preview-screen {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.chat-message {
    margin: 1.5rem 0;
}

.bot-message {
    background: #e3f2fd;
    padding: 1rem 1.5rem;
    border-radius: 18px 18px 18px 4px;
    border-left: 4px solid #2196f3;
    max-width: 85%;
}

.bot-message .message-content p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}
.selected-media-empty {
    font-style: italic;
}

.step-indicator {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.final-preview {
    margin: 0;
}

.final-preview .post-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
    color: #1f2937;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.final-preview .post-content .empty-content {
    color: #94a3b8;
    font-style: italic;
}

.selected-media {
    background: #f8f9ff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.selected-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.selected-media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.selected-media-item .media-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.selected-media-count {
    margin: 12px 0 0 0;
    font-size: 0.85rem;
    font-style: normal;
    color: #475569;
}

.selected-media-empty {
    margin: 0;
}

.preview-details-card {
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.preview-details-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1f2937;
    background: #edf2ff;
}

.detail-icon.voice {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.detail-icon.schedule {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.detail-icon.status {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-text .detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin: 0;
}

.detail-text .detail-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-voice-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-flex;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.detail-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-status-badge.scheduled {
    background: #eff6ff;
    color: #1d4ed8;
}

.detail-status-badge.published {
    background: #ecfdf5;
    color: #047857;
}

.detail-status-badge.draft {
    background: #fffbeb;
    color: #d97706;
}

.detail-status-badge.failed {
    background: #fef2f2;
    color: #b91c1c;
}

.detail-status-badge.cancelled {
    background: #f1f5f9;
    color: #475569;
}

.modal-preview-screen .platform-badge {
    background: rgba(102, 126, 234, 0.12);
    color: #4338ca;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-preview-screen .platform-badge i {
    font-size: 0.95rem;
}

.modal-preview-screen .platform-badge.platform-twitter {
    background: rgba(29, 161, 242, 0.12);
    color: #1da1f2;
}

.modal-preview-screen .platform-badge.platform-facebook {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.modal-preview-screen .platform-badge.platform-instagram {
    background: rgba(228, 64, 95, 0.12);
    color: #e4405f;
}

.modal-preview-screen .platform-badge.platform-linkedin {
    background: rgba(0, 119, 181, 0.12);
    color: #0077b5;
}

.modal-preview-screen .platform-badge.platform-unknown {
    background: rgba(71, 85, 105, 0.12);
    color: #475569;
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.status-badge.status-scheduled {
    background: #f0f9ff;
    color: #0284c7;
}

.status-badge.status-published {
    background: #f0fdf4;
    color: #16a34a;
}

.status-badge.status-draft {
    background: #f8fafc;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-details-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-content-section,
    .preview-media-section,
    .preview-details-section {
        padding: 1rem;
    }
}

/* ===== MANUAL POSTING SCREEN ===== */
.manual-posting-container {
    padding: 1rem 0;
}

/* Success Alert */
.posting-ready-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #155724;
}

.posting-ready-alert i {
    font-size: 1.5rem;
    color: #28a745;
    flex-shrink: 0;
}

.posting-ready-alert strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.alert-details {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Content Preview */
.manual-content-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.content-preview-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-preview-header h4 i {
    color: #667eea;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.content-preview-text {
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    color: #1e293b;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Media Download Section */
.media-download-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.media-download-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-download-section h4 i {
    color: #667eea;
}

.media-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-download-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.media-thumbnail {
    position: relative;
    aspect-ratio: 1;
    background: #f1f5f9;
}

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

.media-type-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-download-media {
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: none;
    border-top: 1px solid #e2e8f0;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-media:hover {
    background: #f1f5f9;
    color: #5568d3;
}

.btn-download-all {
    width: 100%;
    padding: 1rem;
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-all:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Platform Instructions */
.platform-instructions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.instruction-block h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.platform-name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.instruction-note {
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.instruction-steps {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: decimal;
}

.instruction-steps li {
    padding: 0.5rem 0;
    color: #475569;
    line-height: 1.6;
}

.instruction-steps li::marker {
    color: #667eea;
    font-weight: 600;
}

/* Platform Action Button */
.platform-action-container {
    text-align: center;
}

.btn-platform-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-platform-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-platform-action i {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .media-download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-copy {
        align-self: stretch;
    }
    
    .manual-posting-container {
        padding: 0.5rem 0;
    }
    
    .posting-ready-alert,
    .manual-content-preview,
    .media-download-section,
    .platform-instructions {
        padding: 1rem;
    }
}

/* ===== ENHANCED LOADING & ERROR STATES ===== */

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
    text-align: center;
}

.error-icon {
    margin-bottom: 1.5rem;
}

.error-icon i {
    font-size: 4rem;
    color: #ef4444;
    opacity: 0.8;
}

.error-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.error-details {
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 400px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-actions button {
    min-width: 120px;
}

/* Button States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

button.loading {
    position: relative;
}

button.loading i.fa-spinner {
    animation: spin 0.8s linear infinite;
}

/* Success States */
.success-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Warning States */
.warning-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Retry Button Styling */
.btn-primary .fa-redo {
    margin-right: 0.25rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .error-state,
    .loading-state {
        padding: 3rem 1rem;
        min-height: 250px;
    }
    
    .error-icon i {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.25rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions button {
        width: 100%;
    }
}

/* ===== MANUAL POSTING SCREEN - CONTENT GENERATOR STYLE ===== */

/* Instructions Wrapper (replaces platform-instructions) */
.instructions-wrapper {
    margin-bottom: 1.5rem;
}

.platform-instruction-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.platform-instruction-block h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

/* Platform Buttons Grid */
.platform-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-buttons-grid .btn-platform-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #1e293b;
}

.platform-buttons-grid .btn-platform-action i {
    font-size: 1.25rem;
}

/* Platform-specific button colors */
.platform-buttons-grid .btn-platform-action.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.platform-buttons-grid .btn-platform-action.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.platform-buttons-grid .btn-platform-action.instagram {
    border-color: #e4405f;
    color: #e4405f;
}

.platform-buttons-grid .btn-platform-action.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.platform-buttons-grid .btn-platform-action.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.platform-buttons-grid .btn-platform-action.twitter:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.platform-buttons-grid .btn-platform-action.linkedin {
    border-color: #0077b5;
    color: #0077b5;
}

.platform-buttons-grid .btn-platform-action.linkedin:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Posting Actions (replaces modal-actions for manual posting) */
.posting-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.posting-actions button {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.posting-actions .btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.posting-actions .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.posting-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.posting-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Media Download Header */
.media-download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.media-download-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-download-header h4 i {
    color: #667eea;
}

.media-download-header .btn-download-all {
    width: auto;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .platform-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .posting-actions {
        flex-direction: column;
    }
    
    .posting-actions button {
        width: 100%;
    }
}

/* ===== POST PREVIEW SCREEN - CONTENT GENERATOR STYLE ===== */

/* Platform Selection Section */
.platform-selection {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.platform-selection h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

/* Platform Checkboxes */
.platform-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.platform-checkbox {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.platform-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.platform-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.platform-checkbox input[type="checkbox"]:disabled ~ .checkbox-label {
    cursor: default;
}

/* Keep visual feedback for disabled but checked checkboxes */
.platform-checkbox input[type="checkbox"]:disabled:checked ~ .checkbox-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.08) 100%);
    opacity: 1;
}

.platform-checkbox:hover .checkbox-label {
    border-color: #cbd5e1;
}

.platform-checkbox input[type="checkbox"]:checked:hover ~ .checkbox-label {
    border-color: #5568d3;
}

.platform-checkbox .platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    color: #64748b;
}

.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label .platform-icon {
    color: #667eea;
}

.platform-checkbox .platform-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}

/* Specific platform icon colors when checked */
.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label .platform-icon i.fa-facebook {
    color: #1877f2;
}

.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label .platform-icon i.fa-instagram {
    color: #e4405f;
}

.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label .platform-icon i.fa-twitter {
    color: #1da1f2;
}

.platform-checkbox input[type="checkbox"]:checked ~ .checkbox-label .platform-icon i.fa-linkedin {
    color: #0077b5;
}

/* Preview Actions */
.preview-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.preview-actions button {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.preview-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.preview-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.preview-actions .btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.preview-actions .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.preview-actions .btn-danger {
    background: white;
    color: #ef4444;
    border: 2px solid #fecaca;
}

.preview-actions .btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .platform-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   POST CONTENT EDITING STATE
   ======================================== */

.post-content.editing {
    border: 2px solid #667eea !important;
    background: #fefcfb !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
    min-height: 150px;
    cursor: text;
}

.post-content.editing:focus {
    border-color: #764ba2 !important;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
}

/* Edit mode indicator */
.post-content.editing::before {
    content: "✏️ Editing mode - Click Save when done";
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 8px 8px 0 0;
    font-size: 0.875rem;
    font-weight: 600;
}

