
:root {
    --fb-red: #D32F2F; 
    --fb-dark: #B71C1C;
    --fb-grey: #4A5568;
    --fb-bg: #F8F9FA;
    --fb-text: #2D3748;
    --fb-border: #E2E8F0;
    --radius: 6px;
}

/* ============================
   1. TOP NAVIGATION BAR
============================ */
.fb-top-return-bar {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin: 0 -20px 20px -20px;
    padding: 12px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.fb-return-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fb-nav-actions {
    display: flex;
    gap: 10px; /* Space between the two buttons */
    align-items: center;
}

/* Base Button Style */
.fb-btn-return {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

/* PRIMARY (Dashboard) - Red */
.fb-btn-return.primary {
    background-color: var(--fb-red);
    color: #fff !important;
}
.fb-btn-return.primary:hover {
    background-color: var(--fb-dark);
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(183,28,28,0.3);
}

/* SECONDARY (Go Back) - Dark Grey / Outline */
.fb-btn-return.secondary {
    background-color: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568 !important;
}
.fb-btn-return.secondary:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748 !important;
    transform: translateX(-2px); /* Slight slide left hint */
}

/* Context Text */
.fb-page-context {
    color: #718096;
    font-size: 12px;
}
.fb-page-context strong {
    color: var(--fb-red);
}

/* ============================
   2. EXISTING RED THEME
============================ */
body, #wpbody { background: var(--fb-bg) !important; color: var(--fb-text); font-family: system-ui, sans-serif; }
a { color: var(--fb-red); text-decoration: none; } a:hover { color: var(--fb-dark); }

/* Top Admin Bar (Black strip replaced with Red) */
#wpadminbar { background: var(--fb-red) !important; border-bottom: none !important; }
.fb-history-node .ab-item { cursor: default !important; background: transparent !important; }
.fb-nav-icon { 
    color: #fff !important; cursor: pointer; font-size: 20px; 
    width: 30px; height: 30px; line-height: 30px; text-align: center; 
    border-radius: 4px; transition: 0.2s; background: rgba(255,255,255,0.1); 
    margin: 0 2px; 
}
.fb-nav-icon:hover { background: rgba(255,255,255,0.3); }

/* Sidebar */
#adminmenu, #adminmenuback, #adminmenuwrap { background: #1a202c !important; }
#adminmenu a { color: #cbd5e0 !important; }
#adminmenu .wp-has-current-submenu .wp-submenu { background: #2d3748 !important; }
#adminmenu li.current a.menu-top, 
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu { 
    background: var(--fb-red) !important; color: #fff !important; font-weight:700; border-radius: 4px;
}

/* Buttons */
.wp-core-ui .button-primary, .woocommerce-save-button {
    background: var(--fb-red) !important; border-color: var(--fb-red) !important; 
    border-radius: 6px !important; padding: 5px 20px !important; font-weight: 600;
}
.wp-core-ui .button-primary:hover { background: var(--fb-dark) !important; transform:translateY(-1px); }

/* General Width/Layout Fixes from v3.2 */
#wpbody-content { padding-bottom: 50px; max-width: 99% !important; margin: 0 auto; }
.wrap { margin: 10px 0 0 0 !important; }
.postbox, .wrap .page-title-action, .welcome-panel, .card {
    background: #fff !important; border: 1px solid var(--fb-border) !important; border-radius: var(--radius);
    box-shadow: 0 2px 6px -1px rgba(0,0,0,0.05);
}
.wp-list-table thead th { border-bottom: 2px solid var(--fb-red) !important; background: #fff !important; color: var(--fb-red) !important; text-transform:uppercase; }
.wp-list-table tr:hover td { background: #fff5f5 !important; }

/* Filter alignment fixes */
.tablenav .actions select { max-width: 180px !important; width: auto; }
.tablenav.top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; height: auto !important; margin-bottom: 15px !important; }
.woocommerce-layout__header { display: none !important; } 

@media (max-width: 782px) {
    .fb-return-container { flex-direction:column; gap:10px; }
    .fb-nav-actions { width: 100%; justify-content: space-between; }
    .fb-btn-return { flex: 1; justify-content: center; }
}
