/* ==============================
   Modern Light Dashboard
   Vertical left tabs layout
   Smooth fade with visibility
   ============================== */

.wp-dashboard {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d3436;
    min-height: 300px;
}

/* Left tab bar */
.wp-dashboard-tabs {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 220px;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    background: #fafbfc;
    border-right: 1px solid #eef0f2;
}

.wp-dashboard-tabs li {
    margin: 0;
}

/* Tab button */
.wp-dashboard-tab-btn {
    position: relative;
    background: transparent;
    border: none;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #636e72;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
    outline: none;
}

.wp-dashboard-tab-btn:hover {
    color: #2d3436;
    background: rgba(0, 0, 0, 0.02);
}

.wp-dashboard-tab-btn.active {
    color: #0984e3;
    background: #ffffff;
    font-weight: 600;
}

.wp-dashboard-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0984e3;
    border-radius: 0 3px 3px 0;
}

/* Content area */
.wp-dashboard-content {
    flex: 1;
    padding: 28px 32px 32px;
    min-height: 200px;
    background: #ffffff;
    position: relative;   /* for stacking panels */
}

/* All panels are positioned on top of each other, invisible by default */
.wp-dashboard-tab-panel {
    position: absolute;
    top: 28px;
    left: 32px;
    right: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
    pointer-events: none;
}

/* Active panel */
.wp-dashboard-tab-panel.active {
    position: relative;   /* restore flow so it takes space */
    top: auto;
    left: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .wp-dashboard {
        flex-direction: column;
    }
    .wp-dashboard-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 12px;
        border-right: none;
        border-bottom: 1px solid #eef0f2;
    }
    .wp-dashboard-tab-btn {
        width: auto;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 10px 10px 0 0;
    }
    .wp-dashboard-tab-btn.active::after {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: #0984e3;
    }
    .wp-dashboard-content {
        padding: 20px 16px 24px;
    }
    .wp-dashboard-tab-panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
}

/* Optional inner styling */
.wp-dashboard-tab-panel h2,
.wp-dashboard-tab-panel h3 {
    margin-top: 0;
    font-weight: 600;
}

.wp-dashboard-tab-panel p {
    line-height: 1.6;
    color: #4a4a4a;
}