﻿ 
:root {
    --dark-brown: #4B2C2C;
    --orange: #F37C22;
    --blue: #2F58C6;
    --light-olive: #CED7C2;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #E5E5E5;
    --gray: #888888;
    --dark-gray: #444444;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
     
    color: var(--dark-gray);
    min-height: 100vh;
    display: flex;
}

/* RTL Support */
html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .content {
    margin-left: 0;
    margin-right: 250px;
}

html[dir="rtl"] .sidebar.collapsed + .content {
    margin-right: 70px;
}

html[dir="rtl"] .header-logo {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .user-profile {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .sidebar-toggle {
    right: auto;
    left: -15px;
}

html[dir="rtl"] .menu-item i {
    margin-right: 0;
    margin-left: 10px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--white);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 100;
    overflow-y: auto;
}

    .sidebar.collapsed {
        width: 70px;
    }

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-gray);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-brown);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-toggle {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: -15px;
    box-shadow: var(--box-shadow);
}

    .sidebar-toggle i {
        color: var(--dark-brown);
    }

.menu {
    list-style-type: none;
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

    .menu-item:hover {
        background-color: var(--light-olive);
    }

    .menu-item.active {
        background-color: #b5986b;
        color: var(--white);
    }

    .menu-item i {
        margin-right: 10px;
        font-size: 1.2rem;
        min-width: 24px;
        text-align: center;
    }

.menu-item-text {
    transition: var(--transition);
    opacity: 1;
}

.sidebar.collapsed .menu-item-text {
    opacity: 0;
    width: 0;
}

/* Content Area */
.content {
    flex: 1;
    margin-left: 250px;
    transition: var(--transition);
}

.sidebar.collapsed + .content {
    margin-left: 70px;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

    .header-logo img {
        height: 40px;
        margin-right: 10px;
    }

.header-title {
    font-size: 1.5rem;
    color: var(--dark-brown);
    font-weight: bold;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin: 0 20px;
    position: relative;
}

.language-btn {
    background-color: transparent;
    border: 1px solid var(--light-gray);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

    .language-btn:hover {
        background-color: var(--light-olive);
    }

    .language-btn i {
        margin-left: 8px;
    }

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Main Content */
.main {
    padding: 30px;
    background: hsl(36deg 80.65% 93.92%);
}

.page-title {
    margin-bottom: 20px;
    color: var(--dark-brown);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-title {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .stat-icon.blue {
        background-color: rgba(47, 88, 198, 0.1);
        color: var(--blue);
    }

    .stat-icon.orange {
        background-color: rgba(243, 124, 34, 0.1);
        color: var(--orange);
    }

    .stat-icon.green {
        background-color: rgba(75, 192, 75, 0.1);
        color: #4BC04B;
    }

    .stat-icon.purple {
        background-color: rgba(153, 102, 255, 0.1);
        color: #9966FF;
    }

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-brown);
}

.stat-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Action Button */
 
/* Recent Activities */
.recent-activities {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    color: var(--dark-brown);
    font-weight: 600;
}

.view-all {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .view-all:hover {
        text-decoration: underline;
    }

.activity-list {
    list-style-type: none;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(47, 88, 198, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

    .activity-icon.created {
        background-color: rgba(243, 124, 34, 0.1);
        color: var(--orange);
    }

    .activity-icon.responded {
        background-color: rgba(75, 192, 75, 0.1);
        color: #4BC04B;
    }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-details {
    display: flex;
    font-size: 0.85rem;
    color: var(--gray);
}

.activity-time {
    margin-left: 15px;
}

a {
    text-decoration: none;
    color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

    .content {
        margin-left: 70px;
    }

    .sidebar .menu-item-text {
        opacity: 0;
        width: 0;
    }

    .sidebar .logo {
        font-size: 1.2rem;
    }

    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .header-title {
        display: none;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }

    .content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .user-name, .user-role {
        display: none;
    }

    .language-switcher {
        margin: 0 10px;
    }
}

 