@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

:root {
    --primary-color: #4a69bd;
    --secondary-color: #1dd1a1;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #333;
    --sidebar-bg: #2c3e50;
    --sidebar-link-color: #ecf0f1;
    --sidebar-link-hover: #34495e;
    --border-color: #dfe4ea;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    display: flex;
}

.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-link-color);
    padding: 25px 0;
    transition: width 0.3s ease;
    flex-shrink: 0;
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 25px 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #fff;
}

.sidebar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: var(--sidebar-link-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s, padding-right 0.3s;
    border-right: 4px solid transparent;
}

.sidebar-menu li a .icon {
    font-size: 1.4em;
    margin-left: 15px;
}

.sidebar-menu li a:hover {
    background-color: var(--sidebar-link-hover);
    border-right-color: var(--secondary-color);
    padding-right: 30px;
}

.sidebar-menu li a.active {
    background-color: #34495e;
    border-right-color: var(--primary-color);
    font-weight: 700;
}

.content-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-icon {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.page-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2.2em;
}