/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* نظام الأيقونات الدائرية */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-circle-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-circle-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ألوان خلفيات الأيقونات */
.bg-primary-light {
    background-color: rgba(105, 108, 255, 0.1);
}

.bg-success-light {
    background-color: rgba(113, 221, 55, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 171, 0, 0.1);
}

.bg-danger-light {
    background-color: rgba(255, 62, 29, 0.1);
}

.bg-info-light {
    background-color: rgba(3, 195, 236, 0.1);
}

.bg-light {
    background-color: rgba(248, 249, 250, 0.5);
}



/* تعديلات عامة */
.card {
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.list-group-item {
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .icon-circle-sm {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .icon-circle-lg {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .card-header h5 {
        font-size: 1.1rem;
    }
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    transition: all 0.2s ease;
}



        
       
        
     :root {
            --primary-color: #696cff;
            --secondary-color: #8592a3;
            --success-color: #71dd37;
            --info-color: #03c3ec;
            --warning-color: #ffab00;
            --danger-color: #ff3e1d;
            --dark-color: #233446;
            --light-color: #f5f5f9;
            --sidebar-bg: #2b2c40;
            --sidebar-hover: #3a3b4b;
            --navbar-bg: #ffffff;
            --card-shadow: 0 0.25rem 1rem rgba(161, 172, 184, 0.45);
        }
        
        /* Enhanced Sidebar Styling */
        #layout-menu {
            background: var(--sidebar-bg);
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .layout-menu .menu-item {
            margin: 4px 12px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .layout-menu .menu-link {
            color: #a3a4cc;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            position: relative;
        }
        
   
        
      
        /* User Dropdown Styling */
        .dropdown-user .dropdown-menu {
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(161, 172, 184, 0.2);
            padding: 8px;
            min-width: 280px;
        }
        
        .dropdown-user .dropdown-item {
            border-radius: 12px;
            margin: 2px 0;
            transition: all 0.3s ease;
            padding: 12px 16px;
        }
        
       
        
        /* User Avatar Icon */
        .user-avatar-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color) 0%, #5a5beb 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
            transition: all 0.3s ease;
        }
        
        .user-avatar-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(105, 108, 255, 0.4);
        }
        
      
        /* User Info Section */
        .user-info-section {
            border-radius: 12px;
            padding: 16px;
            margin: 8px 0;
            border: 1px solid rgba(105, 108, 255, 0.2);
        }
        
        /* Menu Headers Styling */
        .menu-header {
            padding: 12px 24px 8px 24px;
            margin: 0;
            color: #6b7280;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
        }
        
        .menu-header::before {
            content: '';
            position: absolute;
            left: 24px;
            right: 24px;
            top: 50%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        }
        
        .menu-header-text {
            background: var(--sidebar-bg);
            padding: 0 8px;
            position: relative;
            z-index: 1;
        }
        
        /* Enhanced Menu Items */
        .layout-menu .menu-item {
            margin: 2px 12px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        
        .layout-menu .menu-link {
            color: #a3a4cc;
            display: flex;
            align-items: center;
            padding: 12px 16px;
            transition: all 0.3s ease;
            position: relative;
            border-radius: 10px;
        }
        
    
        
        .layout-menu .menu-link.active {
            background: linear-gradient(135deg, var(--primary-color) 0%, #5a5beb 100%);
            color: white !important;
            box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
        }
        
     
  
        
        /* Menu Icons Enhancement */
        .layout-menu .menu-icon {
            font-size: 1.25rem;
            margin-right: 12px;
            width: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }
        
       
        
        /* Logo styling enhancement */
        .app-brand {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 16px;
            background: rgba(255,255,255,0.02);
            border-radius: 0 0 12px 12px;
        }
        
        .app-brand-logo img {
            transition: all 0.3s ease;
            border-radius: 8px;
        }
        
        /* Custom Header Section */
        .custom-header-section {
            background: #fff;
            width: 100%;
            height: 80px;
            position: relative;
            box-shadow: 0 2px 4px rgba(161, 172, 184, 0.145);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            z-index: 1000;
            border-bottom: 1px solid #d9dee3;
            margin-bottom: 0;
        }
        
        .custom-header-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255,255,255,0.02);
            pointer-events: none;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            z-index: 2;
        }
        
        .header-logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .header-menu-toggle {
            display: none;
            background: #696cff;
            border: none;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }
        
        .header-menu-toggle:hover {
            background: #5a5beb;
            transform: scale(1.05);
        }
        
        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            z-index: 2;
        }
        
        .header-user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #566a7f;
        }
        
        .header-balance {
            background: #f8f9fa;
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid #d9dee3;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            color: #566a7f;
        }
        
        .header-balance i {
            font-size: 1.1rem;
            color: #696cff;
        }
        
        .header-user-avatar {
            width: 45px;
            height: 45px;
            background: #696cff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid #696cff;
        }
        
        .header-user-avatar:hover {
            transform: scale(1.1);
            background: #5a5beb;
            border-color: #5a5beb;
        }
        
        /* Mobile Responsive for Custom Header */
        @media (max-width: 768px) {
            .custom-header-section {
                height: 70px;
                padding: 0 20px;
            }
            
            .header-balance {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
            
            .header-user-avatar {
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }
            
            .header-menu-toggle {
                display: block !important;
            }
            
            .header-left {
                gap: 15px;
            }
            
            .header-right {
                gap: 15px;
            }
            
            /* Ensure menu shows on mobile */
            #layout-menu {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }
            
            #layout-menu.show {
                transform: translateX(0) !important;
            }
        }
        
        /* Enhanced Dropdown for Custom Header */
        .custom-header-dropdown {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            border: 1px solid rgba(161, 172, 184, 0.2);
            padding: 12px;
            min-width: 280px;
            margin-top: 8px;
        }
        
        .custom-header-dropdown .dropdown-item {
            border-radius: 12px;
            margin: 4px 0;
            padding: 12px 16px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        

  
     
   