/* Publisher by LE SOUK - Style CSS Amélioré */

:root {
    --color-primary: #dc2626;
    --color-primary-dark: #991b1b;
    --color-primary-light: #ef4444;
    --color-accent: #f97316;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s ease;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Dark Mode Colors (default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #475569;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   NAVIGATION AMÉLIORÉE
   ================================ */

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-container:hover {
    box-shadow: var(--shadow-md);
}

/* Navigation Links Desktop */
.nav-links-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
}

.logo-text {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

.logo-text:hover {
    color: var(--color-primary);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.nav-link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(220, 38, 38, 0.1);
}

/* ================================
   BOUTONS AMÉLIORÉS
   ================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.15));
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid transparent;
}

.btn-logout:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--color-primary);
    transform: scale(1.1);
}

/* ================================
   FLASH MESSAGES AMÉLIORÉS
   ================================ */

.flash-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 200;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flash-message {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.flash-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-secondary));
}

.flash-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--bg-secondary));
}

.flash-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--bg-secondary));
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.flash-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
    min-height: calc(100vh - 4rem);
}

.dashboard-container {
    padding-top: 0;
}

/* ================================
   DASHBOARD HEADER MODERNE
   ================================ */

.dashboard-header {
    margin-bottom: 2rem;
    animation: fadeInDown 0.5s ease;
}

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

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

.greeting-avatar {
    position: relative;
    width: 56px;
    height: 56px;
}

.greeting-avatar img,
.greeting-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.greeting-avatar .avatar-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

.avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
}

