    /* فونت فارسی و تنظیمات پایه */
    @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');
    
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    body {
        font-family: 'Vazirmatn', sans-serif;
        background-color: #f5f7fa;
        color: #333;
        line-height: 1.6;
    }
    
    /* هدر اصلی - ترکیب شده از هر دو کد */
    header {
        background-color: #1a237e;
        color: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: relative;
    }
    
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        margin: 0;
    }
    
    /* منوی اصلی - از کد2 */
    .main-menu ul {
        display: flex;
        list-style: none;
    }
    
    .main-menu li {
        margin-right: 1.5rem;
    }
    
    .main-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .main-menu a:hover {
        color: #bbdefb;
    }
    
    /* بخش کاربر - از کد1 */
    .user-info {
        display: flex;
        align-items: center;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-left: 10px;
        overflow: hidden;
        background-color: #bbdefb;
    }
    
    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .user-name {
        font-weight: 500;
    }
    
    .notification-icon {
        position: relative;
        margin-right: 20px;
        cursor: pointer;
    }
    
    .notification-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: #ff6f00;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* دکمه‌ها - ترکیب شده */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .login-btn, .submit-btn {
        background-color: #ff6f00;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .login-btn:hover, .submit-btn:hover {
        background-color: #ff9800;
    }
    
    /* بخش اصلی محتوا */
    main {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    /* بخش هیرو - از کد2 */
    .hero {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/api/placeholder/1200/400') center/cover;
        color: white;
        padding: 4rem 2rem;
        border-radius: 8px;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    /* داشبورد - از کد1 */
    .dashboard-container {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    
    /* منوی کناری - از کد1 */
    .sidebar {
        width: 250px;
        background-color: white;
        height: calc(100vh - 70px);
        position: sticky;
        top: 70px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 1.5rem 0;
    }
    
    .profile-section {
        padding: 0 1.5rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 1.5rem;
    }
    
    .profile-pic {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto 1rem;
        overflow: hidden;
        background-color: #e3f2fd;
    }
    
    .profile-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .profile-name {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 0.3rem;
    }
    
    .profile-class {
        color: #666;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        list-style: none;
    }
    
    .nav-item {
        padding: 0.8rem 1.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-item:hover {
        background-color: #e3f2fd;
    }
    
    .nav-item.active {
        background-color: #e3f2fd;
        border-right: 3px solid #1a237e;
    }
    
    .nav-link {
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
    }
    
    .nav-icon {
        margin-left: 10px;
        width: 20px;
        text-align: center;
        color: #1a237e;
    }
    
    .logout-btn {
        margin-top: 2rem;
        padding: 0.8rem 1.5rem;
        display: flex;
        align-items: center;
        color: #f44336;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .logout-btn:hover {
        background-color: #ffebee;
    }
    
    /* محتوای اصلی - ترکیب شده */
    .main-content {
        flex: 1;
        padding: 2rem;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }
    
    .page-title, .section-title {
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e0e0e0;
        color: #1a237e;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .view-all {
        color: #1a237e;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* کارت‌های اطلاعات - از کد1 */
    .info-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .info-card, .quick-link-card {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .info-card:hover, .quick-link-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .info-card {
        display: flex;
        align-items: center;
    }
    
    .info-icon, .quick-link-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #e3f2fd;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 1rem;
        color: #1a237e;
        font-size: 1.5rem;
    }
    
    .quick-link-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    .info-details {
        flex: 1;
    }
    
    .info-title {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .info-value {
        font-size: 1.2rem;
        font-weight: 500;
        color: #333;
    }
    
    /* جدول تکالیف - از کد1 */
    .upcoming-tasks, .news-section {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tasks-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .tasks-table th, .tasks-table td {
        padding: 0.8rem;
        text-align: right;
    }
    
    .tasks-table th {
        background-color: #f5f7fa;
        font-weight: 500;
    }
    
    .tasks-table tr {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tasks-table tr:last-child {
        border-bottom: none;
    }
    
    .task-status {
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .status-pending {
        background-color: #fff8e1;
        color: #ffa000;
    }
    
    .status-submitted {
        background-color: #e3f2fd;
        color: #1976d2;
    }
    
    .status-approved {
        background-color: #e8f5e9;
        color: #388e3c;
    }
    
    .status-rejected {
        background-color: #ffebee;
        color: #d32f2f;
    }
    
    /* بخش اخبار - از کد2 */
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .news-card {
        background-color: #f9f9f9;
        border-radius: 6px;
        overflow: hidden;
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .news-card:hover {
        transform: translateY(-5px);
    }
    
    .news-img {
        height: 180px;
        background-color: #ddd;
        overflow: hidden;
    }
    
    .news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .news-card:hover .news-img img {
        transform: scale(1.05);
    }
    
    .news-content {
        padding: 1.2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .news-date {
        color: #666;
        font-size: 0.9rem;
    }
    
    .news-title {
        margin: 0.5rem 0;
    }
    
    .news-excerpt {
        color: #555;
        margin-bottom: 1rem;
        flex: 1;
    }
    
    .read-more {
        color: #1a237e;
        text-decoration: none;
        font-weight: 500;
        margin-top: auto;
    }
    
    /* لینک‌های سریع - از کد2 */
    .quick-links {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .quick-link-card {
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .quick-link-card h3 {
        color: #1a237e;
        margin-bottom: 0.5rem;
    }
    
    /* اعلان‌ها و پیام‌ها - از کد1 */
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .notifications, .messages {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 1.5rem;
    }
    
    .notification-item, .message-item {
        padding: 1rem 0;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        align-items: flex-start;
    }
    
    .notification-item:last-child, .message-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .notification-icon-container, .message-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #e3f2fd;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 1rem;
        color: #1a237e;
    }
    
    .message-avatar {
        overflow: hidden;
    }
    
    .message-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .notification-content, .message-content {
        flex: 1;
    }
    
    .notification-title, .message-sender {
        font-weight: 500;
        margin-bottom: 0.3rem;
    }
    
    .notification-text, .message-preview {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .notification-time, .message-time {
        font-size: 0.8rem;
        color: #999;
    }
    
    /* فرم ورود - از کد2 */
    .login-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        display: none;
        padding: 1rem;
    }
    
    .login-form {
        background-color: white;
        padding: 2rem;
        border-radius: 8px;
        width: 100%;
        max-width: 400px;
        position: relative;
    }
    
    .form-title {
        text-align: center;
        margin-bottom: 1.5rem;
        color: #1a237e;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-control {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: 'Vazirmatn', sans-serif;
    }
    
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
    }
    
    /* فوتر - از کد2 */
    footer {
        background-color: #1a237e;
        color: white;
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .footer-column h3 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .footer-links {
        list-style: none;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        color: #bbdefb;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: white;
    }
    
    .copyright {
        text-align: center;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    /* طراحی واکنش‌گرا - ترکیب شده */
    @media (max-width: 1200px) {
        .header-container, .dashboard-container, .footer-container {
            padding: 0 1rem;
        }
    }
    
    @media (max-width: 992px) {
        .dashboard-grid, .news-grid, .quick-links {
            grid-template-columns: 1fr;
        }
        
        .info-cards {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .header-container {
            flex-wrap: wrap;
        }
        
        .logo {
            margin-bottom: 0.5rem;
        }
        
        .main-menu {
            flex-basis: 100%;
            order: 3;
            margin-top: 1rem;
            display: none;
        }
        
        .main-menu.active {
            display: block;
        }
        
        .main-menu ul {
            flex-direction: column;
        }
        
        .main-menu li {
            margin: 0.5rem 0;
            text-align: center;
        }
        
        .mobile-menu-btn {
            display: block;
            order: 2;
        }
        
        .dashboard-container {
            flex-direction: column;
        }
        
        .sidebar {
            width: 100%;
            height: auto;
            position: static;
            margin-bottom: 1.5rem;
        }
        
        .profile-section {
            display: none;
        }
        
        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .nav-item {
            padding: 0.5rem 1rem;
            margin: 0.3rem;
            background-color: #f5f7fa;
            border-radius: 4px;
        }
        
        .nav-item.active {
            border-right: none;
            background-color: #e3f2fd;
        }
        
        .main-content {
            max-height: none;
            overflow-y: visible;
            padding: 1.5rem;
        }
        
        .info-cards {
            grid-template-columns: 1fr;
        }
        
        .tasks-table {
            font-size: 0.9rem;
        }
        
        .tasks-table th:nth-child(3), .tasks-table td:nth-child(3) {
            display: none;
        }
        
        .hero {
            padding: 2rem 1rem;
        }
        
        .hero h2 {
            font-size: 2rem;
        }
        
        .hero p {
            font-size: 1rem;
        }
        
        .news-img {
            height: 220px;
        }
    }
    
    @media (max-width: 480px) {
        .logo h1 {
            font-size: 1.5rem;
        }
        
        .news-section {
            padding: 1.5rem 1rem;
        }
        
        .hero h2 {
            font-size: 1.8rem;
        }
        
        .login-form {
            padding: 1.5rem;
        }
    }
