/* Wrap the My Account area to fix float/alignment issues */
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content {
    float: none !important;
}

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout and Sidebar */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background-color: #0b1a2a;
    min-height: calc(100vh - 100px);
    padding: 0;
    margin: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.woocommerce-MyAccount-navigation::before {
    content: "BEL \A Dashboard";
    white-space: pre-wrap;
    display: block;
    color: #17c964;
    font-size: 24px;
    font-weight: bold;
    padding: 30px 20px 20px;
    line-height: 1.2;
}
.woocommerce-MyAccount-navigation::first-line {
    color: #fff;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left: 4px solid #17c964;
}

/* Make logout stick to the bottom */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: auto;
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

/* Insert FontAwesome Icons via CSS pseudo-elements instead of HTML */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f3fd"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f07a"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--bel-projects a::before { content: "\f0ae"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--bel-it-sessions a::before { content: "\f590"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--bel-messages a::before { content: "\f0e0"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--bel-help a::before { content: "\f1cd"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 15px; width: 20px; }

/* Hide any remaining default paragraph tags in content area forcefully */
.woocommerce-MyAccount-content > p {
    display: none !important;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
    background: transparent;
    padding: 0;
    border-radius: 8px;
}
.bel-welcome-header { margin-bottom: 30px; }
.bel-welcome-header h2 { color: #0b1a2a; font-size: 28px; margin-bottom: 5px; font-weight: 700; }
.bel-welcome-header p { color: #64748b; font-size: 16px; }

/* Sections */
.bel-dashboard-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 25px;
}
.bel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.bel-section-header h3 { margin: 0; color: #0b1a2a; font-size: 20px; font-weight: bold; }
.bel-filters span { margin-left: 15px; font-size: 14px; color: #64748b; cursor: pointer; }
.bel-filters span:first-child { color: #0b1a2a; font-weight: bold; border-bottom: 2px solid #0b1a2a; padding-bottom: 16px; }

/* Grid Cards */
.bel-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bel-session-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}
.bel-session-card h4 { margin: 0 0 10px; color: #0b1a2a; font-size: 16px; font-weight: bold; }
.bel-session-card p { margin: 0 0 15px; font-size: 14px; color: #475569; }
.bel-anydesk-form { display: flex; flex-direction: column; gap: 10px; }
.bel-anydesk-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}
.bel-btn-green {
    background: #17c964;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    align-self: flex-start;
}
.bel-btn-green:hover { background: #129c4d; }

/* Bottom Row */
.bel-dashboard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bel-resource-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 30px; }
.bel-resource-card h3 { margin: 0 0 10px; color: #0b1a2a; font-weight: bold; }
.bel-resource-card p { color: #64748b; font-size: 14px; margin-bottom: 20px; }
.bel-link-green { color: #17c964; font-weight: bold; text-decoration: none; }

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-MyAccount-navigation {
        flex: 1 1 100%;
        width: 100%;
        min-height: auto;
    }
    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin-top: 0;
    }
    .woocommerce-MyAccount-content {
        width: 100%;
    }
    .bel-section-grid, .bel-dashboard-row { grid-template-columns: 1fr; }
}