@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --blume-dark: #0f172a;
    --blume-primary: #8b5cf6;
    --blume-primary-hover: #7c3aed;
    --blume-primary-light: rgba(139, 92, 246, 0.15);
    --blume-accent: #f43f5e;
    --blume-glass-bg: rgba(255, 255, 255, 0.75);
    --blume-glass-border: rgba(255, 255, 255, 0.6);
    --blume-text: #1e293b;
    --blume-text-muted: #64748b;
    --blume-shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --blume-shadow: 0 10px 30px -5px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --blume-shadow-lg: 0 20px 40px -10px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --blume-radius: 20px;
    --blume-radius-sm: 12px;
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%) !important;
    min-height: 100vh;
}

body .paf-container {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    padding: 60px 20px;
    color: var(--blume-text);
    position: relative;
    z-index: 1;
}

/* Decorative background blur */
body .paf-container::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

body .paf-container::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .paf-brand h1, .paf-card-form h2, .paf-card-table h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--blume-dark);
}

/* Header */
.paf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--blume-glass-border);
    padding: 24px 32px;
    border-radius: var(--blume-radius);
    box-shadow: var(--blume-shadow-sm);
}

.paf-brand h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--blume-primary), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Grid */
.paf-painel-principal {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards (Glassmorphism) */
.paf-card-table, .paf-card-form, .paf-stat-card {
    background: var(--blume-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--blume-radius);
    box-shadow: var(--blume-shadow);
    border: 1px solid var(--blume-glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.paf-card-table:hover, .paf-card-form:hover {
    box-shadow: var(--blume-shadow-lg);
    border-color: rgba(255, 255, 255, 0.8);
}

.paf-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--blume-shadow-lg);
}

.paf-card-table {
    padding: 32px;
    overflow: hidden;
}

.paf-card-form {
    padding: 48px;
}

/* Typography in Cards */
.paf-card-table h3, .paf-card-form h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.paf-card-subtitle {
    font-size: 16px;
    color: var(--blume-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Estatísticas */
.paf-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.paf-stat-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.paf-stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--blume-primary-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.paf-stat-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--blume-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.paf-stat-card h4 .dashicons {
    color: var(--blume-primary);
    background: var(--blume-primary-light);
    padding: 8px;
    border-radius: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.paf-stat-number, .paf-category-name {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: var(--blume-dark);
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}
.paf-category-name {
    font-size: 28px;
}

/* Tabela */
.paf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.paf-table th {
    padding: 18px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--blume-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.paf-table td {
    padding: 20px 16px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: middle;
}

.paf-table tbody tr {
    transition: all 0.2s ease;
}

.paf-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.01);
}

/* Badges */
.paf-badge-category {
    background: rgba(139, 92, 246, 0.1);
    color: var(--blume-primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.paf-status-publicado { background: rgba(34, 197, 94, 0.15); color: #15803d; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid rgba(34, 197, 94, 0.2); }
.paf-status-agendado { background: rgba(234, 179, 8, 0.15); color: #a16207; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid rgba(234, 179, 8, 0.2); }
.paf-status-rascunho { background: rgba(100, 116, 139, 0.15); color: #475569; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid rgba(100, 116, 139, 0.2); }
.paf-status-outro { background: rgba(100, 116, 139, 0.15); color: #475569; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }

/* Ações */
.paf-acoes {
    display: flex;
    gap: 12px;
    align-items: center;
}

.paf-acoes a {
    color: var(--blume-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.paf-acoes a:hover {
    color: var(--blume-primary);
    background: var(--blume-primary-light);
    transform: translateY(-2px);
}

.paf-acoes a.dashicons-visibility:hover { color: #0ea5e9; background: rgba(14, 165, 233, 0.15); }
.paf-acoes a.dashicons-trash:hover { color: #ef4444; background: rgba(239, 68, 68, 0.15); }

/* Botões */
.paf-btn, .paf-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--blume-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: 'Inter', sans-serif;
}

.paf-btn-primary, .paf-btn-new {
    background: linear-gradient(135deg, var(--blume-primary), #6d28d9);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.paf-btn-primary:hover, .paf-btn-new:hover {
    background: linear-gradient(135deg, var(--blume-primary-hover), #5b21b6);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.paf-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--blume-text);
    border: 1px solid var(--blume-glass-border);
    box-shadow: var(--blume-shadow-sm);
    backdrop-filter: blur(10px);
}

.paf-btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Formulário */
.paf-form-group {
    margin-bottom: 28px;
}

.paf-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--blume-dark);
    margin-bottom: 10px;
}

.paf-form-group input[type="text"],
.paf-form-group input[type="date"],
.paf-form-group input[type="time"],
.paf-form-group input[type="url"],
.paf-form-group textarea,
.paf-form-select {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--blume-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    color: var(--blume-text);
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.paf-form-group input:focus,
.paf-form-group textarea:focus,
.paf-form-select:focus {
    outline: none;
    border-color: var(--blume-primary);
    box-shadow: 0 0 0 4px var(--blume-primary-light);
    background: white;
}

.paf-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.paf-form-row {
    display: flex;
    gap: 20px;
}

/* Upload Area */
.paf-upload-area {
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: var(--blume-radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.paf-upload-area:hover {
    border-color: var(--blume-primary);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

.paf-upload-area span.dashicons {
    font-size: 40px;
    color: var(--blume-text-muted);
    margin-bottom: 24px;
    display: block;
    width: 100%;
    height: auto;
    transition: color 0.3s;
}

.paf-upload-area:hover span.dashicons {
    color: var(--blume-primary);
}

.paf-upload-area p {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--blume-dark);
}

.paf-upload-area small {
    color: var(--blume-text-muted);
    font-size: 13px;
}

.paf-upload-area.tem-imagem {
    border-style: solid;
    border-color: var(--blume-primary);
    background: rgba(139, 92, 246, 0.02);
}

/* Preview de imagem */
#paf-imagem-preview img {
    margin-top: 20px;
    border-radius: var(--blume-radius-sm);
    box-shadow: var(--blume-shadow-sm);
    border: 1px solid rgba(0,0,0,0.1);
    max-width: 100%;
    transition: transform 0.3s;
}
#paf-imagem-preview img:hover {
    transform: scale(1.02);
}

/* Footer do Formulário */
.paf-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

/* Editor WP */
.wp-editor-wrap {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--blume-radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.8);
}

.wp-editor-wrap:focus-within {
    border-color: var(--blume-primary) !important;
    box-shadow: 0 0 0 4px var(--blume-primary-light) !important;
    background: white;
}

.wp-editor-tools {
    background-color: rgba(248, 250, 252, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 12px 16px !important;
}

/* Box info */
.paf-info-box {
    background-color: rgba(220, 252, 231, 0.7);
    border: 1px solid rgba(134, 239, 172, 0.5);
    padding: 20px;
    border-radius: var(--blume-radius-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.paf-info-box .dashicons {
    color: #16a34a;
    margin-top: 2px;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.paf-info-box p {
    margin: 0;
    font-size: 15px;
    color: #15803d;
    line-height: 1.6;
}

/* Mensagens */
.paf-message {
    padding: 16px 20px;
    border-radius: var(--blume-radius-sm);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--blume-shadow-lg);
    animation: slideIn 0.3s ease-out forwards;
}

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

.paf-message-sucesso {
    background-color: rgba(220, 252, 231, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(134, 239, 172, 0.5);
    color: #15803d;
}

.paf-message-erro {
    background-color: rgba(254, 242, 242, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 202, 202, 0.5);
    color: #b91c1c;
}

.paf-message-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Estado de loading */
#paf-submit-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

#paf-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mensagem de acesso negado */
.paf-acesso-negado {
    background-color: rgba(254, 242, 242, 0.9);
    backdrop-filter: blur(10px);
    color: #b91c1c;
    padding: 40px;
    text-align: center;
    border-radius: var(--blume-radius);
    font-weight: 600;
    font-size: 18px;
    border: 1px solid rgba(254, 202, 202, 0.5);
    max-width: 600px;
    margin: 80px auto;
    box-shadow: var(--blume-shadow-lg);
}

.paf-link {
    color: var(--blume-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.paf-link:hover {
    color: var(--blume-primary-hover);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 992px) {
    .paf-painel-principal {
        grid-template-columns: 1fr;
    }
    
    .paf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .paf-table {
        display: block;
        overflow-x: auto;
    }
    
    .paf-card-table, .paf-card-form {
        padding: 24px;
    }
    
    .paf-form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* ==========================================================================
   NOVO LAYOUT UNIFICADO (SIDEBAR + MAIN)
   ========================================================================== */

.paf-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.paf-nav-sidebar {
    width: 280px;
    background: var(--blume-dark);
    color: white;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.paf-nav-brand {
    padding: 0 32px 48px;
    text-align: center;
}

.paf-logo-img {
    max-width: 140px;
    filter: brightness(0) invert(1);
}

.paf-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.paf-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
}

.paf-menu-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

.paf-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.paf-menu-item.active {
    background: var(--blume-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.paf-menu-item.active .dashicons {
    color: white;
}

.paf-menu-separator {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 16px 20px;
}

.paf-menu-item.logout:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--blume-accent);
}

/* Main Content */
.paf-main-content {
    flex: 1;
    margin-left: 280px;
    padding: 48px 64px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.paf-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.paf-section.active {
    display: block;
}

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

/* Header Ajustado */
.paf-main-content .paf-header {
    margin-bottom: 40px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 40px;
}

.paf-header-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Grid de Posts com Sidebar interna */
.paf-painel-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.paf-main-grid-content {
    min-width: 0; /* Prevents grid items from overflowing */
}

.paf-stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tabelas */
.paf-table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.paf-table-header-flex h3 {
    margin: 0;
    border: none;
    padding: 0;
}

.paf-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.paf-select-filter {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    font-family: inherit;
    font-size: 14px;
    color: var(--blume-text);
}

.paf-btn-ghost {
    background: transparent;
    color: var(--blume-text-muted);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paf-btn-ghost:hover {
    background: rgba(0,0,0,0.03);
    color: var(--blume-dark);
}

.paf-table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Modal */
.paf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.paf-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.paf-modal-header {
    padding: 32px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paf-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.paf-modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--blume-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.paf-modal-close:hover {
    color: var(--blume-accent);
}

.paf-modal-content form {
    padding: 32px 40px;
}

.paf-form-group-check {
    display: flex;
    align-items: center;
    height: 100%;
    margin-top: 25px;
}

.paf-form-group-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.paf-form-group-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
}

.paf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
}

.paf-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.paf-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.paf-btn-save {
    background: var(--blume-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.paf-btn-save:hover {
    background: var(--blume-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Responsividade Adaptada */
@media (max-width: 1200px) {
    .paf-main-content {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .paf-nav-sidebar {
        width: 80px;
    }
    .paf-nav-brand, .paf-menu-item span:not(.dashicons) {
        display: none;
    }
    .paf-menu-item {
        justify-content: center;
        padding: 14px;
    }
    .paf-main-content {
        margin-left: 80px;
    }
    .paf-painel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .paf-main-content {
        padding: 20px;
        margin-left: 0;
    }
    .paf-nav-sidebar {
        display: none;
    }
    .paf-modal-content {
        border-radius: 0;
        height: 100%;
        max-width: none;
    }
}

/* ==========================================================================
   CARROSSEL DE DEPOIMENTOS (FRONTEND)
   ========================================================================== */

.paf-testimonials-container {
    padding: 2rem 1rem;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1300px;
}

.paf-testimonials-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.paf-carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.paf-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.paf-testimonial-card {
    min-width: 33.333%;
    box-sizing: border-box;
    padding: 0 10px;
    opacity: 1;
    transition: transform 0.3s ease;
}

.paf-testimonial-content {
    background: #fff;
    border: 1.5px solid #7F77DD;
    border-radius: 16px;
    padding: 24px 28px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.paf-testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.paf-testimonial-user img, 
.paf-testimonial-user .paf-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.paf-testimonial-user .paf-avatar-placeholder {
    background: #7F77DD;
}

.paf-user-info p {
    margin: 0;
}

.paf-user-info .paf-user-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.paf-user-info .paf-user-role {
    font-size: 12px;
    color: #7F77DD;
    font-family: 'Inter', sans-serif;
}

.paf-testimonial-text {
    flex-grow: 1;
}

.paf-testimonial-text blockquote {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: normal;
}

.paf-testimonial-rating {
    display: flex;
    gap: 4px;
    margin-top: auto;
}

.paf-testimonial-rating .star {
    color: #E8A020;
    font-size: 18px;
}

.paf-carousel-prev,
.paf-carousel-next {
    background: none !important;
    border: none;
    cursor: pointer;
    font-size: 38px;
    color: #7F77DD;
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    user-select: none;
}

.paf-carousel-prev:hover,
.paf-carousel-next:hover {
    transform: scale(1.1);
    background: none !important;
}

@media (max-width: 992px) {
    .paf-testimonial-card {
        min-width: 50%;
    }
}

@media (max-width: 650px) {
    .paf-testimonial-card {
        min-width: 100%;
    }
    .paf-carousel-prev, .paf-carousel-next {
        font-size: 28px;
    }
}

.paf-carousel-dots {
    display: none;
}

.paf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
}

.paf-dot.active {
    background: #7F77DD;
}

@media (max-width: 600px) {
    .paf-testimonials-carousel {
        gap: 10px;
    }
    .paf-testimonial-content {
        padding: 20px;
    }
}

    .paf-carousel-prev svg,
    .paf-carousel-next svg {
        width: 24px;
        height: 24px;
    }
}
