:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f72585;
    --text-color: #333;
}

body {
    font-family: "Almarai", sans-serif;
      direction: rtl;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar-nav li:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-nav li.active {
    background-color: var(--primary-color);
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-nav i {
    margin-left: 10px;
    font-size: 18px;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
}

.top-nav {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-start;
}



.user-profile {
    margin-right: auto;
}

.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-dropdown span {
    margin-right: 15px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
   /* right: 0;*/
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    padding: 10px 0;
    z-index: 100;
    display: none;
    text-align: right;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu i {
    margin-left: 8px;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
}

/* Widgets */
.widget-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.widget-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: white;
    font-size: 24px;
}

.bg-blue { background-color: var(--primary-color); }
.bg-green { background-color: var(--success-color); }
.bg-orange { background-color: var(--warning-color); }

.widget-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #666;
}

.widget-info p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* Chart Section */
.chart-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.chart-card h3 i {
    margin-left: 10px;
}

.chart-placeholder {
    height: 250px;
    background: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-top: 15px;
}

/* Activity Section */
.activity-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list i {
    margin-left: 10px;
    font-size: 18px;
}

.text-green { color: var(--success-color); }
.text-blue { color: var(--primary-color); }
.text-orange { color: var(--warning-color); }

.activity-time {
    margin-right: auto;
    color: #999;
    font-size: 14px;
}
.sidebar-footer .logout-item {
    color: #dc3545; /* أحمر */
    text-decoration: none; /* إزالة الخط السفلي */
    font-weight: bold; /* اختياري لتوضيح الرابط */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right:20px;
    margin-top:5px;
}

    .sidebar-footer .logout-item:hover {
        color: #a71d2a; /* أحمر داكن عند المرور بالفأرة */
    }