/* Clean, modern My Account layout */

body.naimur-my-account-custom .woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-top: 32px;
}

/* Sidebar Card */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation {
    flex: 0 0 260px;
    max-width: 260px;
    background: linear-gradient(150deg, #4f46e5, #6366f1);
    border-radius: 22px;
    padding: 20px 16px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.35);
    color: #e5e7eb;
}

body.naimur-my-account-custom .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Remove theme borders */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li {
    margin: 0;
    border: 0 !important;
    border-bottom: 0 !important;
}

/* Full-width clickable item (radius 8px) */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center !important;              /* icon + text vertically center */
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    padding: 10px 14px !important;
    padding-left: 20px !important;               /* extra left padding */
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.16) !important;
    color: #ffffff !important;                   /* base text white */
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    border: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transition: background 0.18s ease, transform 0.18s ease,
                box-shadow 0.18s ease, color 0.18s ease !important;
}

/* Icon – small circle at left */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a::before {
    font-family: "dashicons" !important;
    font-size: 16px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    opacity: 0.95 !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.20) !important;
    color: #ffffff !important;
}

/* Icons */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\f226";
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f174";
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "\f316";
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\f230";
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f110";
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\f310";
}

/* Right arrow bubble (always visible, like earlier working CSS) */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a::after {
    content: "›";
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: transparent;
    opacity: 0.65;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Hover – item lighter, text + icon stay white */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a:hover::before {
    background: rgba(15, 23, 42, 0.28) !important;
    color: #ffffff !important;
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a:hover::after {
    opacity: 0.9;
    transform: translateX(1px);
}

/* Active item – white pill like reference design */
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li.is-active a {
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.45) !important;
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li.is-active a::before {
    background: #e0e7ff !important;
    color: #111827 !important;
}
body.naimur-my-account-custom .woocommerce-MyAccount-navigation li.is-active a::after {
    background: transparent;
    color: #111827;
    opacity: 0.9;
    transform: translateX(0);
}

/* Content card */
body.naimur-my-account-custom .woocommerce-MyAccount-content {
    flex: 1 1 0;
    min-width: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 24px 30px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

body.naimur-my-account-custom .woocommerce-MyAccount-content::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #14b8a6, #f97316);
    opacity: 0.5;
}

body.naimur-my-account-custom .woocommerce-MyAccount-content > * {
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

/* Notices */
body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-info,
body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-message,
body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-error {
    border-radius: 12px;
    border: none;
    background: #eef2ff;
    color: #1f2937;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-info .button,
body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-message .button {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
}

/* Forms */
body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row input.input-text,
body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row select,
body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row textarea {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row input.input-text:focus,
body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row select:focus,
body.naimur-my-account-custom .woocommerce-MyAccount-content form .form-row textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    outline: none;
}

/* Buttons */
body.naimur-my-account-custom .woocommerce-MyAccount-content .button,
body.naimur-my-account-custom .woocommerce-MyAccount-content button,
body.naimur-my-account-custom .woocommerce-MyAccount-content .woocommerce-button {
    border-radius: 999px !important;
    padding: 9px 20px !important;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    body.naimur-my-account-custom .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    body.naimur-my-account-custom .woocommerce-MyAccount-navigation {
        position: static;
        max-width: 100%;
        width: 100%;
        margin-bottom: 4px;
    }
}

@media (max-width: 640px) {
    body.naimur-my-account-custom .woocommerce-MyAccount-navigation {
        padding: 18px 14px;
        border-radius: 18px;
    }

    body.naimur-my-account-custom .woocommerce-MyAccount-navigation li a {
        font-size: 13px;
        padding: 8px 10px;
    }

    body.naimur-my-account-custom .woocommerce-MyAccount-content {
        padding: 20px 16px 22px;
        border-radius: 18px;
    }
}
