.dashboard {
    font-family: 'IRANSans', 'Vazir', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}
.d-nav {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    
}

.d-nav .w3-bar {
    background: white;
    padding: 10px 25px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: stretch;
    align-items: center;
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
}

.nav-brand-icon {
    color: #3498db;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #3498db;
}

.nav-link.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}





.d-main {
    padding: 5px 30px;
    width: 98%;
    max-width: 1400px;
    margin: auto auto;
    margin-top: 30px;
}



.d-home-dashboard{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 2px;
    grid-row-gap: 4px;
    padding: 10px;

}
.d-home-dashboard-item{
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.d-home-dashboard-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.d-home-dashboard-item:nth-child(2) { grid-area: 1 / 5 / 3 / 7; }
.d-home-dashboard-item:nth-child(3) { grid-area: 1 / 2 / 3 / 5; }
.d-home-dashboard-item:nth-child(4) { grid-area: 3 / 1 / 4 / 3; }
.d-home-dashboard-item:nth-child(5) { grid-area: 3 / 3 / 4 / 5; }
.d-home-dashboard-item:nth-child(6) { grid-area: 3 / 5 / 4 / 7; }
.d-home-dashboard-item:nth-child(7) { grid-area: 4 / 1 / 5 / 3; }
.d-home-dashboard-item:nth-child(8) { grid-area: 4 / 3 / 5 / 5; }
.d-home-dashboard-item:nth-child(9) { grid-area: 4 / 5 / 5 / 7; }


.d-home-dashboard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}


.d-home-dashboard-item.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.d-home-dashboard-item.chart-card {
    background: white;
}

.d-home-dashboard-item.action-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    cursor: pointer;
}


.dashboard-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-item-title {
    font-weight: 600;
    font-size: 16px;
    color: inherit;
}

.dashboard-item-icon {
    font-size: 24px;
    opacity: 0.8;
}

.dashboard-item-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-item-footer {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.8;
}