:root {
    --nt-primary: linear-gradient(to bottom, #55088a, #870DDC);
    --nt-secondary: #21cbf3;
    --nt-accent: #f0f8ff;
    --bg: linear-gradient(135deg,#0f172a 0%, #1e293b 40%, #0ea5e9 100%);
    --card-bg: rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.12);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #06b6d4;
    --primary-700: #0891b2;
    --shadow: 0 20px 40px rgba(0,0,0,.35);
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
}

.NT-FormRoot {
    background: var(--nt-primary);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #007acc;
    font-family: Arial, sans-serif;
    margin: 20px;
    margin-top: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.NT-Label {
    color: steelblue;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-family: "Cairo";
}
/* Styles for input fields */ 
.NT-Text {
    width: 100%;
    height: 40px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 4px;
}
NT-Text:focus {
    border-color: #007acc;
    box-shadow: 0 0 5px rgba(0, 122, 204, 0.5);
    outline: double;
}
.NT-TextWithCaption {
    margin-bottom: 4px;
}

/*Edit BootStrap*/
.form-label {
    font-size: 16px;
    font-weight: 600;
    color: steelblue;
    margin-bottom: 2px;
    font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, serif;
}
.col-form-label {
    font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, serif;
    font-size: 12px;
    background: var(--nt-primary);
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    color: aliceblue;
    margin-left: 0px;
    padding-inline-start: 12px;
}
.form-control {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    margin-right: 0px;
    align-items: stretch;
    padding: 8px;
}
.col-sm-3, .col-sm-6, .col-sm-9 {
    padding: 0px;
}

/* الفوتر الثابت */
.NT-ScreenFixedFooter {
    position: sticky;
    bottom: 0;
    height: auto;
    min-height: 50px;
    background: linear-gradient(to top, rgb(56, 5, 91), #6D0AB1);
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    padding: 0px;
    margin: 0;
    border-start-start-radius: 100px;
    border-start-end-radius: 100px;
    /* عرض الفوتر يتبع عرض الـ main content فقط */
    left: 0;
    right: 0;
    width: 100%;
}

/* على الشاشات الكبيرة، الفوتر يتبع عرض الـ main فقط (بعد الـ sidebar) */
@media (min-width: 641px) {
    .NT-ScreenFixedFooter {
        left: 250px; /* عرض الـ sidebar */
        right: 0;
        width: auto;
        /* مراعاة الـ padding في الـ article */
        padding-left: 2rem;
        padding-right: 1.5rem;
    }
}

/* إضافة padding-bottom للمحتوى لتجنب تغطية الفوتر */
/* يمكن إضافة هذه القاعدة مباشرة في الصفحات التي تستخدم الفوتر */
.frm-user {
    padding-bottom: 120px;
    min-height: calc(100vh - 100px);
}

/* الشكل الشجري للمنتجات */
.product-tree {
    font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, serif;
    direction: rtl;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.profile-avatar-wrap {
    flex-shrink: 0;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
}

.user-menu-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    line-height: 0;
}

.user-menu-avatar-btn:focus-visible {
    outline: 2px solid #590786;
    outline-offset: 2px;
}

.user-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #590786;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.user-menu-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3e8fa;
    color: #590786;
}

.tree-node {
    margin: 2px 0;
}

.tree-node-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: none;
    gap: 8px;
}

.tree-node-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tree-node-header.sub-category {
    padding-right: 30px;
    font-weight: 500;
}

.tree-node-header.product-header {
    padding-right: 50px;
    cursor: pointer;
}

.tree-node-header.product-header:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.tree-icon {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s;
}

.tree-label {
    flex: 1;
    font-size: 14px;
    color: #212529;
}

.tree-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tree-price {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.tree-node-children {
    margin-right: 20px;
    border-right: 2px solid #e9ecef;
    padding-right: 8px;
}

.tree-node-children .tree-node-children {
    margin-right: 30px;
    border-right-color: #dee2e6;
}



