:root {
    --primary-color: #D4AF37;
    --secondary-color: #000000;
    --light-text: #222;
    --light-bg: #f5f7fa;
    --light-card: #ffffff;
    --dark-bg: #1a1a1a;
    --dark-card: #2d2d2d;
    --text-color: var(--light-text);
    --bg-color: var(--light-bg);
    --card-color: var(--light-card);
    --sidebar-width: 280px;
}

body.dark-mode {
    --text-color: #fff;
    --bg-color: var(--dark-bg);
    --card-color: var(--dark-card);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
}

/* Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-size: 20px;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-sidebar:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* User Info */
.user-info {
    text-align: center;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.user-info h4 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: var(--primary-color);
}

.user-email {
    color: #444; /* أغمق من #aaa */
    font-size: 14px;
    margin: 5px 0;
    font-weight: bold;
}

body.dark-mode .user-email {
    color: #fff;
}

.user-balance {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0 15px;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
}

.sidebar-menu a:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
    color: white;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background: #333;
    border-left: 3px solid var(--primary-color);
    color: white;
}

.sidebar-menu i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
}

/* Company Info */
.company-info {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.company-logo {
    height: 80px;
    margin-bottom: 10px;
}

.company-name {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
}

.unread-badge {
    background-color: #D4AF37;
    color: #000;
    padding: 3px 8px;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-right: 8px;
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    vertical-align: middle;
}

.sidebar-menu li.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.sidebar-menu li.social-icons a {
    font-size: 1.2em;
    color: #ffffff;
    text-align: center;
    width: 80px;
    height: 80px;
    line-height: 50px;
    border-radius: 70%;
    transition: background-color 0.3s ease;
}

.sidebar-menu li.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}







