/* =========================================
   NEON STYLE 7.0 - ULTIMATE (DASHBOARD + VIEW)
   Arquivo: neon-style.css
   ========================================= */

/* =========================================
   1. RESET E ESTRUTURA GERAL (LARGURA 100%)
   ========================================= */
.f-color-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.f-color-wrapper * {
    box-sizing: border-box;
}

.f-color-container {
    background: linear-gradient(180deg, #240090 0%, #4c1d95 20%, #a21caf 40%, #db2777 60%, #be123c 80%, #f59e0b 100%);
    width: 100%;
    max-width: 100% !important; /* LARGURA TOTAL LIBERADA AQUI */
    padding: 30px 25px;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px auto;
}

#neon-dashboard-wrapper {
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

#neon-dashboard-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.f-color-header {
    text-align: center;
    margin-bottom: 25px;
}

.f-color-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-color-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* =========================================
   2. CAIXAS E INPUTS
   ========================================= */
.f-color-box {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.transparent-box {
    background: transparent;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.blue-box {
    background: rgba(30, 0, 80, 0.4);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}

.pink-dashed {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255,255,255,0.4);
}

.red-box {
    background: rgba(120, 20, 40, 0.5);
}

.orange-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.f-color-label,
.f-color-label-center {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.f-color-label-center {
    text-align: center;
}

.f-color-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 15px 20px;
    color: #001f3f;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.f-color-input:focus {
    background: #fff;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.dark-input {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.dark-input:focus {
    background: rgba(0,0,0,0.7);
    color: #fff;
}

textarea.f-color-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* =========================================
   3. AVATAR E UPLOAD DE ARQUIVOS
   ========================================= */
.avatar-trigger {
    width: 100px;
    height: 100px;
    margin: 10px auto 0;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

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

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.6rem;
    text-align: center;
    padding: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.icon-cloud {
    font-size: 3rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.btn-paste {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-paste:hover {
    background: #fff;
    color: #db2777;
    transform: translateY(-2px);
}

/* =========================================
   4. MÍDIA: BOTÕES DE GRAVAÇÃO
   ========================================= */
.neon-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.record-circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.record-circle-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    display: block;
    transition: all 0.3s;
}

.record-circle-btn:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.record-circle-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.record-circle-btn.recording::after {
    border-radius: 4px;
    background: #fff;
}

.btn-f-color-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-f-color-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
}

/* =========================================
   5. DASHBOARD: HEADER E ESTATÍSTICAS
   ========================================= */
.neon-dash-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dash-avatar img {
    border-radius: 50%;
    border: 2px solid #fbbf24;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dash-welcome {
    flex-grow: 1;
}

.dash-welcome h2 {
    margin: 5px 0;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

.dash-label {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.neon-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-stat-box {
    background: #14151a !important;
    border: 1px solid #22242b !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    text-align: center;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1) !important;
}

.stat-card strong {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0 5px 0;
    color: #fff;
}

.stat-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    color: #e2e8f0;
    font-weight: 700;
}

/* =========================================
   6. BOTÕES DE AÇÃO DO DASHBOARD
   ========================================= */
.dash-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-dash-action {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: #fff;
    text-decoration: none;
}

.btn-dash-action.home {
    background: #14151a;
    border: 1px solid #22242b;
}

.btn-dash-action.home:hover {
    background: #1e1e26;
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

.btn-dash-action.submit {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    box-shadow: 0 8px 25px rgba(99,102,241,0.5);
}

.btn-dash-action.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99,102,241,0.7);
}

/* =========================================================
   7. HISTÓRICO DE POSTAGENS (CARDS GRID)
   ========================================================= */
.neon-grid-6-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.activity-item {
    background: #14151a !important;
    border: 1px solid #22242b !important;
    border-radius: 16px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.act-featured-image {
    width: 100%;
    height: 220px;
    position: relative;
    background: #0b0c10;
}

.act-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.05);
}

.act-badge.floating-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.floating-badge.status-ok { background: #10b981; color: #fff; }
.floating-badge.status-wait { background: #f59e0b; color: #fff; }

/* Pílulas de Estatísticas dos Cards */
.card-stats-overlay {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.card-stat-pill {
    background: rgba(20, 21, 26, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.card-stat-pill i.fa-heart { color: #f43f5e; filter: drop-shadow(0 0 5px rgba(244,63,94,0.6)); }
.card-stat-pill i.fa-comment { color: #38bdf8; filter: drop-shadow(0 0 5px rgba(56,189,248,0.6)); }
.card-stat-pill i.fa-eye { color: #fbbf24; filter: drop-shadow(0 0 5px rgba(251,191,36,0.6)); }

.act-body-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.act-body-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    word-break: break-word;
}

.act-date {
    font-size: 0.8rem;
    opacity: 0.6;
    color: #fff;
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.act-bottom-row {
    padding: 15px 20px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.act-actions-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
}

.act-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.btn-act {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-act.view { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.btn-act.edit { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.btn-act.delete { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.btn-act:hover {
    transform: translateY(-3px);
    filter: brightness(1.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-act-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-act-text:hover {
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* =========================================================
   8. MENU FLUTUANTE EXCLUSIVO PARA LOGADOS (COMPLETO)
   ========================================================= */
#brilha-floating-menu {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 999999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#brilha-floating-menu:hover {
    background: rgba(15, 23, 42, 1);
    box-shadow: -6px 0 25px rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.4);
}

.bfm-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    padding: 2px;
    cursor: help;
    transition: transform 0.3s;
}

.bfm-avatar:hover {
    transform: scale(1.1);
}

.bfm-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bfm-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
}

.bfm-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.bfm-dashboard {
    color: #38bdf8;
}

.bfm-dashboard:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.bfm-logout {
    color: #ef4444;
}

.bfm-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* =========================================================
   9. RESPONSIVIDADE E MEDIA QUERIES
   ========================================================= */

/* NO TABLET E CELULAR: MENU FLUTUANTE VAI PARA A ESQUERDA E FICA MENOR! */
@media (max-width: 992px) {
    #brilha-floating-menu {
        top: 50%;
        left: 0;           /* Agora fica na esquerda */
        right: auto;       /* Tira a ancoragem da direita */
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column; 
        border-radius: 0 15px 15px 0; /* Arredonda só o lado direito */
        border-left: none; 
        border-right: 1px solid rgba(255, 255, 255, 0.1); /* Borda na direita */
        padding: 10px 8px; /* Mais fino */
        width: auto;
        gap: 10px; /* Menos espaço entre os ícones */
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5); /* Sombra para a direita */
    }
    
    .bfm-avatar {
        width: 35px;
        height: 35px;
    }
    
    .bfm-status-dot {
        width: 10px;
        height: 10px;
        bottom: -2px;
        right: -2px;
    }
    
    .bfm-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    #neon-dashboard-wrapper {
        padding: 15px !important;
    }
    
    .f-color-header h2 {
        font-size: 1.3rem;
        margin-top: 10px;
    }
    
    .btn-f-color-submit,
    .btn-paste,
    .btn-camera-record,
    .btn-dash-action {
        width: 100% !important;
        justify-content: center;
    }
    
    .neon-dash-header {
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .avatar-edit-icon {
        bottom: 5px;
        right: 5px;
    }
}

@media (max-width: 500px) {
    .neon-media-grid {
        grid-template-columns: 1fr;
    }
    .neon-grid-6-col {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   10. ESTILO DO BOTÃO DE FIXAR POSTAGEM (PIN POST)
   ========================================================= */
.btn-act.pin-post.unpinned {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-act.pin-post.pinned {
    background: #10b981;
    color: #fff;
    border: 1px solid #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    transform: scale(1.05);
}

/* =========================================================
   11. ESTILO DO BOTÃO DE REPOSTAR
   ========================================================= */
.btn-act.repost-post {
    background: rgba(6, 182, 212, 0.15); /* Ciano Neon */
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-act.repost-post:hover {
    background: #06b6d4;
    color: #fff;
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: scale(1.05) rotate(180deg); /* Dá uma giradinha estilosa */
}