.greeting-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.gradient-text {
    background: linear-gradient(135deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.greeting-subtitle {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* ================================
   STATS ROW - SIMPLE
   ================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-box:hover {
    border-color: var(--stat-color);
}

.stat-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.stat-box-blue { --stat-color: #3b82f6; }
.stat-box-blue .stat-box-icon { background: #3b82f6; }

.stat-box-amber { --stat-color: #f59e0b; }
.stat-box-amber .stat-box-icon { background: #f59e0b; }

.stat-box-green { --stat-color: #10b981; }
.stat-box-green .stat-box-icon { background: #10b981; }

.stat-box-info {
    display: flex;
    flex-direction: column;
}

.stat-box-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-box-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ================================
   DASHBOARD GRID
   ================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

/* ================================
   CONTENT CARDS MODERNES
   ================================ */

.content-card-modern {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header-modern {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--bg-secondary), rgba(51, 65, 85, 0.3));
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.card-icon-red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.card-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-title-modern {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-count-modern {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.card-body-modern {
    padding: 1.25rem;
}

/* ================================
   POSTS LIST MODERNE
   ================================ */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-item-modern {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.post-item-modern:hover {
    background: var(--bg-tertiary);
}

.post-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.25rem;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-pending {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.dot-published {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.dot-failed {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--border-color);
    margin-top: 0.5rem;
}

.post-content-wrapper {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.post-main {
    flex: 1;
    min-width: 0;
}

.post-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

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

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.meta-item i {
    font-size: 0.625rem;
}

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

.post-actions-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-item-modern:hover .post-actions-modern {
    opacity: 1;
}

/* Post type badges */
.post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.post-type-social {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.post-type-email {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.email-item {
    border-left: 3px solid #ea4335;
}

.timeline-dot.dot-email {
    background: linear-gradient(135deg, #ea4335, #c5221f) !important;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
}

.action-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-edit:hover {
    background: #3b82f6;
    color: white;
}

.action-publish {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-publish:hover {
    background: #10b981;
    color: white;
}

.action-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-delete:hover {
    background: #ef4444;
    color: white;
}

/* ================================
   ACTIVITY LIST MODERNE
   ================================ */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item-modern {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.activity-item-modern:hover {
    background: var(--bg-tertiary);
}

.activity-avatar-modern {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-avatar-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-avatar-modern .avatar-icon {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.activity-content-modern {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.activity-user-modern {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.activity-action-modern {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.activity-preview {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin: 0.25rem 0;
}

.activity-platforms-modern {
    display: flex;
    gap: 0.375rem;
    margin: 0.375rem 0;
}

.platform-tag {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: white;
}

.platform-facebook { background: #1877f2; }
.platform-twitter { background: #000; }
.platform-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-bluesky { background: #0085ff; }

.activity-time-modern {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

.activity-time-modern i {
    font-size: 0.5625rem;
}

/* ================================
   EMPTY STATE MODERNE
   ================================ */

.empty-state-modern {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-modern.small {
    padding: 2rem 1rem;
}

.empty-illustration {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-tertiary);
}

.empty-illustration.small {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: 14px;
}

.empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.375rem 0;
}

.empty-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.btn-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-empty:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ================================
   QUICK ACTIONS MODERNES
   ================================ */

.quick-actions-modern {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.quick-actions-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.quick-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.quick-actions-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-action-card:hover {
    transform: translateX(4px);
}

.quick-action-card:hover .quick-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.quick-red {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.15);
}

.quick-red:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

.quick-blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.quick-blue:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.quick-purple {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
}

.quick-purple:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.quick-red .quick-action-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.quick-blue .quick-action-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.quick-purple .quick-action-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-action-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

.quick-arrow {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .greeting-title {
        font-size: 1.375rem;
    }
    
    .btn-primary-glow {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.page-header {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ================================
   AUTHENTICATION PAGES
   ================================ */

.setup-background,
.login-background,
.verify-background {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.setup-background::before,
.login-background::before,
.verify-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
    animation: float 25s ease-in-out infinite;
}

.setup-background::after,
.login-background::after,
.verify-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -20px) rotate(2deg);
    }
    66% {
        transform: translate(-15px, 15px) rotate(-2deg);
    }
}

.setup-card,
.login-card,
.verify-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.logo-container {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.logo-pulse {
    animation: logoPulse 3s ease-in-out infinite;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.title-animate {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ================================
   INPUT FIELDS AMÉLIORÉS
   ================================ */

.input-group {
    position: relative;
}

.input-field {
    appearance: none;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-field::placeholder {
    color: var(--text-tertiary);
}

textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    width: 100%;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* ================================
   STATISTICS CARDS AMÉLIORÉES
   ================================ */

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, var(--color-primary)), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-card-blue { --stat-color: #3b82f6; }
.stat-card-blue .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.stat-card-yellow { --stat-color: #f59e0b; }
.stat-card-yellow .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.stat-card-green { --stat-color: #10b981; }
.stat-card-green .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.stat-card-purple { --stat-color: #8b5cf6; }
.stat-card-purple .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.stat-card-red { --stat-color: var(--color-primary); }
.stat-card-red .stat-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* ================================
   CONTENT CARDS AMÉLIORÉES
   ================================ */

.content-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-tertiary));
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ================================
   POST ITEMS AMÉLIORÉS
   ================================ */

.post-item {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.post-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.post-item p {
    color: var(--text-primary);
}

.post-item span {
    color: var(--text-secondary);
}

/* ================================
   ACTIVITY ITEMS AMÉLIORÉS
   ================================ */

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

.activity-icon {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.activity-item p {
    color: var(--text-primary);
}

.activity-item .text-xs {
    color: var(--text-secondary);
}

/* ================================
   BADGES AMÉLIORÉS
   ================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.badge-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-published {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.1));
    color: #ea580c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.badge-inactive {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
}

.badge-admin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-user {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ================================
   EMPTY STATE AMÉLIORÉ
   ================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.empty-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   QUICK ACTIONS AMÉLIORÉES
   ================================ */

.quick-actions {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.quick-actions h3 {
    color: var(--text-primary);
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.action-card:hover::before {
    opacity: 1;
}

.action-card-red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    color: var(--color-primary);
    border-color: rgba(220, 38, 38, 0.15);
}

.action-card-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.15);
}

.action-card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

.action-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.action-card-red:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.action-card-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.action-card-green:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

/* ================================
   SOCIAL ACCOUNT CARDS AMÉLIORÉES
   ================================ */

.social-account-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.social-account-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.social-account-card h3 {
    color: var(--text-primary);
}

.social-account-card p {
    color: var(--text-secondary);
}

.social-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    transition: var(--transition-smooth);
}

.social-account-card:hover .social-icon {
    transform: scale(1.1);
}

/* ================================
   PLATFORM SELECT AMÉLIORÉ
   ================================ */

.platform-select-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

.platform-select-card:hover {
    border-color: var(--color-primary);
    background: rgba(220, 38, 38, 0.03);
}

.platform-select-card:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.platform-badge:hover {
    background: var(--bg-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ================================
   DATA TABLE AMÉLIORÉE
   ================================ */

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.data-table tr:hover td {
    background: var(--bg-tertiary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ================================
   QR CODE
   ================================ */

.qr-container {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

/* ================================
   DARK MODE STYLES
   ================================ */

body.dark-mode {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-mode .nav-container {
    background: var(--glass-bg);
    border-bottom-color: var(--border-color);
}

.dark-mode .setup-background,
.dark-mode .login-background,
.dark-mode .verify-background {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0c1222 100%);
}

.dark-mode .setup-background::before,
.dark-mode .login-background::before,
.dark-mode .verify-background::before {
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.12) 0%, transparent 60%);
}

.dark-mode .badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.dark-mode .badge-published,
.dark-mode .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-mode .badge-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.dark-mode .badge-admin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Dark mode color scheme for inputs */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    color-scheme: dark;
}

/* Scrollbar Dark Mode */
.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ================================
   UTILITY OVERRIDES FOR DARK MODE
   ================================ */

.dark-mode .bg-red-50 { background: rgba(220, 38, 38, 0.1) !important; }
.dark-mode .bg-blue-50 { background: rgba(59, 130, 246, 0.1) !important; }
.dark-mode .bg-yellow-50 { background: rgba(245, 158, 11, 0.1) !important; }
.dark-mode .bg-gray-50 { background: var(--bg-tertiary) !important; }
.dark-mode .bg-white { background: var(--bg-secondary) !important; }

.dark-mode .text-red-700 { color: #f87171 !important; }
.dark-mode .text-blue-700 { color: #60a5fa !important; }
.dark-mode .text-yellow-700 { color: #fbbf24 !important; }
.dark-mode .text-gray-900 { color: var(--text-primary) !important; }
.dark-mode .text-gray-700 { color: var(--text-secondary) !important; }
.dark-mode .text-gray-600 { color: var(--text-secondary) !important; }
.dark-mode .text-gray-500 { color: var(--text-tertiary) !important; }

.dark-mode .border-gray-300,
.dark-mode .border-gray-200 { border-color: var(--border-color) !important; }

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 767px) {
    .nav-container .flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.625rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .action-card {
        padding: 1rem;
    }

    .flash-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ================================
   ANIMATIONS SUPPLÉMENTAIRES
   ================================ */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(220, 38, 38, 0.2);
    color: var(--text-primary);
}


/* ================================
   COMPOSANTS ADDITIONNELS LIGHT/DARK
   ================================ */

/* Badge count */
.badge-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Post content */
.post-content {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Empty icon container */
.empty-icon-container {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.empty-icon-container.small {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
}

/* Activity text */
.activity-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Action icons */
.action-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon-red {
    background: rgba(220, 38, 38, 0.15);
    color: var(--color-primary);
}

.action-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.action-icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.action-title {
    font-weight: 600;
    color: inherit;
    display: block;
}

.action-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.125rem;
}

/* Platform icon box */
.platform-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Platform name/type */
.platform-name {
    font-weight: 500;
    color: var(--text-primary);
}

.platform-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Form labels */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label-optional {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-secondary);
}

.drop-zone:hover {
    border-color: var(--color-primary);
    background: rgba(220, 38, 38, 0.02);
}

.drop-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(220, 38, 38, 0.05);
}

.drop-zone-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.drop-zone-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.drop-zone-link {
    color: var(--color-primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.drop-zone-link:hover {
    text-decoration: underline;
}

.drop-zone-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* Quick actions title */
.quick-actions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Char counter */
.char-counter {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.char-counter .count {
    font-weight: 500;
}

.char-counter.warning .count {
    color: var(--color-primary);
    font-weight: 700;
}

/* Text area styling */
textarea.content-textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

textarea.content-textarea::placeholder {
    color: var(--text-tertiary);
}


/* ================================
   PROFILE PAGE STYLES
   ================================ */

.profile-picture-container {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    background: var(--bg-tertiary);
    position: relative;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
}

.profile-upload-zone {
    transition: var(--transition-smooth);
}

/* Profile picture in navigation */
.nav-profile-picture {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.nav-profile-placeholder {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    border: 2px solid var(--border-color);
}

/* Toggle password button */
.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    color: var(--color-primary);
}

/* ================================
   PROFILE DROPDOWN MENU
   ================================ */

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 12rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    z-index: 200;
    animation: dropdownFadeIn 0.2s ease;
}

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

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.profile-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.profile-dropdown-item i {
    width: 1rem;
    text-align: center;
    color: var(--text-tertiary);
}

.profile-dropdown-item:hover i {
    color: var(--color-primary);
}

.profile-dropdown-item.text-red-500 {
    color: var(--color-primary);
}

.profile-dropdown-item.text-red-500:hover {
    background: rgba(220, 38, 38, 0.1);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* =====
===========================
   ACTIVITY ITEMS DETAILED
   ================================ */

.activity-item-detailed {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.activity-item-detailed:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--color-primary);
}

.activity-icon-wrapper {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.activity-user {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
}

.activity-action {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.activity-content {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-primary);
}

.activity-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.activity-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-transform: uppercase;
}

.activity-platform-twitter {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.dark-mode .activity-platform-twitter {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.activity-platform-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.activity-platform-instagram {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
}

.activity-platform-bluesky {
    background: rgba(0, 133, 255, 0.15);
    color: #0085ff;
}

.activity-detail {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.activity-time {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-top: 0.375rem;
}


/* ================================
   ACTIVITY AVATAR STYLES
   ================================ */

.activity-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.activity-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    font-size: 0.75rem;
}


/* ================================
   DANGER BUTTON
   ================================ */

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.btn-danger:active {
    transform: translateY(0);
}

/* 
================================
   POST ACTIONS
   ================================ */

.post-actions {
    transition: var(--transition-fast);
}

.post-actions .btn-icon {
    padding: 0.375rem;
    font-size: 0.8125rem;
}

.post-actions .btn-icon.text-red-500:hover {
    background: rgba(239, 68, 68, 0.1);
}

.post-actions .btn-icon.text-green-500:hover {
    background: rgba(16, 185, 129, 0.1);
}


/* ================================
   PLATFORM TAGS DISPLAY
   ================================ */

/* Inline platform tags display */
.platform-tags-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}

.ptag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--ptag-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--ptag-color) 30%, transparent);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ptag-color);
    white-space: nowrap;
}

.ptag-badge i {
    font-size: 0.7rem;
}

/* Platform tags preview in cards */
.platform-tags-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.platform-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.platform-tag-chip:hover {
    background: var(--bg-hover);
}

.platform-tag-chip .chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
}

.platform-tag-chip .chip-icon.twitter { background: #000; }
.platform-tag-chip .chip-icon.facebook { background: #1877f2; }
.platform-tag-chip .chip-icon.instagram { background: linear-gradient(45deg, #f09433, #dc2743); }
.platform-tag-chip .chip-icon.bluesky { background: #0085ff; }

.platform-tag-chip .chip-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Multi-platform tag indicator */
.multi-tag-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 500;
}

.multi-tag-indicator i {
    font-size: 0.65rem;
}


/* Chat Notification Badge */
.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.chat-unread-badge.hidden {
    display: none;
}

#chatBtn {
    position: relative;
}

#chatBtn:hover {
    color: var(--color-primary);
}


.chat-unread-badge-mobile {
    position: absolute;
    top: -2px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.chat-unread-badge-mobile.hidden {
    display: none;
}

/* Button See All */
.btn-see-all {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-see-all:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

/* Button See More */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-see-more:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.btn-see-more i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.btn-see-more:hover i {
    transform: translateX(3px);
}
