/* =========================================
   1. DASHBOARD DUAL-CARD LAYOUT
   ========================================= */
.legacy-tabs {
    display: flex;          /* Side-by-side cards */
    gap: 20px;              /* Spacing between sidebar and content */
    width: 980px;            
    margin: 20px 0;          
    font-family: 'IBM Plex Sans', sans-serif !important;
    align-items: flex-start;
}

/* Sidebar Specific Card */
.legacy-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E7E8E9;
    border-radius: 12px;    /* Rounded corners */
    padding: 15px;          
    width: 240px;
    box-sizing: border-box;
}

.legacy-sidebar-card label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Content Area Card */
.legacy-content-card {
    flex: 1;                
    background: #FFFFFF;
    border: 1px solid #E7E8E9;
    border-radius: 12px;
    padding: 35px;
    min-height: 700px;
    list-style: none;
    margin: 0;
}

/* =========================================
   2. PILL NAVIGATION (SIDEBAR)
   ========================================= */

.legacy-sidebar-card label {
    display: block;
    margin-bottom: 12px;    /* This creates the gap between pills */
    cursor: pointer;
}

.legacy-sidebar-card label span span {
    display: block;
    padding: 12px 15px;
    background: #FFFFFF;
    border: 1.5px solid #414042;
    font-weight: 700;
    font-size: 12px;        /* Larger, clearer font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #414042;
    border-radius: 30px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

/* Section 2: Active States (Solid Orange) */
#leg-tab1:checked ~ .legacy-sidebar-card label[for="leg-tab1"] span span,
#leg-tab2:checked ~ .legacy-sidebar-card label[for="leg-tab2"] span span,
#leg-tab3:checked ~ .legacy-sidebar-card label[for="leg-tab3"] span span,
#leg-tab4:checked ~ .legacy-sidebar-card label[for="leg-tab4"] span span,
#leg-tab5:checked ~ .legacy-sidebar-card label[for="leg-tab5"] span span,
#leg-tab6:checked ~ .legacy-sidebar-card label[for="leg-tab6"] span span,
#leg-tab7:checked ~ .legacy-sidebar-card label[for="leg-tab7"] span span,
#leg-tab8:checked ~ .legacy-sidebar-card label[for="leg-tab8"] span span,
#leg-tab9:checked ~ .legacy-sidebar-card label[for="leg-tab9"] span span,
#leg-tab10:checked ~ .legacy-sidebar-card label[for="leg-tab10"] span span,
#leg-tab11:checked ~ .legacy-sidebar-card label[for="leg-tab11"] span span,
#leg-tab12:checked ~ .legacy-sidebar-card label[for="leg-tab12"] span span {
    background: #F7B24D !important; 
    color: #FFFFFF !important;
    border-color: #F7B24D !important;
    box-shadow: 0 4px 10px rgba(247, 178, 77, 0.2);
}

/* ROLLOVER STATE: Solid Slate (Priority order: Hover after Active) */
.legacy-sidebar-card label:hover span span {
    background: #414042 !important; 
    color: #FFFFFF !important;
    border-color: #414042 !important;
}

/* =========================================
   3. HOME PAGE SWITCHBOARD GRID (TAB 1)
   ========================================= */
.tab-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tab-grid-item {
    background: #ffffff;
    border: 1px solid #E7E8E9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
}

/* Growth and Orange Highlight [Box] */
.tab-grid-item:hover {
    transform: scale(1.08) !important;
    border-color: #F7B24D !important;
}

.icon-circle-nav {
    width: 65px;
    height: 65px;
    background-color: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Circle turns Orange on Hover */
.tab-grid-item:hover .icon-circle-nav {
    background-color: #F7B24D !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tab-grid-item:hover .icon-circle-nav i {
    color: #ffffff !important;
}

.tab-grid-item strong {
    display: block;
    color: #414042;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 5px;
}

/* =========================================
   4. TAB ENGINE LOGIC & ANIMATION
   ========================================= */
.legacy-content-card li {
    display: none;
    animation: legacyFadeIn 0.3s ease;
}

/* Section 4: Engine Switching */
#leg-tab1:checked ~ .legacy-content-card .legacy-tab-content-1,
#leg-tab2:checked ~ .legacy-content-card .legacy-tab-content-2,
#leg-tab3:checked ~ .legacy-content-card .legacy-tab-content-3,
#leg-tab4:checked ~ .legacy-content-card .legacy-tab-content-4,
#leg-tab5:checked ~ .legacy-content-card .legacy-tab-content-5,
#leg-tab6:checked ~ .legacy-content-card .legacy-tab-content-6,
#leg-tab7:checked ~ .legacy-content-card .legacy-tab-content-7,
#leg-tab8:checked ~ .legacy-content-card .legacy-tab-content-8,
#leg-tab9:checked ~ .legacy-content-card .legacy-tab-content-9,
#leg-tab10:checked ~ .legacy-content-card .legacy-tab-content-10,
#leg-tab11:checked ~ .legacy-content-card .legacy-tab-content-11,
#leg-tab12:checked ~ .legacy-content-card .legacy-tab-content-12 {
    display: block !important;
}

@keyframes legacyFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hide Radio Buttons */
.legacy-tabs input[type="radio"] { display: none !important; }

/* =========================================
   5. DASHBOARD TYPOGRAPHY
   ========================================= */
.legacy-tabs h2 {
    color: #414042;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
}

.tab-welcome-text {
    font-size: 18px;
    font-weight: 400; /* Lighter weight as requested */
    line-height: 1.6;
    color: #414042;
    margin-bottom: 15px;
}

.tab-email-note {
    font-size: 15px;
    font-weight: 400;
    color: #414042;
    margin-bottom: 35px;
}

.tab-email-note a {
    color: #F7B24D;
    text-decoration: underline;
    font-weight: 600;
}

/* =========================================
   GRID ITEM LINK RESET
   ========================================= */

/* Force all link states to stay Grey */
.tab-grid-item, 
.tab-grid-item:link, 
.tab-grid-item:visited, 
.tab-grid-item:active {
    color: #414042 !important;
    text-decoration: none !important;
}

/* Ensure only the hover state changes if you want a specific effect */
.tab-grid-item:hover {
    color: #F7B24D !important; /* Optional: Makes the text turn orange on hover */
}

/* Empty slot for grid layout control */
.tab-grid-spacer {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none; /* User can't click it */
    background: transparent;
}